|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AnswerType>
messif.operations.AnswerType
public enum AnswerType
Enumeration of types a query operation can return.
QueryOperation
Enum Constant Summary | |
---|---|
CLEARED_OBJECTS
Answer contains clones of the original objects with cleared surplus data |
|
CLONNED_OBJECTS
Answer contains clones of the original objects |
|
NODATA_OBJECTS
Answer contains only objects |
|
ORIGINAL_OBJECTS
Answer contains the original objects as is |
|
REMOTE_OBJECTS
Deprecated. Use NODATA_OBJECTS instead. |
Method Summary | |
---|---|
AbstractObject |
update(AbstractObject object)
Updates a AbstractObject so that it conforms to this answer type. |
static AnswerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AnswerType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final AnswerType ORIGINAL_OBJECTS
public static final AnswerType CLONNED_OBJECTS
public static final AnswerType CLEARED_OBJECTS
cleared surplus data
public static final AnswerType NODATA_OBJECTS
objects
@Deprecated public static final AnswerType REMOTE_OBJECTS
NODATA_OBJECTS
instead.objects
Method Detail |
---|
public static AnswerType[] values()
for (AnswerType c : AnswerType.values()) System.out.println(c);
public static AnswerType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic AbstractObject update(AbstractObject object) throws java.lang.CloneNotSupportedException
AbstractObject
so that it conforms to this answer type.
That means, the object is clonned, cleared or transformed into a NoDataObject
.
object
- the object to update
java.lang.CloneNotSupportedException
- if a clone was requested but the specified object cannot be clonned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |