public class DeleteByLocatorOperation extends DataManipulationOperation
locator URIs
.
All the objects that have any of these locators set are deleted from an index structure.AbstractOperation.OperationConstructor, AbstractOperation.OperationName
suppData, uuidOperationComparator
Modifier | Constructor and Description |
---|---|
|
DeleteByLocatorOperation(java.util.Collection<java.lang.String> locators)
Creates a new instance of DeleteByLocatorOperation.
|
|
DeleteByLocatorOperation(java.util.Collection<java.lang.String> locators,
int deleteLimit)
Creates a new instance of DeleteByLocatorOperation.
|
protected |
DeleteByLocatorOperation(java.util.Set<java.lang.String> locators,
int deleteLimit)
Creates a new instance of DeleteByLocatorOperation.
|
|
DeleteByLocatorOperation(java.lang.String[] locators)
Creates a new instance of DeleteByLocatorOperation.
|
|
DeleteByLocatorOperation(java.lang.String[] locators,
int deleteLimit)
Creates a new instance of DeleteByLocatorOperation.
|
Modifier and Type | Method and Description |
---|---|
void |
addDeletedObject(LocalAbstractObject deletedObject)
Mark the specified object as deleted by this operation.
|
void |
clearSurplusData()
Clear non-messif data stored in operation.
|
void |
endOperation()
End operation successfully.
|
java.lang.Object |
getArgument(int index)
Returns argument that was passed while constructing instance.
|
int |
getArgumentCount()
Returns number of arguments that were passed while constructing this instance.
|
int |
getDeleteLimit()
Returns the maximal number of deleted objects.
|
java.util.Set<java.lang.String> |
getLocators()
Returns the locators of objects to delete.
|
java.util.List<LocalAbstractObject> |
getObjects()
Returns the list of all actually deleted objects.
|
boolean |
isLimitReached()
Returns whether the number of deleted objects has reached the
deleteLimit . |
void |
updateFrom(AbstractOperation operation)
Update the operation result.
|
boolean |
wasSuccessful()
Returns true if this operation was successfuly completed.
|
appendArguments, appendErrorCode, clone, containsParameter, createOperation, endOperation, equals, getAnnotatedConstructor, getAnnotatedConstructor, getArgumentString, getConstructorArgumentDescriptions, getConstructorArgumentDescriptions, getConstructorArguments, getConstructorArguments, getConstructorDescription, getErrorCode, getName, getName, getOperationID, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter, hashCode, isErrorCode, isFinished, removeParameter, setParameter, toString
protected DeleteByLocatorOperation(java.util.Set<java.lang.String> locators, int deleteLimit)
locators
- collection of locators of objects to deletedeleteLimit
- the maximal number of deleted objects (zero means unlimited)public DeleteByLocatorOperation(java.util.Collection<java.lang.String> locators, int deleteLimit)
locators
- collection of locators of objects to deletedeleteLimit
- the maximal number of deleted objects (zero means unlimited)public DeleteByLocatorOperation(java.util.Collection<java.lang.String> locators)
locators
- collection of locators of objects to deletepublic DeleteByLocatorOperation(java.lang.String[] locators, int deleteLimit)
locators
- collection of locators of objects to deletedeleteLimit
- the maximal number of deleted objects (zero means unlimited)public DeleteByLocatorOperation(java.lang.String[] locators)
locators
- collection of locators of objects to deletepublic java.util.Set<java.lang.String> getLocators()
public int getDeleteLimit()
public boolean isLimitReached()
deleteLimit
.public java.util.List<LocalAbstractObject> getObjects()
public java.lang.Object getArgument(int index) throws java.lang.IndexOutOfBoundsException
getArgument
in class AbstractOperation
index
- index of an argument passed to constructorjava.lang.IndexOutOfBoundsException
- if index parameter is out of rangepublic int getArgumentCount()
getArgumentCount
in class AbstractOperation
public boolean wasSuccessful()
wasSuccessful
in class AbstractOperation
public void endOperation()
endOperation
in class AbstractOperation
public void addDeletedObject(LocalAbstractObject deletedObject)
deletedObject
- the object that was deletedpublic void updateFrom(AbstractOperation operation)
updateFrom
in class AbstractOperation
operation
- foreign operation from which to update this onepublic void clearSurplusData()
clearSurplusData
in interface Clearable
clearSurplusData
in class AbstractOperation