|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.operations.AbstractOperation
messif.operations.data.InsertOperation
public class InsertOperation
Operation for inserting an object.
The operation keeps one abstract object
that is going to be inserted into an index structure.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class messif.operations.AbstractOperation |
---|
AbstractOperation.DataEqualOperation, AbstractOperation.OperationConstructor, AbstractOperation.OperationName |
Field Summary | |
---|---|
protected LocalAbstractObject |
insertedObject
Inserted object |
Fields inherited from class messif.operations.AbstractOperation |
---|
errValue, operID, suppData |
Constructor Summary | |
---|---|
InsertOperation(LocalAbstractObject insertedObject)
Creates a new instance of InsertOperation. |
Method Summary | |
---|---|
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 |
getInsertedObject()
Returns the object being inserted. |
java.lang.String |
toString()
Return a string representation of this 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, updateFrom |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final LocalAbstractObject insertedObject
Constructor Detail |
---|
public InsertOperation(LocalAbstractObject insertedObject)
insertedObject
- the object to insert by this operationMethod Detail |
---|
public LocalAbstractObject getInsertedObject()
public java.lang.Object getArgument(int index) throws java.lang.IndexOutOfBoundsException
getArgument
in class AbstractOperation
index
- index of an argument passed to constructor
java.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 java.lang.String toString()
toString
in class AbstractOperation
public void clearSurplusData()
clearSurplusData
in interface Clearable
clearSurplusData
in class AbstractOperation
protected boolean dataEqualsImpl(AbstractOperation obj)
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()
dataHashCode
in class AbstractOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |