public class SQLDatabaseConnection extends AbstractSdxObject implements DatabaseConnection
SdxObject.ConfigurationNode
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
CLASS_NAME_SUFFIX
DEFAULT_ENCODING
Constructor and Description |
---|
SQLDatabaseConnection() |
SQLDatabaseConnection(java.sql.Connection conn) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connectiokbn
|
void |
commit()
Commit all operation done with this active connection.
|
protected java.lang.String |
getClassNameSuffix()
Sub classes should element this method to return their class name suffix for SAX output
|
java.sql.Connection |
getConnection()
Returns the SQL connection to the datasource component
|
protected boolean |
initToSax()
Init the LinkedHashMap _xmlizable_objects with the objects in order to describ them in XML
|
protected void |
initVolatileObjectsToSax()
Init the LinkedHashMap _xmlizable_volatile_objects with the objects in order to describ them in XML
Some objects need to be refresh each time a toSAX is called
|
void |
optimize()
Can do optimization of a Repository if needed
|
void |
rollback()
Undo all operations done with this connection.
|
void |
setAutoCommit(boolean autoCommit)
Sets this connection in autocommit mode or not.
|
configure, configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, setId
getDescription, setDescription
getEncoding, setEncoding
getLocale, getXmlLang, setLocale, setXmlLang
public SQLDatabaseConnection()
public SQLDatabaseConnection(java.sql.Connection conn)
public void commit() throws SDXException
DatabaseConnection
commit
in interface DatabaseConnection
SDXException
public void rollback() throws SDXException
DatabaseConnection
rollback
in interface DatabaseConnection
SDXException
public void setAutoCommit(boolean autoCommit) throws SDXException
DatabaseConnection
setAutoCommit
in interface DatabaseConnection
autoCommit
- true enables auto-commit ; false disables auto-commit.SDXException
public java.sql.Connection getConnection()
getConnection
in interface DatabaseConnection
public void close() throws SDXException
DatabaseConnection
close
in interface DatabaseConnection
SDXException
public void optimize() throws SDXException
DatabaseConnection
optimize
in interface DatabaseConnection
SDXException
protected java.lang.String getClassNameSuffix()
AbstractSdxObject
getClassNameSuffix
in class AbstractSdxObject
protected boolean initToSax()
AbstractSdxObject
initToSax
in class AbstractSdxObject
protected void initVolatileObjectsToSax()
initVolatileObjectsToSax
in class AbstractSdxObject
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.