fr.gouv.culture.sdx.utils.database
Interface DatabaseConnection

All Superinterfaces:
org.apache.avalon.framework.logger.LogEnabled, SdxObject
All Known Implementing Classes:
SQLDatabaseConnection

public interface DatabaseConnection
extends SdxObject

Created by IntelliJ IDEA. User: rpandey Date: Mar 3, 2003 Time: 2:11:37 PM To change this template use Options | File Templates.


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
setEncoding
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Method Detail

commit

public void commit()
            throws SDXException
Commit all operation done with this active connection.

Throws:
SDXException

rollback

public void rollback()
              throws SDXException
Undo all operations done with this connection.

Throws:
SDXException

setAutoCommit

public 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

public void optimize()
              throws SDXException
Can do optimization of a Repository if needed

Throws:
SDXException

getConnection

public java.sql.Connection getConnection()
Returns the SQL connection


close

public void close()
           throws SDXException
Closes the connectiokbn

Throws:
SDXException


Copyright © 2000-2004 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.