java.lang.Object
de.grogra.reflect.MemberBase
de.grogra.persistence.PersistenceField
de.grogra.persistence.IndirectField
- All Implemented Interfaces:
Field,FieldChain,Member,Cloneable
-
Field Summary
Fields 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 TypeMethodDescriptionadd(PersistenceField field) add(FieldChain fields) booleancheck()voidclear()static PersistenceFielddup()booleangetBoolean(Object object) booleangetBoolean(Object object, int[] indices) Returns the value of a field.bytebyteReturns the value of a field.charcharReturns the value of a field.doubledoubleReturns the value of a field.floatfloatReturns the value of a field.intintintReturns the value of a field.longlongReturns the value of a field.final Numberfinal NumbergetName()Returns the name of this member.Returns the value of a field.final QuantitygetShallowSubchain(int index) shortshortReturns the value of a field.Returns the simple name of this member.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.intlength()booleanoverlaps(int[] tindices, FieldChain field, int[] findices) voidpop()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.voidset(PersistenceField field) final 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.final voidvoidsetByte(Object o, int[] indices, byte value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.final voidvoidsetChar(Object o, int[] indices, char value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.final voidvoidsetDouble(Object o, int[] indices, double value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.final voidvoidsetFloat(Object o, int[] indices, float value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.final 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.final voidfinal voidsetObject(PersistenceCapable object, int[] indices, Object value) voidsetObject(Object o, int[] indices, Object value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.final voidvoidsetShort(Object o, int[] indices, short value, Transaction t) Sets the value of this field on the instanceousing the givenindicesandt.final voidtoString()Methods inherited from class de.grogra.persistence.PersistenceField
get, get, getField, isWritable, setMethods inherited from class de.grogra.reflect.MemberBase
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiersMethods 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
-
Constructor Details
-
IndirectField
-
IndirectField
public IndirectField() -
IndirectField
-
-
Method Details
-
dup
-
getShallowSubchain
- Specified by:
getShallowSubchainin classPersistenceField
-
concat
-
getType
-
getQuantity
- Specified by:
getQuantityin classPersistenceField
-
getMinValue
- Specified by:
getMinValuein classPersistenceField
-
getMaxValue
- Specified by:
getMaxValuein classPersistenceField
-
getName
Description copied from interface:MemberReturns the name of this member. For types, this is the canonical name of the type, e.g,java.lang.Object,java.util.Map.Entry. Otherwise, it equalsMember.getSimpleName().- Specified by:
getNamein interfaceMember- Overrides:
getNamein classMemberBase- Returns:
- name of the member
-
getSimpleName
Description copied from interface:MemberReturns the simple name of this member. This is the single identifier with which the member is declared in source code, e.g.,Object,out,println.- Specified by:
getSimpleNamein interfaceMember- Overrides:
getSimpleNamein classMemberBase- Returns:
- simple name of the member
-
length
public int length()- Specified by:
lengthin interfaceFieldChain
-
getIndexCount
public int getIndexCount() -
getSubfield
- Specified by:
getSubfieldin classPersistenceField
-
getLastField
- Specified by:
getLastFieldin classPersistenceField
-
check
public boolean check() -
overlaps
- Specified by:
overlapsin interfaceFieldChain
-
clear
public void clear() -
set
-
add
-
add
-
add
-
add
-
pop
public void pop() -
cast
-
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:
-
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:
-
getBoolean
- Specified by:
getBooleanin interfaceField
-
getBoolean
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getBooleanin classPersistenceField- Parameters:
object- 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:
-
setBoolean
- Specified by:
setBooleanin interfaceField
-
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:
-
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:
-
getByte
-
getByte
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getBytein classPersistenceField- Parameters:
object- 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:
-
setByte
-
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:
-
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:
-
getShort
-
getShort
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getShortin classPersistenceField- Parameters:
object- 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:
-
setShort
-
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:
-
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:
-
getChar
-
getChar
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getCharin classPersistenceField- Parameters:
object- 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:
-
setChar
-
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:
-
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:
-
getInt
-
getInt
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getIntin classPersistenceField- Parameters:
object- 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:
-
setInt
-
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:
-
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:
-
getLong
-
getLong
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getLongin classPersistenceField- Parameters:
object- 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:
-
setLong
-
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:
-
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:
-
getFloat
-
getFloat
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getFloatin classPersistenceField- Parameters:
object- 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:
-
setFloat
-
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:
-
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:
-
getDouble
-
getDouble
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getDoublein classPersistenceField- Parameters:
object- 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:
-
setDouble
-
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:
-
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:
-
getObject
-
getObject
Description copied from class:PersistenceFieldReturns the value of a field.- Specified by:
getObjectin classPersistenceField- Parameters:
object- 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:
-
setObject
-
setObject
-
toString
- Overrides:
toStringin classMemberBase
-