|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetaBaseConnector
Method Summary | |
---|---|
void |
deleteVirtualDatabase(VirtualDatabaseID vdbID)
Delete the VirtualDatabase . |
VirtualDatabaseID |
getActiveVirtualDatabaseID(java.lang.String vdbName,
java.lang.String vdbVersion)
Used only by the RuntimeMetadataCatalog to find the active id. |
java.util.Collection |
getDeletedVirtualDatabaseIDs()
Returns a Collection of type VirtualDatabase that represents all the virtual databases that marked for deletion in the system. |
java.util.Collection |
getModels(VirtualDatabaseID vdbID)
|
VirtualDatabase |
getVirtualDatabase(VirtualDatabaseID vdbID)
Returns the VirtualDatabase for the specified VirtualdatabaseID. |
VirtualDatabaseID |
getVirtualDatabaseID(java.lang.String vdbName,
java.lang.String vdbVersion)
Used only by the RuntimeMetadataCatalog to find the virtual database id. |
java.util.Collection |
getVirtualDatabases()
Returns a Collection of type VirtualDatabase that represents all the virtual databases in the system. |
void |
insertModels(java.util.Collection metadataObjects,
VirtualDatabaseID vdbI)
Insert models into the VirtualDatabase . |
void |
insertVirtualDatabase(VirtualDatabase vdb)
Insert the VirtualDatabase . |
void |
setConnectorBindingNames(VirtualDatabaseID vdbID,
java.util.Collection models,
java.util.Map modelAndCBNames)
|
void |
setStatus(VirtualDatabaseID virtualDBID,
short status,
java.lang.String userName)
Set the VirtualDatabase status. |
void |
updateVirtualDatabase(VirtualDatabase vdb,
java.lang.String userName)
Update VDB attributes. |
Methods inherited from interface com.metamatrix.metadata.runtime.spi.RuntimeBaseConnector |
---|
commit, rollback |
Methods inherited from interface com.metamatrix.common.connection.TransactionInterface |
---|
close, isClosed, isReadonly |
Method Detail |
---|
void setStatus(VirtualDatabaseID virtualDBID, short status, java.lang.String userName) throws InvalidStateException, VirtualDatabaseException
VirtualDatabase
status.
virtualDBID
- represents the VirtualDatabase to be updateduserName
- of the person requesting the changestatus
- is the status the VirtualDatabase should be set to
VirtualDatabaseException
- if unable to perform update.
InvalidStateException
void insertModels(java.util.Collection metadataObjects, VirtualDatabaseID vdbI) throws VirtualDatabaseException
VirtualDatabase
.
metadataObjects
- is a collection of models to be inserted.
VirtualDatabaseException
- if unable to perform insertion.void insertVirtualDatabase(VirtualDatabase vdb) throws VirtualDatabaseException
VirtualDatabase
.
vdb
- is the virtual database to be inserted.
VirtualDatabaseException
- if unable to perform insertion.
InvalidStateException
- is thrown if the VirtualDatabase is not in the proper state to change to active state.VirtualDatabaseID getActiveVirtualDatabaseID(java.lang.String vdbName, java.lang.String vdbVersion) throws VirtualDatabaseException, VirtualDatabaseDoesNotExistException
VirtualDatabaseException
VirtualDatabaseDoesNotExistException
VirtualDatabase getVirtualDatabase(VirtualDatabaseID vdbID) throws VirtualDatabaseException
VirtualDatabaseException
VirtualDatabaseID getVirtualDatabaseID(java.lang.String vdbName, java.lang.String vdbVersion) throws VirtualDatabaseException, VirtualDatabaseDoesNotExistException
VirtualDatabaseException
VirtualDatabaseDoesNotExistException
java.util.Collection getVirtualDatabases() throws VirtualDatabaseException
Collection
of type VirtualDatabase
that represents all the virtual databases in the system.
VirtualDatabaseException
- an error occurs while trying to read the data.java.util.Collection getDeletedVirtualDatabaseIDs() throws VirtualDatabaseException
Collection
of type VirtualDatabase
that represents all the virtual databases that marked for deletion in the system.
VirtualDatabaseException
- an error occurs while trying to read the data.void deleteVirtualDatabase(VirtualDatabaseID vdbID) throws VirtualDatabaseException
VirtualDatabase
.
vdbID
- is the ID of the virtual database to be deleted.
VirtualDatabaseException
- an error occurs while trying to delete the data.java.util.Collection getModels(VirtualDatabaseID vdbID) throws VirtualDatabaseException
VirtualDatabaseException
void setConnectorBindingNames(VirtualDatabaseID vdbID, java.util.Collection models, java.util.Map modelAndCBNames) throws VirtualDatabaseException
VirtualDatabaseException
void updateVirtualDatabase(VirtualDatabase vdb, java.lang.String userName) throws VirtualDatabaseException
VirtualDatabase.ModifiableAttributes
can be modefied. Call VirtualDatabase.update(String attribute, Object value)
to update each attribute of the VDB before calling this method.
vdb
- VDB to be updated.userName
- of the person updating the virtual database.
VirtualDatabaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |