com.metamatrix.platform.config.persistence.api
Class ExtensionModuleConnection

java.lang.Object
  extended by com.metamatrix.platform.config.persistence.api.ExtensionModuleConnection
All Implemented Interfaces:
PersistentConnection

public class ExtensionModuleConnection
extends java.lang.Object
implements PersistentConnection


Constructor Summary
ExtensionModuleConnection(ExtensionModuleTransaction trans)
           
 
Method Summary
 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.
 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 write(ConfigurationModelContainer model, java.lang.String principal)
          Writes the model to its persistent store based on the implementation of the persistent connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionModuleConnection

public ExtensionModuleConnection(ExtensionModuleTransaction trans)
Method Detail

close

public void close()
Description copied from interface: PersistentConnection
call close when the connection is no longer needed. This resource will be cleaned up.

Specified by:
close in interface PersistentConnection

commit

public void commit()
            throws ConfigurationException
Specified by:
commit in interface PersistentConnection
Throws:
ConfigurationException

delete

public void delete(ConfigurationID configID,
                   java.lang.String principal)
            throws ConfigurationException
Description copied from interface: PersistentConnection
Writes the collection of models to its persistent store based on the implementation of the persistent connection.

Specified by:
delete in interface PersistentConnection
principal - is the user executing the write
Throws:
ConfigurationException - if an error occurs

isClosed

public boolean isClosed()
Description copied from interface: PersistentConnection
call to determine is the connection is still available.

Specified by:
isClosed in interface PersistentConnection
Returns:
boolean true if the connection is available

read

public ConfigurationModelContainer read(ConfigurationID configID)
                                 throws ConfigurationException
Description copied from interface: PersistentConnection
Returns an ConfigurationModelContainer based on how the implementation read configuation information

Specified by:
read in interface PersistentConnection
Parameters:
configID - indicates which configuration to read
Returns:
ConfigurationModel
Throws:
ConfigurationException - if an error occurs

rollback

public void rollback()
              throws ConfigurationException
Specified by:
rollback in interface PersistentConnection
Throws:
ConfigurationException

write

public void write(ConfigurationModelContainer model,
                  java.lang.String principal)
           throws ConfigurationException
Description copied from interface: PersistentConnection
Writes the model to its persistent store based on the implementation of the persistent connection.

Specified by:
write in interface PersistentConnection
Parameters:
model - to be writen to output
principal - is the user executing the write
Throws:
ConfigurationException - if an error occurs


Copyright © 2009. All Rights Reserved.