|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.operations.AbstractOperation
messif.operations.data.DeleteOperation
public class DeleteOperation
Operation for deleting an object.
The operation keeps one abstract object
.
All the objects that are data equal
to this specified
object are deleted from an index structure.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class messif.operations.AbstractOperation |
---|
AbstractOperation.DataEqualOperation, AbstractOperation.OperationConstructor, AbstractOperation.OperationName |
Field Summary |
---|
Fields inherited from class messif.operations.AbstractOperation |
---|
errValue, operID, suppData |
Constructor Summary | |
---|---|
DeleteOperation(LocalAbstractObject deletedObject)
Creates a new instance of DeleteOperation. |
|
DeleteOperation(LocalAbstractObject deletedObject,
int deleteLimit)
Creates a new instance of DeleteOperation. |
|
DeleteOperation(LocalAbstractObject deletedObject,
int deleteLimit,
boolean checkLocator)
Creates a new instance of DeleteOperation. |
Method Summary | |
---|---|
void |
addDeletedObject(LocalAbstractObject deletedObject)
Mark the specified object as deleted by this operation. |
void |
clearSurplusData()
Clear non-messif data stored in operation. |
protected boolean |
dataEqualsImpl(AbstractOperation obj)
Indicates whether some other operation has the same data as this one. |
int |
dataHashCode()
Returns a hash code value for the data of this 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. |
LocalAbstractObject |
getDeletedObject()
Returns the object against which to match the deleted objects. |
int |
getDeleteLimit()
Returns the maximal number of deleted objects. |
java.util.List<LocalAbstractObject> |
getObjects()
Returns the list of all actually deleted objects. |
boolean |
isCheckingLocator()
Returns the flag whether to check that the deleted object's locator is equal to deletedObject 's locator. |
void |
updateFrom(AbstractOperation operation)
Update the error code of this operation from another operation. |
boolean |
wasSuccessful()
Returns true if this operation has finished successfuly. |
Methods inherited from class messif.operations.AbstractOperation |
---|
appendArguments, appendErrorCode, clone, createOperation, dataEquals, endOperation, equals, getAnnotatedConstructor, getAnnotatedConstructor, getConstructorArgumentDescriptions, getConstructorArgumentDescriptions, getConstructorArguments, getConstructorArguments, getConstructorDescription, getErrorCode, getName, getName, getOperationID, hashCode, isFinished, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeleteOperation(LocalAbstractObject deletedObject, int deleteLimit, boolean checkLocator)
deletedObject
- the object to match the data againstdeleteLimit
- the maximal number of deleted objects (zero means unlimited)checkLocator
- flag whether to check that the deleted object's locator is equal to deletedObject
's locatorpublic DeleteOperation(LocalAbstractObject deletedObject, int deleteLimit)
deletedObject
- the object to match the data againstdeleteLimit
- the maximal number of deleted objects (zero means unlimited)public DeleteOperation(LocalAbstractObject deletedObject)
deletedObject
- the object to match the data againstMethod Detail |
---|
public LocalAbstractObject getDeletedObject()
public int getDeleteLimit()
public boolean isCheckingLocator()
deletedObject
's locator.
public java.util.List<LocalAbstractObject> getObjects()
public void addDeletedObject(LocalAbstractObject deletedObject)
deletedObject
- the object that was deletedpublic java.lang.Object getArgument(int index) throws java.lang.IndexOutOfBoundsException
AbstractOperation
getArgument
in class AbstractOperation
index
- zero-based index of an argument passed to constructor
java.lang.IndexOutOfBoundsException
- if index parameter is out of rangepublic int getArgumentCount()
AbstractOperation
getArgumentCount
in class AbstractOperation
public boolean wasSuccessful()
AbstractOperation
wasSuccessful
in class AbstractOperation
public void endOperation()
AbstractOperation
endOperation
in class AbstractOperation
public void updateFrom(AbstractOperation operation)
AbstractOperation
updateFrom
in class AbstractOperation
operation
- the source operation from which to get the updatepublic void clearSurplusData()
AbstractOperation
clearSurplusData
in interface Clearable
clearSurplusData
in class AbstractOperation
protected boolean dataEqualsImpl(AbstractOperation obj)
AbstractOperation
dataEqualsImpl
in class AbstractOperation
obj
- the reference object with which to compare.
true
if this object has the same data as the obj
argument; false
otherwise.public int dataHashCode()
AbstractOperation
dataHashCode
in class AbstractOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |