public class SQLDatabaseConnection extends AbstractSdxObject implements DatabaseConnection
SdxObject.ConfigurationNode_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitializedCLASS_NAME_SUFFIXDEFAULT_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, verifyConfigurationResourcesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, setIdgetDescription, setDescriptiongetEncoding, setEncodinggetLocale, getXmlLang, setLocale, setXmlLangpublic SQLDatabaseConnection()
public SQLDatabaseConnection(java.sql.Connection conn)
public void commit()
throws SDXException
DatabaseConnectioncommit in interface DatabaseConnectionSDXExceptionpublic void rollback()
throws SDXException
DatabaseConnectionrollback in interface DatabaseConnectionSDXExceptionpublic void setAutoCommit(boolean autoCommit)
throws SDXException
DatabaseConnectionsetAutoCommit in interface DatabaseConnectionautoCommit - true enables auto-commit ; false disables auto-commit.SDXExceptionpublic java.sql.Connection getConnection()
getConnection in interface DatabaseConnectionpublic void close()
throws SDXException
DatabaseConnectionclose in interface DatabaseConnectionSDXExceptionpublic void optimize()
throws SDXException
DatabaseConnectionoptimize in interface DatabaseConnectionSDXExceptionprotected java.lang.String getClassNameSuffix()
AbstractSdxObjectgetClassNameSuffix in class AbstractSdxObjectprotected boolean initToSax()
AbstractSdxObjectinitToSax in class AbstractSdxObjectprotected void initVolatileObjectsToSax()
initVolatileObjectsToSax in class AbstractSdxObjectCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.