org.alfresco.repo.domain.control
Interface ControlDAO

All Known Implementing Classes:
AbstractControlDAOImpl, ControlDAOImpl, ControlDAOImpl.PostgreSQL

public interface ControlDAO

DAO services for database control statements. It is sometimes necessary to issue control statements on a database connection; these are not usually supported in the ANSI SQL standard.

Since:
3.2SP1

Method Summary
 java.sql.Savepoint createSavepoint(java.lang.String savepoint)
          Create a "Save Point" in the current transaction, for later selective rollback.
 void executeBatch()
          Execute statements that were queued for batching.
 void releaseSavepoint(java.sql.Savepoint savepoint)
          Remove a previously-created "Save Point", writing any intervening updates into the current transaction.
 void rollbackToSavepoint(java.sql.Savepoint savepoint)
          Roll back to a previously-created "Save Point", discarding any intervening changes to the current transaction.
 void startBatch()
          Begin batching prepared statements for later execution.
 

Method Detail

startBatch

void startBatch()
Begin batching prepared statements for later execution.

See Also:
ControlDAO.executeBatch()

executeBatch

void executeBatch()
Execute statements that were queued for batching.

See Also:
ControlDAO.startBatch()

createSavepoint

java.sql.Savepoint createSavepoint(java.lang.String savepoint)
Create a "Save Point" in the current transaction, for later selective rollback. Creation should be accompanied by a matching #rollbackToSavepoint(String) or #releaseSavepoint(String) using the same name.

Parameters:
savepoint - the name of the save point
Returns:
Returns the handle to the savepoint or null if the implementation does not support it

rollbackToSavepoint

void rollbackToSavepoint(java.sql.Savepoint savepoint)
Roll back to a previously-created "Save Point", discarding any intervening changes to the current transaction.

Parameters:
savepoint - a previously-created savepoint
See Also:
ControlDAO.createSavepoint(String)

releaseSavepoint

void releaseSavepoint(java.sql.Savepoint savepoint)
Remove a previously-created "Save Point", writing any intervening updates into the current transaction.

Parameters:
savepoint - the name of the save point
See Also:
ControlDAO.createSavepoint(String)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.