Class MySQLDeleteNotExistsExecutor
java.lang.Object
org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor
org.alfresco.repo.domain.schema.script.MySQLDeleteNotExistsExecutor
- All Implemented Interfaces:
StatementExecutor
Extends
DeleteNotExistsExecutor to cope with MySQL specific fetch size limitation and restrictions.-
Field Summary
Fields inherited from class org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor
batchSize, connection, deleteBatchSize, deletedCount, globalProperties, PROPERTY_BATCH_SIZE, PROPERTY_DELETE_BATCH_SIZE, PROPERTY_READ_ONLY, PROPERTY_TIMEOUT_SECONDS, readOnly, startTime -
Constructor Summary
ConstructorsConstructorDescriptionMySQLDeleteNotExistsExecutor(Connection connection, String sql, int line, File scriptFile, Properties globalProperties, DataSource dataSource) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected LongprocessPrimaryTableResultSet(PreparedStatement primaryPrepStmt, PreparedStatement[] secondaryPrepStmts, PreparedStatement deletePrepStmt, Set<Long> deleteIds, String primaryTableName, String primaryColumnName, Pair<String, String>[] tableColumn) Methods inherited from class org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor
checkProperties, closeQuietly, closeQuietly, closeQuietly, closeQuietly, createPreparedDeleteStatement, createPreparedSelectStatement, deleteFromPrimaryTable, execute, getColumnValueById, getSecondaryIds, getSecondaryResultSets, isLess, isTimeoutExceeded, process
-
Constructor Details
-
MySQLDeleteNotExistsExecutor
public MySQLDeleteNotExistsExecutor(Connection connection, String sql, int line, File scriptFile, Properties globalProperties, DataSource dataSource)
-
-
Method Details
-
process
protected void process(Pair<String, String>[] tableColumn, Long[] tableUpperLimits, String[] optionalWhereClauses) throws SQLException- Overrides:
processin classDeleteNotExistsExecutor- Throws:
SQLException
-
processPrimaryTableResultSet
protected Long processPrimaryTableResultSet(PreparedStatement primaryPrepStmt, PreparedStatement[] secondaryPrepStmts, PreparedStatement deletePrepStmt, Set<Long> deleteIds, String primaryTableName, String primaryColumnName, Pair<String, String>[] tableColumn) throws SQLException- Overrides:
processPrimaryTableResultSetin classDeleteNotExistsExecutor- Throws:
SQLException
-