org.alfresco.repo.domain.control.ibatis
Class ControlDAOImpl

java.lang.Object
  extended by org.alfresco.repo.domain.control.AbstractControlDAOImpl
      extended by org.alfresco.repo.domain.control.ibatis.ControlDAOImpl
All Implemented Interfaces:
ControlDAO
Direct Known Subclasses:
ControlDAOImpl.PostgreSQL

public class ControlDAOImpl
extends AbstractControlDAOImpl

iBatis-specific, DB-agnostic implementation for connection controlling DAO.

Since:
3.2SP1

Nested Class Summary
static class ControlDAOImpl.PostgreSQL
          PostgreSQL-specific implementation for control DAO.
 
Field Summary
protected  org.mybatis.spring.SqlSessionTemplate template
          The myBatis-specific template for convenient statement execution.
 
Constructor Summary
ControlDAOImpl()
           
 
Method Summary
 void executeBatch()
          Execute statements that were queued for batching.
 void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
           
 int setTransactionIsolationLevel(int isolationLevel)
          Change the current transaction isolation level.
 void startBatch()
          Begin batching prepared statements for later execution.
 
Methods inherited from class org.alfresco.repo.domain.control.AbstractControlDAOImpl
createSavepoint, releaseSavepoint, rollbackToSavepoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

template

protected org.mybatis.spring.SqlSessionTemplate template
The myBatis-specific template for convenient statement execution.

Constructor Detail

ControlDAOImpl

public ControlDAOImpl()
Method Detail

setSqlSessionTemplate

public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)

startBatch

public void startBatch()
Description copied from interface: ControlDAO
Begin batching prepared statements for later execution.

See Also:
ControlDAO.executeBatch()

executeBatch

public void executeBatch()
Description copied from interface: ControlDAO
Execute statements that were queued for batching.

See Also:
ControlDAO.startBatch()

setTransactionIsolationLevel

public int setTransactionIsolationLevel(int isolationLevel)
Description copied from interface: ControlDAO
Change the current transaction isolation level.

Note: The isolation level should not - and for some DBs, cannot - be changed except at the very start of the transaction

Specified by:
setTransactionIsolationLevel in interface ControlDAO
Overrides:
setTransactionIsolationLevel in class AbstractControlDAOImpl
Parameters:
isolationLevel - the transaction isolation level
Returns:
Returns the previously-set isolation


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