Class ControlDAOImpl
java.lang.Object
org.alfresco.repo.domain.control.AbstractControlDAOImpl
org.alfresco.repo.domain.control.ibatis.ControlDAOImpl
- All Implemented Interfaces:
ControlDAO
- Direct Known Subclasses:
ControlDAOImpl.PostgreSQL
iBatis-specific, DB-agnostic implementation for connection controlling DAO.
- Since:
- 3.2SP1
- Author:
- Derek Hulley
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPostgreSQL-specific implementation for control DAO. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.mybatis.spring.SqlSessionTemplateThe myBatis-specific template for convenient statement execution. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExecute statements that were queued for batching.final voidsetSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) intsetTransactionIsolationLevel(int isolationLevel) Change the current transaction isolation level.voidBegin batching prepared statements for later execution.Methods inherited from class org.alfresco.repo.domain.control.AbstractControlDAOImpl
createSavepoint, releaseSavepoint, rollbackToSavepoint
-
Field Details
-
template
protected org.mybatis.spring.SqlSessionTemplate templateThe myBatis-specific template for convenient statement execution.
-
-
Constructor Details
-
ControlDAOImpl
public ControlDAOImpl()
-
-
Method Details
-
setSqlSessionTemplate
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) -
startBatch
public void startBatch()Description copied from interface:ControlDAOBegin batching prepared statements for later execution.- See Also:
-
executeBatch
public void executeBatch()Description copied from interface:ControlDAOExecute statements that were queued for batching.- See Also:
-
setTransactionIsolationLevel
public int setTransactionIsolationLevel(int isolationLevel) Description copied from interface:ControlDAOChange 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:
setTransactionIsolationLevelin interfaceControlDAO- Overrides:
setTransactionIsolationLevelin classAbstractControlDAOImpl- Parameters:
isolationLevel- the transaction isolation level- Returns:
- Returns the previously-set isolation
-