Package org.alfresco.ibatis
Interface BatchingDAO
- All Known Implementing Classes:
AbstractNodeDAOImpl,AbstractPatchDAOImpl,NodeDAOImpl,NodeDAOImpl.MSSQL,NodeDAOImpl.MySQL,NodeDAOImpl.MySQLClusterNDB,PatchDAOImpl,PatchDAOImpl.Oracle,PatchDAOImpl.PostgreSQL
public interface BatchingDAO
Interface for DAOs that offer batching. This should be provided as an optimization
and DAO implementations that can't supply batching should just do nothing.
- Since:
- 3.2.1
- Author:
- Derek Hulley
-
Method Summary
Modifier and TypeMethodDescriptionvoidWrite a batch of insert or update commandsvoidStart a batch of insert or update commands
-
Method Details
-
startBatch
void startBatch()Start a batch of insert or update commands- Throws:
RuntimeException- wrapping a SQLException
-
executeBatch
void executeBatch()Write a batch of insert or update commands- Throws:
RuntimeException- wrapping a SQLException
-