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, name
Fields inherited from interface de.grogra.reflect.Field
FIELD_0, INTERFACE_MODIFIERS, MODIFIERS
Fields inherited from interface de.grogra.reflect.Member
ABSTRACT, ACCESS_MODIFIERS, ARRAY, BRIDGE, CONSTANT, FINAL, INTERFACE, JAVA_MODIFIERS, LOCAL_CLASS, MIN_UNUSED_MODIFIER, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(PersistenceField field) add
(FieldChain fields) boolean
check()
void
clear()
static PersistenceField
dup()
boolean
getBoolean
(Object object) boolean
getBoolean
(Object object, int[] indices) Returns the value of a field.byte
byte
Returns the value of a field.char
char
Returns the value of a field.double
double
Returns the value of a field.float
float
Returns the value of a field.int
int
int
Returns the value of a field.long
long
Returns the value of a field.final Number
final Number
getName()
Returns the name of this member.Returns the value of a field.final Quantity
getShallowSubchain
(int index) short
short
Returns the value of a field.Returns the simple name of this member.getSubfield
(int index) final Type
getType()
void
insertBoolean
(Object o, int[] indices, boolean value, Transaction t) Inserts the givenvalue
into an array.void
insertByte
(Object o, int[] indices, byte value, Transaction t) Inserts the givenvalue
into an array.void
insertChar
(Object o, int[] indices, char value, Transaction t) Inserts the givenvalue
into an array.void
insertDouble
(Object o, int[] indices, double value, Transaction t) Inserts the givenvalue
into an array.void
insertFloat
(Object o, int[] indices, float value, Transaction t) Inserts the givenvalue
into an array.void
insertInt
(Object o, int[] indices, int value, Transaction t) Inserts the givenvalue
into an array.void
insertLong
(Object o, int[] indices, long value, Transaction t) Inserts the givenvalue
into an array.void
insertObject
(Object o, int[] indices, Object value, Transaction t) Inserts the givenvalue
into an array.void
insertShort
(Object o, int[] indices, short value, Transaction t) Inserts the givenvalue
into an array.int
length()
boolean
overlaps
(int[] tindices, FieldChain field, int[] findices) void
pop()
void
removeBoolean
(Object o, int[] indices, Transaction t) Removes an element from an array.void
removeByte
(Object o, int[] indices, Transaction t) Removes an element from an array.void
removeChar
(Object o, int[] indices, Transaction t) Removes an element from an array.void
removeDouble
(Object o, int[] indices, Transaction t) Removes an element from an array.void
removeFloat
(Object o, int[] indices, Transaction t) Removes an element from an array.void
removeInt
(Object o, int[] indices, Transaction t) Removes an element from an array.void
removeLong
(Object o, int[] indices, Transaction t) Removes an element from an array.void
removeObject
(Object o, int[] indices, Transaction t) Removes an element from an array.void
removeShort
(Object o, int[] indices, Transaction t) Removes an element from an array.void
set
(PersistenceField field) final void
setBoolean
(Object object, boolean value) void
setBoolean
(Object o, int[] indices, boolean value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.final void
void
setByte
(Object o, int[] indices, byte value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.final void
void
setChar
(Object o, int[] indices, char value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.final void
void
setDouble
(Object o, int[] indices, double value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.final void
void
setFloat
(Object o, int[] indices, float value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.final void
void
setInt
(Object o, int[] indices, int value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.void
setLong
(Object o, int[] indices, long value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.final void
final void
setObject
(PersistenceCapable object, int[] indices, Object value) void
setObject
(Object o, int[] indices, Object value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.final void
void
setShort
(Object o, int[] indices, short value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.final void
toString()
Methods inherited from class de.grogra.persistence.PersistenceField
get, get, getField, isWritable, set
Methods inherited from class de.grogra.reflect.MemberBase
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiers
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
getShallowSubchain
in classPersistenceField
-
concat
-
getType
-
getQuantity
- Specified by:
getQuantity
in classPersistenceField
-
getMinValue
- Specified by:
getMinValue
in classPersistenceField
-
getMaxValue
- Specified by:
getMaxValue
in classPersistenceField
-
getName
Description copied from interface:Member
Returns 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:
getName
in interfaceMember
- Overrides:
getName
in classMemberBase
- Returns:
- name of the member
-
getSimpleName
Description copied from interface:Member
Returns 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:
getSimpleName
in interfaceMember
- Overrides:
getSimpleName
in classMemberBase
- Returns:
- simple name of the member
-
length
public int length()- Specified by:
length
in interfaceFieldChain
-
getIndexCount
public int getIndexCount() -
getSubfield
- Specified by:
getSubfield
in classPersistenceField
-
getLastField
- Specified by:
getLastField
in classPersistenceField
-
check
public boolean check() -
overlaps
- Specified by:
overlaps
in interfaceFieldChain
-
clear
public void clear() -
set
-
add
-
add
-
add
-
add
-
pop
public void pop() -
cast
-
setBoolean
Description copied from class:PersistenceField
Sets the value of this field on the instanceo
using the givenindices
andt
.- Specified by:
setBoolean
in 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:PersistenceField
Inserts the givenvalue
into an array. This field has to be an array component indexed byindices
. The newvalue
will be inserted at the place of the indexed component.- Specified by:
insertBoolean
in 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:PersistenceField
Removes 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:
removeBoolean
in classPersistenceField
- Parameters:
o
- the instance for which the field is modifiedindices
- the indices for array fieldst
- transaction context- See Also:
-
getBoolean
- Specified by:
getBoolean
in interfaceField
-
getBoolean
Description copied from class:PersistenceField
Returns the value of a field.- Specified by:
getBoolean
in 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:
setBoolean
in interfaceField
-
setByte
Description copied from class:PersistenceField
Sets the value of this field on the instanceo
using the givenindices
andt
.- Specified by:
setByte
in 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:PersistenceField
Inserts the givenvalue
into an array. This field has to be an array component indexed byindices
. The newvalue
will be inserted at the place of the indexed component.- Specified by:
insertByte
in 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:PersistenceField
Removes 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:
removeByte
in 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:PersistenceField
Returns the value of a field.- Specified by:
getByte
in 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:PersistenceField
Sets the value of this field on the instanceo
using the givenindices
andt
.- Specified by:
setShort
in 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:PersistenceField
Inserts the givenvalue
into an array. This field has to be an array component indexed byindices
. The newvalue
will be inserted at the place of the indexed component.- Specified by:
insertShort
in 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:PersistenceField
Removes 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:
removeShort
in 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:PersistenceField
Returns the value of a field.- Specified by:
getShort
in 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:PersistenceField
Sets the value of this field on the instanceo
using the givenindices
andt
.- Specified by:
setChar
in 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:PersistenceField
Inserts the givenvalue
into an array. This field has to be an array component indexed byindices
. The newvalue
will be inserted at the place of the indexed component.- Specified by:
insertChar
in 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:PersistenceField
Removes 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:
removeChar
in 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:PersistenceField
Returns the value of a field.- Specified by:
getChar
in 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:PersistenceField
Sets the value of this field on the instanceo
using the givenindices
andt
.- Specified by:
setInt
in 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:PersistenceField
Inserts the givenvalue
into an array. This field has to be an array component indexed byindices
. The newvalue
will be inserted at the place of the indexed component.- Specified by:
insertInt
in 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:PersistenceField
Removes 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:
removeInt
in 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:PersistenceField
Returns the value of a field.- Specified by:
getInt
in 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:PersistenceField
Sets the value of this field on the instanceo
using the givenindices
andt
.- Specified by:
setLong
in 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:PersistenceField
Inserts the givenvalue
into an array. This field has to be an array component indexed byindices
. The newvalue
will be inserted at the place of the indexed component.- Specified by:
insertLong
in 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:PersistenceField
Removes 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:
removeLong
in 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:PersistenceField
Returns the value of a field.- Specified by:
getLong
in 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:PersistenceField
Sets the value of this field on the instanceo
using the givenindices
andt
.- Specified by:
setFloat
in 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:PersistenceField
Inserts the givenvalue
into an array. This field has to be an array component indexed byindices
. The newvalue
will be inserted at the place of the indexed component.- Specified by:
insertFloat
in 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:PersistenceField
Removes 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:
removeFloat
in 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:PersistenceField
Returns the value of a field.- Specified by:
getFloat
in 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:PersistenceField
Sets the value of this field on the instanceo
using the givenindices
andt
.- Specified by:
setDouble
in 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:PersistenceField
Inserts the givenvalue
into an array. This field has to be an array component indexed byindices
. The newvalue
will be inserted at the place of the indexed component.- Specified by:
insertDouble
in 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:PersistenceField
Removes 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:
removeDouble
in 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:PersistenceField
Returns the value of a field.- Specified by:
getDouble
in 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:PersistenceField
Sets the value of this field on the instanceo
using the givenindices
andt
.- Specified by:
setObject
in 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:PersistenceField
Inserts the givenvalue
into an array. This field has to be an array component indexed byindices
. The newvalue
will be inserted at the place of the indexed component.- Specified by:
insertObject
in 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:PersistenceField
Removes 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:
removeObject
in 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:PersistenceField
Returns the value of a field.- Specified by:
getObject
in 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:
toString
in classMemberBase
-