public class InsertOperation extends DataManipulationOperation
abstract object
that is going to be inserted into an index structure.AbstractOperation.OperationConstructor, AbstractOperation.OperationName
Modifier and Type | Field and Description |
---|---|
protected LocalAbstractObject |
insertedObject
Inserted object
|
suppData, uuidOperationComparator
Constructor and Description |
---|
InsertOperation(LocalAbstractObject insertedObject)
Creates a new instance of InsertOperation.
|
Modifier and Type | Method and Description |
---|---|
void |
clearSurplusData()
Clear non-messif data stored in operation.
|
InsertOperation |
clone()
Create a duplicate 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 |
getInsertedObject()
Returns the object being inserted.
|
boolean |
wasSuccessful()
Returns true if this operation has finished successfuly.
|
appendArguments, appendErrorCode, 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, updateFrom
protected LocalAbstractObject insertedObject
public InsertOperation(LocalAbstractObject insertedObject)
insertedObject
- the object to insert by this operationpublic LocalAbstractObject getInsertedObject()
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 clearSurplusData()
clearSurplusData
in interface Clearable
clearSurplusData
in class AbstractOperation
public InsertOperation clone() throws java.lang.CloneNotSupportedException
AbstractOperation
AbstractOperation.suppData
) is not cloned (but the reference is kept).
Note also that the answer of the query operations is not cloned but
a new collection is created.
The additional parameters are cloned - the map, not the values of the parameters.clone
in class AbstractOperation
java.lang.CloneNotSupportedException
- if the operation instance cannot be cloned