com.metamatrix.admin.objects
Class MMVDB

java.lang.Object
  extended by com.metamatrix.admin.objects.MMAdminObject
      extended by com.metamatrix.admin.objects.MMVDB
All Implemented Interfaces:
AdminObject, VDB, java.io.Serializable, java.lang.Comparable

public final class MMVDB
extends MMAdminObject
implements VDB, java.lang.Comparable

Dataholder object for information about a VDB (Virtual Database)

See Also:
Serialized Form

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 class com.metamatrix.admin.objects.MMAdminObject
deployed, enabled, identifier, identifierParts, name, OBJECT_TYPE_CACHE, OBJECT_TYPE_CONNECTOR_BINDING, OBJECT_TYPE_CONNECTOR_TYPE, OBJECT_TYPE_DQP, OBJECT_TYPE_ENTITLEMENT, OBJECT_TYPE_EXTENSION_MODULE, OBJECT_TYPE_GROUP, OBJECT_TYPE_HOST, OBJECT_TYPE_LOG_CONFIGURATION, OBJECT_TYPE_MODEL, OBJECT_TYPE_PROCESS_OBJECT, OBJECT_TYPE_PROPERTY_DEFINITION, OBJECT_TYPE_QUEUE_WORKER_POOL, OBJECT_TYPE_REQUEST, OBJECT_TYPE_RESOURCE, OBJECT_TYPE_ROLE, OBJECT_TYPE_SERVICE, OBJECT_TYPE_SESSION, OBJECT_TYPE_SYSTEM_OBJECT, OBJECT_TYPE_TRANSACTION, OBJECT_TYPE_USER, OBJECT_TYPE_VDB, OBJECTS_PACKAGE, registered, serialVersionUID
 
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

STATUS_INCOMPLETE

public static final int STATUS_INCOMPLETE
VDB is registered but incomplete

See Also:
Constant Field Values

STATUS_INACTIVE

public static final int STATUS_INACTIVE
VDB is deployed but inactive

See Also:
Constant Field Values

STATUS_ACTIVE

public static final int STATUS_ACTIVE
VDB is deployed and active

See Also:
Constant Field Values

STATUS_DELETED

public static final int STATUS_DELETED
VDB has been deleted

See Also:
Constant Field Values
Constructor Detail

MMVDB

public MMVDB(java.lang.String[] identifierParts)
VDBs are identified by name and version.

Parameters:
identifierParts - the VDB name and version parts
Method Detail

toString

public java.lang.String toString()
Description copied from class: MMAdminObject
Get MetaMatrix Object as a String

Specified by:
toString in class MMAdminObject
Since:
4.3
See Also:
Object.toString()

addModel

public void addModel(MMModel mmModel)
Add an MMModel

Parameters:
mmModel -
Since:
4.3

getVersionedDate

public java.util.Date getVersionedDate()
Specified by:
getVersionedDate in interface VDB
Returns:
date the VDB was versioned

getVersionedBy

public java.lang.String getVersionedBy()
Specified by:
getVersionedBy in interface VDB
Returns:
user that versioned the VDB

getModels

public java.util.Collection getModels()
Specified by:
getModels in interface VDB
Returns:
Collection of MMModels

getState

public int getState()
Specified by:
getState in interface VDB
Returns:
the status

getStateAsString

public java.lang.String getStateAsString()
Specified by:
getStateAsString in interface VDB
Returns:
the status

getName

public 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. VDB version is the second component.

Specified by:
getName in interface AdminObject
Overrides:
getName in class MMAdminObject
Returns:
The Name of the VDB
Since:
4.3
See Also:
MMAdminObject.getName()

getVDBVersion

public java.lang.String getVDBVersion()
Specified by:
getVDBVersion in interface VDB
Returns:
the VDB version

setVersionedDate

public void setVersionedDate(java.util.Date bound)
Parameters:
bound - The date the VDB was bound.
Since:
4.3

setVersionedBy

public void setVersionedBy(java.lang.String boundBy)
Parameters:
boundBy - The user that bound the VDB.
Since:
4.3

setModels

public void setModels(java.util.Collection models)
Parameters:
models - Collection of MMModels to set.
Since:
4.3

setStatus

public void setStatus(short status)
Parameters:
status - The status to set.
Since:
4.3

getUID

public long getUID()
Returns:
Returns the uid.
Since:
4.3

setUID

public void setUID(long uid)
Parameters:
uid - The uid to set.
Since:
4.3

hasMaterializedViews

public boolean hasMaterializedViews()
Description copied from interface: VDB
Check to see if this VDB has any Materialized Models

Specified by:
hasMaterializedViews in interface VDB
Returns:
true or false
Since:
4.3
See Also:
VDB.hasMaterializedViews()

setMaterializedViews

public void setMaterializedViews(boolean hasMaterializedViews)
Parameters:
hasMaterializedViews - The hasMaterializedViews to set.
Since:
4.3

hasWSDL

public boolean hasWSDL()
Description copied from interface: VDB
Check to see if this VDB contains a WSDL.

Specified by:
hasWSDL in interface VDB
Returns:
Returns the hasWSDL.
Since:
5.5.3

setHasWSDL

public void setHasWSDL(boolean hasWSDL)
Parameters:
hasWSDL - The hasWSDL to set.
Since:
5.5.3

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
Since:
4.3
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Since:
4.3
See Also:
Object.hashCode()

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable
Since:
4.3
See Also:
Comparable.compareTo(java.lang.Object)


Copyright © 2009. All Rights Reserved.