fr.gouv.culture.sdx.utils.database
Interface DatabaseConnection
- All Superinterfaces:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, Describable, Encodable, Identifiable, Localizable, org.apache.avalon.framework.logger.LogEnabled, SdxObject, org.apache.avalon.framework.service.Serviceable, org.apache.excalibur.xml.sax.XMLizable
- All Known Implementing Classes:
- JDBCDatabaseConnection, SQLDatabaseConnection
public interface DatabaseConnection
- extends SdxObject
Method Summary |
void |
close()
Closes the connectiokbn |
void |
commit()
Commit all operation done with this active connection. |
java.sql.Connection |
getConnection()
Returns the SQL connection |
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. |
Methods inherited from interface fr.gouv.culture.sdx.utils.SdxObject |
getLog |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
enableLogging |
Methods inherited from interface org.apache.avalon.framework.context.Contextualizable |
contextualize |
Methods inherited from interface org.apache.avalon.framework.service.Serviceable |
service |
Methods inherited from interface org.apache.avalon.framework.configuration.Configurable |
configure |
Methods inherited from interface org.apache.excalibur.xml.sax.XMLizable |
toSAX |
CLASS_NAME_SUFFIX
static final java.lang.String CLASS_NAME_SUFFIX
- See Also:
- Constant Field Values
commit
void commit()
throws SDXException
- Commit all operation done with this active connection.
- Throws:
SDXException
rollback
void rollback()
throws SDXException
- Undo all operations done with this connection.
- Throws:
SDXException
setAutoCommit
void setAutoCommit(boolean autoCommit)
throws SDXException
- Sets this connection in autocommit mode or not.
- Parameters:
autoCommit
- true enables auto-commit ; false disables auto-commit.
- Throws:
SDXException
optimize
void optimize()
throws SDXException
- Can do optimization of a Repository if needed
- Throws:
SDXException
getConnection
java.sql.Connection getConnection()
- Returns the SQL connection
close
void close()
throws SDXException
- Closes the connectiokbn
- Throws:
SDXException
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.