Class DeleteNotExistsExecutor
- java.lang.Object
-
- org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor
-
- All Implemented Interfaces:
StatementExecutor
public class DeleteNotExistsExecutor extends Object implements StatementExecutor
The--DELETE_NOT_EXISTS primaryTable.columnName,secondaryTable1.columnName1,...,secondaryTableN.columnNameN batch.size.propertystatement is used to delete all the items that don't have any corresponding key in any of the secondary tables (e.g. secondaryTable1.columnName1,...,secondaryTableN.columnNameN). The processing of the tables and the actual deletes are done in batches to support a high volume of data. It can be influenced using:
system.delete_not_exists.batchsizeand/orsystem.delete_not_exists.delete_batchsizeThe statement can be executed in read only mode using:system.delete_not_exists.read_only. In case of high volume of data we can limit the processing time using:system.delete_not_exists.timeout_seconds.- Author:
- Cristian Turlica
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_BATCH_SIZEstatic StringPROPERTY_DELETE_BATCH_SIZEstatic StringPROPERTY_READ_ONLYstatic StringPROPERTY_TIMEOUT_SECONDS
-
Constructor Summary
Constructors Constructor Description DeleteNotExistsExecutor(Connection connection, String sql, int line, File scriptFile, Properties globalProperties)
-
-
-
Field Detail
-
PROPERTY_BATCH_SIZE
public static final String PROPERTY_BATCH_SIZE
- See Also:
- Constant Field Values
-
PROPERTY_DELETE_BATCH_SIZE
public static final String PROPERTY_DELETE_BATCH_SIZE
- See Also:
- Constant Field Values
-
PROPERTY_READ_ONLY
public static final String PROPERTY_READ_ONLY
- See Also:
- Constant Field Values
-
PROPERTY_TIMEOUT_SECONDS
public static final String PROPERTY_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DeleteNotExistsExecutor
public DeleteNotExistsExecutor(Connection connection, String sql, int line, File scriptFile, Properties globalProperties)
-
-
Method Detail
-
checkProperties
public void checkProperties()
-
execute
public void execute() throws Exception- Specified by:
executein interfaceStatementExecutor- Throws:
Exception
-
-