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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
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 TypeMethodDescriptionconcat
(PersistenceField field) final boolean
final IndirectField
getArrayChain
(int dimensions) Returns a field chain starting with this, followed bydimensions
array components.boolean
getBoolean
(Object object) boolean
getBoolean
(Object o, int[] indices) Returns the value of a field.byte
byte
Returns the value of a field.char
char
Returns the value of a field.final Object
double
double
Returns the value of a field.final int
float
float
Returns the value of a field.int
int
Returns the value of a field.long
long
Returns the value of a field.final Number
final Number
Returns the value of a field.final Quantity
final int
getShallowSubchain
(int begin) short
short
Returns the value of a field.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.final boolean
boolean
int
length()
boolean
overlaps
(int[] tindices, FieldChain field, int[] findices) protected Object
readObject
(Object container, int index, PersistenceInput in) 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
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
.void
void
setByte
(Object o, int[] indices, byte value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.void
void
setChar
(Object o, int[] indices, char value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.void
void
setDouble
(Object o, int[] indices, double value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.void
void
setFloat
(Object o, int[] indices, float value, Transaction t) Sets the value of this field on the instanceo
using the givenindices
andt
.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
.void
final void
setMaxValue
(Number max) final void
setMinValue
(Number min) 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
protected void
setObjectImpl
(Object object, Object value) 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
.void
toString()
protected void
writeObject
(Object value, PersistenceOutput out) 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, getName, getSimpleName
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, 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:
getQuantity
in classPersistenceField
-
setQuantity
-
getMinValue
- Specified by:
getMinValue
in classPersistenceField
-
setMinValue
-
getMaxValue
- Specified by:
getMaxValue
in classPersistenceField
-
setMaxValue
-
getLastField
- Specified by:
getLastField
in classPersistenceField
-
length
public int length() -
getSubfield
- Specified by:
getSubfield
in classPersistenceField
-
getShallowSubchain
- Specified by:
getShallowSubchain
in 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 bydimensions
array 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: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:
-
getBoolean
Description copied from class:PersistenceField
Returns the value of a field.- Specified by:
getBoolean
in 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: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:
-
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:
-
getByte
Description copied from class:PersistenceField
Returns the value of a field.- Specified by:
getByte
in 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: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:
-
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:
-
getShort
Description copied from class:PersistenceField
Returns the value of a field.- Specified by:
getShort
in 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: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:
-
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:
-
getChar
Description copied from class:PersistenceField
Returns the value of a field.- Specified by:
getChar
in 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: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:
-
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:
-
getInt
Description copied from class:PersistenceField
Returns the value of a field.- Specified by:
getInt
in 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: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:
-
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:
-
getLong
Description copied from class:PersistenceField
Returns the value of a field.- Specified by:
getLong
in 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: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:
-
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:
-
getFloat
Description copied from class:PersistenceField
Returns the value of a field.- Specified by:
getFloat
in 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: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:
-
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:
-
getDouble
Description copied from class:PersistenceField
Returns the value of a field.- Specified by:
getDouble
in 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: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:
-
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:
-
getObject
Description copied from class:PersistenceField
Returns the value of a field.- Specified by:
getObject
in 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: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:
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
-
toString
- Overrides:
toString
in classMemberBase
-
getCloned
- Throws:
CloneNotSupportedException
-