|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.operations.AbstractOperation
messif.operations.QueryOperation<AbstractObject>
messif.operations.SingletonQueryOperation
messif.operations.query.GetObjectByLocatorOperation
public class GetObjectByLocatorOperation
This query retrieves from the structure a set of objects given their locators.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class messif.operations.AbstractOperation |
---|
AbstractOperation.DataEqualOperation, AbstractOperation.OperationConstructor, AbstractOperation.OperationName |
Field Summary | |
---|---|
protected java.lang.String |
locator
The locator of the desired object |
Fields inherited from class messif.operations.QueryOperation |
---|
answerType |
Fields inherited from class messif.operations.AbstractOperation |
---|
errValue, operID, suppData |
Constructor Summary | |
---|---|
GetObjectByLocatorOperation(java.lang.String locator)
Creates a new instance of GetObjectByLocatorOperation for a specified locator. |
|
GetObjectByLocatorOperation(java.lang.String locator,
AnswerType answerType)
Creates a new instance of GetObjectByLocatorOperation for a specified locator. |
Method Summary | |
---|---|
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. |
int |
evaluate(AbstractObjectIterator<? extends LocalAbstractObject> objects)
Evaluate this query on a given set of objects. |
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. |
java.lang.String |
getLocator()
Returns the locator that this query searches for. |
Methods inherited from class messif.operations.SingletonQueryOperation |
---|
addToAnswer, clearSurplusData, clone, getAnswer, getAnswer, getAnswerClass, getAnswerCount, getAnswerObject, getAnswerObjects, resetAnswer, updateFrom |
Methods inherited from class messif.operations.QueryOperation |
---|
appendErrorCode, endOperation, getAnswerType, wasSuccessful |
Methods inherited from class messif.operations.AbstractOperation |
---|
appendArguments, 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 |
Field Detail |
---|
protected final java.lang.String locator
Constructor Detail |
---|
public GetObjectByLocatorOperation(java.lang.String locator)
AnswerType.NODATA_OBJECTS
will be returned in the result.
locator
- the locator to be searched by this operationpublic GetObjectByLocatorOperation(java.lang.String locator, AnswerType answerType)
locator
- the locator to be searched by this operationanswerType
- the type of objects this operation stores in its answerMethod Detail |
---|
public java.lang.String getLocator()
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 int evaluate(AbstractObjectIterator<? extends LocalAbstractObject> objects)
evaluate
in class QueryOperation<AbstractObject>
objects
- set of objects to evaluate the operation on
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 |