|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.connection.BaseTransaction
com.metamatrix.metadata.runtime.spi.jdbc.JDBCConnector
public class JDBCConnector
| 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 VirtualDatabaseID that represents all the virtual databases marked for deletion in the system. |
java.util.Collection |
getModelIDsOnlyInVDB(VirtualDatabaseID vdbID)
|
java.util.Collection |
getModels(VirtualDatabaseID vdbID)
returns a Collection of type Model that represents all the data sources tthat where deployed in the specified virtual database id |
VirtualDatabase |
getVirtualDatabase(VirtualDatabaseID virtualDatabaseID)
returns the VirtualDatabase based on the virtual database id. |
VirtualDatabaseID |
getVirtualDatabaseID(java.lang.String fullName,
java.lang.String version)
returns the VirtualDatabaseID for the specified full name and version. |
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 vdbID)
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)
Updates the VirtualDatabase status. |
void |
updateVirtualDatabase(VirtualDatabase vdb,
java.lang.String userName)
Update VDB attributes. |
| Methods inherited from class com.metamatrix.common.connection.BaseTransaction |
|---|
close, commit, finalize, getConnection, getRollbackOnFinalize, isClosed, isEnded, isReadonly, rollback, setRollbackOnFinalize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
|---|
public VirtualDatabase getVirtualDatabase(VirtualDatabaseID virtualDatabaseID)
throws VirtualDatabaseException
VirtualDatabase based on the virtual database id.
getVirtualDatabase in interface MetaBaseConnectorvirtualDatabaseID - is the VirtualDatabase to be returned.
VirtualDatabaseException - if an error occurs while trying to read the data.
public VirtualDatabaseID getVirtualDatabaseID(java.lang.String fullName,
java.lang.String version)
throws VirtualDatabaseDoesNotExistException,
VirtualDatabaseException
VirtualDatabaseID for the specified full name and version. This method does validate the existance of the virtual database by reading from the persistance storage before creating the id.
getVirtualDatabaseID in interface MetaBaseConnectorVirtualDatabaseDoesNotExistException - exception if the virtual database does not exist
VirtualDatabaseException - if an error occurs while trying to read the data.
public java.util.Collection getVirtualDatabases()
throws VirtualDatabaseException
Collection of type VirtualDatabase that represents all the virtual databases in the system.
getVirtualDatabases in interface MetaBaseConnectorVirtualDatabaseException - an error occurs while trying to read the data.
public java.util.Collection getDeletedVirtualDatabaseIDs()
throws VirtualDatabaseException
Collection of type VirtualDatabaseID that represents all the virtual databases marked for deletion in the system.
getDeletedVirtualDatabaseIDs in interface MetaBaseConnectorVirtualDatabaseException - an error occurs while trying to read the data.
public java.util.Collection getModels(VirtualDatabaseID vdbID)
throws VirtualDatabaseException
Collection of type Model that represents all the data sources tthat where deployed in the specified virtual database id
getModels in interface MetaBaseConnectorvdbID - is the VirtualDatabaseID
VirtualDatabaseException - an error occurs while trying to read the data.
public VirtualDatabaseID getActiveVirtualDatabaseID(java.lang.String vdbName,
java.lang.String vdbVersion)
throws VirtualDatabaseException,
VirtualDatabaseDoesNotExistException
getActiveVirtualDatabaseID in interface MetaBaseConnectorVirtualDatabaseException
VirtualDatabaseDoesNotExistException
public java.util.Collection getModelIDsOnlyInVDB(VirtualDatabaseID vdbID)
throws VirtualDatabaseException
VirtualDatabaseException
public void setStatus(VirtualDatabaseID virtualDBID,
short status,
java.lang.String userName)
throws InvalidStateException,
VirtualDatabaseException
VirtualDatabase status.
setStatus in interface MetaBaseConnectorvirtualDBID - represents the VirtualDatabase to be updatedstatus - is the state the VirtualDatabase should be set touserName - of the person requesting the change
VirtualDatabaseException - if unable to perform update.
InvalidStateException - if the status to be set is invalid.
public void insertModels(java.util.Collection metadataObjects,
VirtualDatabaseID vdbID)
throws VirtualDatabaseException
MetaBaseConnectorVirtualDatabase.
insertModels in interface MetaBaseConnectormetadataObjects - is a collection of models to be inserted.
VirtualDatabaseException - if unable to perform insertion.
public void insertVirtualDatabase(VirtualDatabase vdb)
throws VirtualDatabaseException
MetaBaseConnectorVirtualDatabase.
insertVirtualDatabase in interface MetaBaseConnectorvdb - 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.
public void deleteVirtualDatabase(VirtualDatabaseID vdbID)
throws VirtualDatabaseException
MetaBaseConnectorVirtualDatabase.
deleteVirtualDatabase in interface MetaBaseConnectorvdbID - is the ID of the virtual database to be deleted.
VirtualDatabaseException - an error occurs while trying to delete the data.
public void setConnectorBindingNames(VirtualDatabaseID vdbID,
java.util.Collection models,
java.util.Map modelAndCBNames)
throws VirtualDatabaseException
setConnectorBindingNames in interface MetaBaseConnectorVirtualDatabaseException
public void updateVirtualDatabase(VirtualDatabase vdb,
java.lang.String userName)
throws VirtualDatabaseException
MetaBaseConnectorVirtualDatabase.ModifiableAttributes
can be modefied. Call VirtualDatabase.update(String attribute, Object value)
to update each attribute of the VDB before calling this method.
updateVirtualDatabase in interface MetaBaseConnectorvdb - 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 | |||||||||