public class GetObjectByLocatorOperation extends SingletonQueryOperation
QueryOperation.DataEqualOperation
AbstractOperation.OperationConstructor, AbstractOperation.OperationName
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
locator
The locator of the desired object
|
suppData, uuidOperationComparator
Constructor and Description |
---|
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.
|
GetObjectByLocatorOperation(java.lang.String locator,
AnswerType answerType,
java.util.Map<java.lang.String,java.io.Serializable> params)
Creates a new instance of GetObjectByLocatorOperation for a specified locator.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
dataEqualsImpl(QueryOperation 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.
|
addToAnswer, clone, getAnswer, getAnswer, getAnswerClass, getAnswerCount, getAnswerObject, getAnswerObjects, getSubAnswer, getSubAnswer, getSubAnswerCount, resetAnswer, updateFrom
appendErrorCode, clone, dataEquals, endOperation, getAllSubAnswers, getAnswerType, getQueryAnswer, iterator, setAnswerType, wasSuccessful
appendArguments, clearSurplusData, 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
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 answerpublic GetObjectByLocatorOperation(java.lang.String locator, AnswerType answerType, java.util.Map<java.lang.String,java.io.Serializable> params)
locator
- the locator to be searched by this operationanswerType
- the type of objects this operation stores in its answerpublic 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 constructorjava.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 onprotected boolean dataEqualsImpl(QueryOperation obj)
dataEqualsImpl
in class QueryOperation<AbstractObject>
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 QueryOperation<AbstractObject>