|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.config.persistence.impl.jdbc.JDBCPersistentConnection
public class JDBCPersistentConnection
Constructor Summary | |
---|---|
JDBCPersistentConnection(java.sql.Connection conn,
ConfigurationModelContainerAdapter adapter,
java.util.Properties props)
|
Method Summary | |
---|---|
void |
beginTransaction()
|
void |
close()
call close when the connection is no longer needed. |
void |
commit()
|
void |
delete(ConfigurationID configID,
java.lang.String principal)
Writes the collection of models to its persistent store based on the implementation of the persistent connection. |
protected void |
finalize()
|
int |
getServerState()
Returns the int startup state, use constants in StartupStateController to
interpret the meaning |
java.util.Date |
getStartupTime()
Call to get the current state |
boolean |
isClosed()
call to determine is the connection is still available. |
ConfigurationModelContainer |
read(ConfigurationID configID)
Returns an ConfigurationModelContainer based on how the implementation read configuation information |
void |
rollback()
|
void |
setServerStarted()
Call to set the startup state to @see {StartupStateController.STARTED Started}. |
void |
setServerStarting()
Call to set the startup state to @see {StartupStateController.STARTING Starting}. |
void |
setServerStarting(boolean force)
Call to forcibly set the startup state to @see {StartupStateController.STARTING Starting}, regardless of the current state of the server. |
void |
setServerStopped()
Call to set the startup state to @see {StartupStateController.STOPPED Stopped}. |
void |
write(ConfigurationModelContainer config,
java.lang.String principalName)
Writes the model to its persistent store based on the implementation of the persistent connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCPersistentConnection(java.sql.Connection conn, ConfigurationModelContainerAdapter adapter, java.util.Properties props)
Method Detail |
---|
protected void finalize()
finalize
in class java.lang.Object
public void close()
PersistentConnection
close
in interface PersistentConnection
public boolean isClosed()
PersistentConnection
isClosed
in interface PersistentConnection
public void setServerStarting() throws StartupStateException, ConfigurationException
setServerStarting
in interface PersistentConnection
StartupStateException
- is thrown if the server state is not currently
set to STOPPED.
ConfigurationException
public void setServerStarting(boolean force) throws StartupStateException, ConfigurationException
setServerStarting
in interface PersistentConnection
StartupStateException
- is thrown if the server state cannot be set.
ConfigurationException
public void setServerStarted() throws StartupStateException, ConfigurationException
setServerStarted
in interface PersistentConnection
StartupStateException
- is thrown if the server state cannot be set.
ConfigurationException
public void setServerStopped() throws StartupStateException, ConfigurationException
setServerStopped
in interface PersistentConnection
StartupStateException
- is thrown if the server state cannot be set.
ConfigurationException
public int getServerState() throws ConfigurationException
StartupStateController
to
interpret the meaning
getServerState
in interface PersistentConnection
ConfigurationException
- if an error occurspublic java.util.Date getStartupTime() throws ConfigurationException
getStartupTime
in interface PersistentConnection
ConfigurationException
- if an error occurspublic ConfigurationModelContainer read(ConfigurationID configID) throws ConfigurationException
read
in interface PersistentConnection
configID
- indicates which configuration to read
ConfigurationException
- if an error occurspublic void write(ConfigurationModelContainer config, java.lang.String principalName) throws ConfigurationException
write
in interface PersistentConnection
model
- to be writen to outputprincipal
- is the user executing the write
ConfigurationException
- if an error occurspublic void delete(ConfigurationID configID, java.lang.String principal) throws ConfigurationException
delete
in interface PersistentConnection
models
- to be writen to outputprincipal
- is the user executing the write
ConfigurationException
- if an error occurspublic void beginTransaction() throws ConfigurationException
beginTransaction
in interface PersistentConnection
ConfigurationException
public void commit() throws ConfigurationException
commit
in interface PersistentConnection
ConfigurationException
public void rollback() throws ConfigurationException
rollback
in interface PersistentConnection
ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |