Class DeleteNotExistsExecutor
- java.lang.Object
-
- org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor
-
- All Implemented Interfaces:
StatementExecutor
public class DeleteNotExistsExecutor extends java.lang.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 java.lang.StringPROPERTY_BATCH_SIZEstatic java.lang.StringPROPERTY_DELETE_BATCH_SIZEstatic java.lang.StringPROPERTY_READ_ONLYstatic java.lang.StringPROPERTY_TIMEOUT_SECONDS
-
Constructor Summary
Constructors Constructor Description DeleteNotExistsExecutor(java.sql.Connection connection, java.lang.String sql, int line, java.io.File scriptFile, java.util.Properties globalProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckProperties()voidexecute()
-
-
-
Field Detail
-
PROPERTY_BATCH_SIZE
public static final java.lang.String PROPERTY_BATCH_SIZE
- See Also:
- Constant Field Values
-
PROPERTY_DELETE_BATCH_SIZE
public static final java.lang.String PROPERTY_DELETE_BATCH_SIZE
- See Also:
- Constant Field Values
-
PROPERTY_READ_ONLY
public static final java.lang.String PROPERTY_READ_ONLY
- See Also:
- Constant Field Values
-
PROPERTY_TIMEOUT_SECONDS
public static final java.lang.String PROPERTY_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkProperties
public void checkProperties()
-
execute
public void execute() throws java.lang.Exception- Specified by:
executein interfaceStatementExecutor- Throws:
java.lang.Exception
-
-