|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.admin.objects.MMAdminObject
com.metamatrix.admin.objects.MMVDB
public final class MMVDB
Dataholder object for information about a VDB (Virtual Database)
Field Summary | |
---|---|
static int |
STATUS_ACTIVE
VDB is deployed and active |
static int |
STATUS_DELETED
VDB has been deleted |
static int |
STATUS_INACTIVE
VDB is deployed but inactive |
static int |
STATUS_INCOMPLETE
VDB is registered but incomplete |
Fields inherited from interface com.metamatrix.admin.api.objects.VDB |
---|
ACTIVE, DELETED, INACTIVE, INCOMPLETE, SERVER_REPOSITORY_LATEST_VERSION |
Fields inherited from interface com.metamatrix.admin.api.objects.AdminObject |
---|
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD |
Constructor Summary | |
---|---|
MMVDB(java.lang.String[] identifierParts)
VDBs are identified by name and version. |
Method Summary | |
---|---|
void |
addModel(MMModel mmModel)
Add an MMModel |
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object obj)
|
java.util.Collection |
getModels()
|
java.lang.String |
getName()
Must be overridden since, unlike other admin objects, the name component of a VDB is the first component of the identifier. |
int |
getState()
|
java.lang.String |
getStateAsString()
|
long |
getUID()
|
java.lang.String |
getVDBVersion()
|
java.lang.String |
getVersionedBy()
|
java.util.Date |
getVersionedDate()
|
int |
hashCode()
|
boolean |
hasMaterializedViews()
Check to see if this VDB has any Materialized Models |
boolean |
hasWSDL()
Check to see if this VDB contains a WSDL. |
void |
setHasWSDL(boolean hasWSDL)
|
void |
setMaterializedViews(boolean hasMaterializedViews)
|
void |
setModels(java.util.Collection models)
|
void |
setStatus(short status)
|
void |
setUID(long uid)
|
void |
setVersionedBy(java.lang.String boundBy)
|
void |
setVersionedDate(java.util.Date bound)
|
java.lang.String |
toString()
Get MetaMatrix Object as a String |
Methods inherited from class com.metamatrix.admin.objects.MMAdminObject |
---|
buildIdentifier, buildIdentifierArray, buildIdentifierList, getCreated, getCreatedBy, getCreatedDate, getIdentifier, getIdentifierArray, getLastChangedBy, getLastChangedDate, getLastUpdated, getLastUpdatedBy, getNameFromIdentifier, getObjectType, getParentName, getProperties, getPropertiesAsString, getPropertyValue, getProps, isDeployed, isEnabled, isRegistered, setCreated, setCreatedBy, setDeployed, setEnabled, setIdentifier, setLastUpdated, setLastUpdatedBy, setProperties, setRegistered |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.metamatrix.admin.api.objects.AdminObject |
---|
getIdentifier, getProperties, getPropertyValue |
Field Detail |
---|
public static final int STATUS_INCOMPLETE
public static final int STATUS_INACTIVE
public static final int STATUS_ACTIVE
public static final int STATUS_DELETED
Constructor Detail |
---|
public MMVDB(java.lang.String[] identifierParts)
identifierParts
- the VDB name and version partsMethod Detail |
---|
public java.lang.String toString()
MMAdminObject
toString
in class MMAdminObject
Object.toString()
public void addModel(MMModel mmModel)
mmModel
- public java.util.Date getVersionedDate()
getVersionedDate
in interface VDB
public java.lang.String getVersionedBy()
getVersionedBy
in interface VDB
public java.util.Collection getModels()
getModels
in interface VDB
public int getState()
getState
in interface VDB
public java.lang.String getStateAsString()
getStateAsString
in interface VDB
public java.lang.String getName()
getName
in interface AdminObject
getName
in class MMAdminObject
MMAdminObject.getName()
public java.lang.String getVDBVersion()
getVDBVersion
in interface VDB
public void setVersionedDate(java.util.Date bound)
bound
- The date the VDB was bound.public void setVersionedBy(java.lang.String boundBy)
boundBy
- The user that bound the VDB.public void setModels(java.util.Collection models)
models
- Collection of MMModels to set.public void setStatus(short status)
status
- The status to set.public long getUID()
public void setUID(long uid)
uid
- The uid to set.public boolean hasMaterializedViews()
VDB
hasMaterializedViews
in interface VDB
VDB.hasMaterializedViews()
public void setMaterializedViews(boolean hasMaterializedViews)
hasMaterializedViews
- The hasMaterializedViews to set.public boolean hasWSDL()
VDB
hasWSDL
in interface VDB
public void setHasWSDL(boolean hasWSDL)
hasWSDL
- The hasWSDL to set.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |