Class MySQLDeleteNotExistsExecutor
- java.lang.Object
-
- org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor
-
- org.alfresco.repo.domain.schema.script.MySQLDeleteNotExistsExecutor
-
- All Implemented Interfaces:
StatementExecutor
public class MySQLDeleteNotExistsExecutor extends DeleteNotExistsExecutor
Extendsto cope with MySQL specific fetch size limitation and restrictions.DeleteNotExistsExecutor
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor
batchSize, connection, deleteBatchSize, deletedCount, PROPERTY_BATCH_SIZE, PROPERTY_DELETE_BATCH_SIZE, PROPERTY_READ_ONLY, PROPERTY_TIMEOUT_SECONDS, readOnly, startTime
-
-
Constructor Summary
Constructors Constructor Description MySQLDeleteNotExistsExecutor(Connection connection, String sql, int line, File scriptFile, Properties globalProperties, DataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprocess(Pair<String,String>[] tableColumn, Long[] tableUpperLimits, String[] optionalWhereClauses)protected 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
-
-
-
-
Constructor Detail
-
MySQLDeleteNotExistsExecutor
public MySQLDeleteNotExistsExecutor(Connection connection, String sql, int line, File scriptFile, Properties globalProperties, DataSource dataSource)
-
-
Method Detail
-
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
-
-