java.lang.Object
de.grogra.reflect.MemberBase
de.grogra.persistence.PersistenceField
de.grogra.persistence.ManageableType.Field
- All Implemented Interfaces:
Field,FieldChain,Member
- Direct Known Subclasses:
ManageableType.ArrayComponent,Node.NType.Field,SCOType.Field
- Enclosing class:
ManageableType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class de.grogra.reflect.MemberBase
annots, declaringType, descriptor, modifiers, nameFields inherited from interface de.grogra.reflect.Field
FIELD_0, INTERFACE_MODIFIERS, MODIFIERSFields inherited from interface de.grogra.reflect.Member
ABSTRACT, ACCESS_MODIFIERS, ARRAY, BRIDGE, CONSTANT, FINAL, GLOBAL, INTERFACE, JAVA_MODIFIERS, LOCAL_CLASS, MIN_UNUSED_MODIFIER, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconcat(PersistenceField field) final booleanfinal IndirectFieldgetArrayChain(int dimensions) Returns a field chain starting with this, followed bydimensionsarray components.booleangetBoolean(Object object) booleangetBoolean(Object o, int[] indices) Returns the value of a field.bytebyteReturns the value of a field.charcharReturns the value of a field.final ObjectdoubledoubleReturns the value of a field.final intfloatfloatReturns the value of a field.intintReturns the value of a field.longlongReturns the value of a field.final Numberfinal NumberReturns the value of a field.final Quantityfinal intgetShallowSubchain(int begin) shortshortReturns the value of a field.getSubfield(int index) final TypegetType()voidinsertBoolean(Object o, int[] indices, boolean value, Transaction t) Inserts the givenvalueinto an array.voidinsertByte(Object o, int[] indices, byte value, Transaction t) Inserts the givenvalueinto an array.voidinsertChar(Object o, int[] indices, char value, Transaction t) Inserts the givenvalueinto an array.voidinsertDouble(Object o, int[] indices, double value, Transaction t) Inserts the givenvalueinto an array.voidinsertFloat(Object o, int[] indices, float value, Transaction t) Inserts the givenvalueinto an array.voidinsertInt(Object o, int[] indices, int value, Transaction t) Inserts the givenvalueinto an array.voidinsertLong(Object o, int[] indices, long value, Transaction t) Inserts the givenvalueinto an array.voidinsertObject(Object o, int[] indices, Object value, Transaction t) Inserts the givenvalueinto an array.voidinsertShort(Object o, int[] indices, short value, Transaction t) Inserts the givenvalueinto an array.final booleanbooleanintlength()booleanoverlaps(int[] tindices, FieldChain field, int[] findices) protected ObjectreadObject(Object container, int index, PersistenceInput in) voidremoveBoolean(Object o, int[] indices, Transaction t) Removes an element from an array.voidremoveByte(Object o, int[] indices, Transaction t) Removes an element from an array.voidremoveChar(Object o, int[] indices, Transaction t) Removes an element from an array.voidremoveDouble(Object o, int[] indices, Transaction t) Removes an element from an array.voidremoveFloat(Object o, int[] indices, Transaction t) Removes an element from an array.voidremoveInt(Object o, int[] indices, Transaction t) Removes an element from an array.voidremoveLong(Object o, int[] indices, Transaction t) Removes an element from an array.voidremoveObject(Object o, int[] indices, Transaction t) Removes an element from an array.voidremoveShort(Object o, int[] indices, Transaction t) Removes an element from an array.voidsetBoolean(Object object, boolean value) voidsetBoolean(Object o, int[] indices, boolean value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.voidvoidsetByte(Object o, int[] indices, byte value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.voidvoidsetChar(Object o, int[] indices, char value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.voidvoidsetDouble(Object o, int[] indices, double value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.voidvoidsetFloat(Object o, int[] indices, float value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.voidvoidsetInt(Object o, int[] indices, int value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.voidsetLong(Object o, int[] indices, long value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.voidfinal voidsetMaxValue(Number max) final voidsetMinValue(Number min) voidsetObject(Object o, int[] indices, Object value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.final voidprotected voidsetObjectImpl(Object object, Object value) final voidvoidsetShort(Object o, int[] indices, short value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.voidtoString()protected voidwriteObject(Object value, PersistenceOutput out) Methods inherited from class de.grogra.persistence.PersistenceField
get, get, getField, isWritable, setMethods inherited from class de.grogra.reflect.MemberBase
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiers, getName, getSimpleNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.grogra.reflect.Member
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiers, getName, getSimpleName
-
Field Details
-
SCO
public static final int SCO- See Also:
-
FCO
public static final int FCO- See Also:
-
UNMANAGED
public static final int UNMANAGED- See Also:
-
OBJECT_CLASS_MASK
public static final int OBJECT_CLASS_MASK- See Also:
-
GETS_COPY
public static final int GETS_COPY- See Also:
-
DEFINES_SHARED
public static final int DEFINES_SHARED- See Also:
-
HIDDEN
public static final int HIDDEN- See Also:
-
-
Constructor Details
-
Field
-
-
Method Details
-
getType
-
getQuantity
- Specified by:
getQuantityin classPersistenceField
-
setQuantity
-
getMinValue
- Specified by:
getMinValuein classPersistenceField
-
setMinValue
-
getMaxValue
- Specified by:
getMaxValuein classPersistenceField
-
setMaxValue
-
getLastField
- Specified by:
getLastFieldin classPersistenceField
-
length
public int length() -
getSubfield
- Specified by:
getSubfieldin classPersistenceField
-
getShallowSubchain
- Specified by:
getShallowSubchainin classPersistenceField
-
concat
-
cast
-
getFieldId
public final int getFieldId() -
isGetReturningCopy
public boolean isGetReturningCopy() -
containsSCO
public final boolean containsSCO() -
getArrayComponent
-
getArrayChain
Returns a field chain starting with this, followed bydimensionsarray components.- Parameters:
dimensions- the number of array components to append- Returns:
- a field chain for an access of array components of this field
-
isArrayComponent
public final boolean isArrayComponent() -
getSerializationMethod
public final int getSerializationMethod() -
overlaps
-
setObject
-
setBoolean
Description copied from class:PersistenceFieldSets the value of this field on the instanceousing the givenindicesandt.- Specified by:
setBooleanin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the new valuet- transaction context- See Also:
-
getBoolean
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getBooleanin classPersistenceField- Parameters:
o- the instance for which the field value is returnedindices- the indices for array fields- Returns:
- the field's value for the instance
pc - See Also:
-
getBoolean
-
setBoolean
-
insertBoolean
Description copied from class:PersistenceFieldInserts the givenvalueinto an array. This field has to be an array component indexed byindices. The newvaluewill be inserted at the place of the indexed component.- Specified by:
insertBooleanin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the value to be insertedt- transaction context- See Also:
-
removeBoolean
Description copied from class:PersistenceFieldRemoves an element from an array. This field has to be an array component indexed byindices. The value at the indexed component will be removed.- Specified by:
removeBooleanin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldst- transaction context- See Also:
-
setByte
Description copied from class:PersistenceFieldSets the value of this field on the instanceousing the givenindicesandt.- Specified by:
setBytein classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the new valuet- transaction context- See Also:
-
getByte
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getBytein classPersistenceField- Parameters:
o- the instance for which the field value is returnedindices- the indices for array fields- Returns:
- the field's value for the instance
pc - See Also:
-
getByte
-
setByte
-
insertByte
Description copied from class:PersistenceFieldInserts the givenvalueinto an array. This field has to be an array component indexed byindices. The newvaluewill be inserted at the place of the indexed component.- Specified by:
insertBytein classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the value to be insertedt- transaction context- See Also:
-
removeByte
Description copied from class:PersistenceFieldRemoves an element from an array. This field has to be an array component indexed byindices. The value at the indexed component will be removed.- Specified by:
removeBytein classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldst- transaction context- See Also:
-
setShort
Description copied from class:PersistenceFieldSets the value of this field on the instanceousing the givenindicesandt.- Specified by:
setShortin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the new valuet- transaction context- See Also:
-
getShort
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getShortin classPersistenceField- Parameters:
o- the instance for which the field value is returnedindices- the indices for array fields- Returns:
- the field's value for the instance
pc - See Also:
-
getShort
-
setShort
-
insertShort
Description copied from class:PersistenceFieldInserts the givenvalueinto an array. This field has to be an array component indexed byindices. The newvaluewill be inserted at the place of the indexed component.- Specified by:
insertShortin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the value to be insertedt- transaction context- See Also:
-
removeShort
Description copied from class:PersistenceFieldRemoves an element from an array. This field has to be an array component indexed byindices. The value at the indexed component will be removed.- Specified by:
removeShortin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldst- transaction context- See Also:
-
setChar
Description copied from class:PersistenceFieldSets the value of this field on the instanceousing the givenindicesandt.- Specified by:
setCharin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the new valuet- transaction context- See Also:
-
getChar
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getCharin classPersistenceField- Parameters:
o- the instance for which the field value is returnedindices- the indices for array fields- Returns:
- the field's value for the instance
pc - See Also:
-
getChar
-
setChar
-
insertChar
Description copied from class:PersistenceFieldInserts the givenvalueinto an array. This field has to be an array component indexed byindices. The newvaluewill be inserted at the place of the indexed component.- Specified by:
insertCharin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the value to be insertedt- transaction context- See Also:
-
removeChar
Description copied from class:PersistenceFieldRemoves an element from an array. This field has to be an array component indexed byindices. The value at the indexed component will be removed.- Specified by:
removeCharin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldst- transaction context- See Also:
-
setInt
Description copied from class:PersistenceFieldSets the value of this field on the instanceousing the givenindicesandt.- Specified by:
setIntin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the new valuet- transaction context- See Also:
-
getInt
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getIntin classPersistenceField- Parameters:
o- the instance for which the field value is returnedindices- the indices for array fields- Returns:
- the field's value for the instance
pc - See Also:
-
getInt
-
setInt
-
insertInt
Description copied from class:PersistenceFieldInserts the givenvalueinto an array. This field has to be an array component indexed byindices. The newvaluewill be inserted at the place of the indexed component.- Specified by:
insertIntin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the value to be insertedt- transaction context- See Also:
-
removeInt
Description copied from class:PersistenceFieldRemoves an element from an array. This field has to be an array component indexed byindices. The value at the indexed component will be removed.- Specified by:
removeIntin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldst- transaction context- See Also:
-
setLong
Description copied from class:PersistenceFieldSets the value of this field on the instanceousing the givenindicesandt.- Specified by:
setLongin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the new valuet- transaction context- See Also:
-
getLong
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getLongin classPersistenceField- Parameters:
o- the instance for which the field value is returnedindices- the indices for array fields- Returns:
- the field's value for the instance
pc - See Also:
-
getLong
-
setLong
-
insertLong
Description copied from class:PersistenceFieldInserts the givenvalueinto an array. This field has to be an array component indexed byindices. The newvaluewill be inserted at the place of the indexed component.- Specified by:
insertLongin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the value to be insertedt- transaction context- See Also:
-
removeLong
Description copied from class:PersistenceFieldRemoves an element from an array. This field has to be an array component indexed byindices. The value at the indexed component will be removed.- Specified by:
removeLongin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldst- transaction context- See Also:
-
setFloat
Description copied from class:PersistenceFieldSets the value of this field on the instanceousing the givenindicesandt.- Specified by:
setFloatin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the new valuet- transaction context- See Also:
-
getFloat
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getFloatin classPersistenceField- Parameters:
o- the instance for which the field value is returnedindices- the indices for array fields- Returns:
- the field's value for the instance
pc - See Also:
-
getFloat
-
setFloat
-
insertFloat
Description copied from class:PersistenceFieldInserts the givenvalueinto an array. This field has to be an array component indexed byindices. The newvaluewill be inserted at the place of the indexed component.- Specified by:
insertFloatin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the value to be insertedt- transaction context- See Also:
-
removeFloat
Description copied from class:PersistenceFieldRemoves an element from an array. This field has to be an array component indexed byindices. The value at the indexed component will be removed.- Specified by:
removeFloatin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldst- transaction context- See Also:
-
setDouble
Description copied from class:PersistenceFieldSets the value of this field on the instanceousing the givenindicesandt.- Specified by:
setDoublein classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the new valuet- transaction context- See Also:
-
getDouble
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getDoublein classPersistenceField- Parameters:
o- the instance for which the field value is returnedindices- the indices for array fields- Returns:
- the field's value for the instance
pc - See Also:
-
getDouble
-
setDouble
-
insertDouble
Description copied from class:PersistenceFieldInserts the givenvalueinto an array. This field has to be an array component indexed byindices. The newvaluewill be inserted at the place of the indexed component.- Specified by:
insertDoublein classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the value to be insertedt- transaction context- See Also:
-
removeDouble
Description copied from class:PersistenceFieldRemoves an element from an array. This field has to be an array component indexed byindices. The value at the indexed component will be removed.- Specified by:
removeDoublein classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldst- transaction context- See Also:
-
setObject
Description copied from class:PersistenceFieldSets the value of this field on the instanceousing the givenindicesandt.- Specified by:
setObjectin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the new valuet- transaction context- See Also:
-
getObject
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getObjectin classPersistenceField- Parameters:
o- the instance for which the field value is returnedindices- the indices for array fields- Returns:
- the field's value for the instance
pc - See Also:
-
getObject
-
setObjectImpl
-
insertObject
Description copied from class:PersistenceFieldInserts the givenvalueinto an array. This field has to be an array component indexed byindices. The newvaluewill be inserted at the place of the indexed component.- Specified by:
insertObjectin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldsvalue- the value to be insertedt- transaction context- See Also:
-
removeObject
Description copied from class:PersistenceFieldRemoves an element from an array. This field has to be an array component indexed byindices. The value at the indexed component will be removed.- Specified by:
removeObjectin classPersistenceField- Parameters:
o- the instance for which the field is modifiedindices- the indices for array fieldst- transaction context- See Also:
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
-
toString
- Overrides:
toStringin classMemberBase
-
getCloned
- Throws:
CloneNotSupportedException
-