protected BatchQueryBuilder createBuilder() throws CayenneException {
if (query instanceof InsertBatchQuery) {
return new InsertBatchQueryBuilder(getAdapter());
}
else if (query instanceof UpdateBatchQuery) {
return new UpdateBatchQueryBuilder(getAdapter());
}
else if (query instanceof DeleteBatchQuery) {
return new DeleteBatchQueryBuilder(getAdapter());
}
else {