|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gouv.culture.sdx.utils.SdxObjectImpl
fr.gouv.culture.sdx.utils.database.SQLDatabaseConnection
Created by IntelliJ IDEA. User: rpandey Date: Mar 3, 2003 Time: 2:13:01 PM To change this template use Options | File Templates.
| Field Summary |
| Fields inherited from class fr.gouv.culture.sdx.utils.SdxObjectImpl |
encoding, logger |
| Constructor Summary | |
SQLDatabaseConnection()
|
|
SQLDatabaseConnection(java.sql.Connection conn)
|
|
| 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 to the datasource component |
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 class fr.gouv.culture.sdx.utils.SdxObjectImpl |
enableLogging, getChildLogger, setEncoding |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.gouv.culture.sdx.utils.SdxObject |
setEncoding |
| Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
enableLogging |
| Constructor Detail |
public SQLDatabaseConnection()
public SQLDatabaseConnection(java.sql.Connection conn)
| Method Detail |
public void commit()
throws SDXException
DatabaseConnection
commit in interface DatabaseConnectionSDXException
public void rollback()
throws SDXException
DatabaseConnection
rollback in interface DatabaseConnectionSDXException
public void setAutoCommit(boolean autoCommit)
throws SDXException
DatabaseConnection
setAutoCommit in interface DatabaseConnectionautoCommit - true enables auto-commit ; false disables auto-commit.
SDXExceptionpublic java.sql.Connection getConnection()
getConnection in interface DatabaseConnection
public void close()
throws SDXException
DatabaseConnection
close in interface DatabaseConnectionSDXException
public void optimize()
throws SDXException
DatabaseConnection
optimize in interface DatabaseConnectionSDXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||