|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gouv.culture.sdx.repository.AbstractRepositoryConnection
fr.gouv.culture.sdx.repository.JDBCRepositoryConnection
This classes represents a SQL Connection to JDBC Source
| Field Summary |
| Fields inherited from class fr.gouv.culture.sdx.repository.AbstractRepositoryConnection |
logger |
| Constructor Summary | |
JDBCRepositoryConnection(org.apache.avalon.excalibur.datasource.DataSourceComponent dataSource)
Creates a connection using a standard SQL Connection. |
|
| Method Summary | |
void |
commit()
Commit all pending operations within this active connection. |
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
Set's the logger for this connection. |
java.sql.Connection |
getConnection()
Returns the SQL connection to the datasource component |
org.apache.avalon.excalibur.datasource.DataSourceComponent |
getDataSource()
Returns the datasource component from which this connection was derived |
protected void |
releaseSqlConnection()
Releases the SQL Connection to the datasource |
void |
rollback()
Undo all pending operations within with this connection. |
void |
setAutoCommit(boolean autoCommit)
Sets this connection in autocommit mode or not. |
| Methods inherited from class fr.gouv.culture.sdx.repository.AbstractRepositoryConnection |
optimize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDBCRepositoryConnection(org.apache.avalon.excalibur.datasource.DataSourceComponent dataSource)
throws java.sql.SQLException
dataSource - The component from cocoon representing the database| Method Detail |
public void commit()
throws SDXException
commit in interface RepositoryConnectioncommit in class AbstractRepositoryConnectionSDXException
public void rollback()
throws SDXException
rollback in interface RepositoryConnectionrollback in class AbstractRepositoryConnectionSDXException
public void setAutoCommit(boolean autoCommit)
throws SDXException
setAutoCommit in interface RepositoryConnectionsetAutoCommit in class AbstractRepositoryConnectionautoCommit - true enables auto-commit ; false disables auto-commit.
SDXExceptionpublic java.sql.Connection getConnection()
public org.apache.avalon.excalibur.datasource.DataSourceComponent getDataSource()
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
enableLogging in interface org.apache.avalon.framework.logger.LogEnabledenableLogging in class AbstractRepositoryConnectionlogger - The logger to use.
protected void releaseSqlConnection()
throws SDXException
SDXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||