|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.reflect.MemberBase
de.grogra.persistence.PersistenceField
de.grogra.persistence.ManageableType.Field
public abstract class ManageableType.Field
| Field Summary | |
|---|---|
static int |
DEFINES_SHARED
|
static int |
FCO
|
static int |
GETS_COPY
|
static int |
HIDDEN
|
static int |
OBJECT_CLASS_MASK
|
static int |
SCO
|
static int |
UNMANAGED
|
| 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 | |
|---|---|
protected |
ManageableType.Field(java.lang.String name,
int modifiers,
Type type,
Type componentType)
|
| Method Summary | |
|---|---|
IndirectField |
cast(Type type)
|
IndirectField |
concat(PersistenceField field)
|
boolean |
containsSCO()
|
IndirectField |
getArrayChain(int dimensions)
Returns a field chain starting with this, followed by dimensions array components. |
ManageableType.ArrayComponent |
getArrayComponent()
|
boolean |
getBoolean(java.lang.Object object)
|
boolean |
getBoolean(java.lang.Object o,
int[] indices)
Returns the value of a field. |
byte |
getByte(java.lang.Object object)
|
byte |
getByte(java.lang.Object o,
int[] indices)
Returns the value of a field. |
char |
getChar(java.lang.Object object)
|
char |
getChar(java.lang.Object o,
int[] indices)
Returns the value of a field. |
java.lang.Object |
getCloned(java.lang.Object object)
|
double |
getDouble(java.lang.Object object)
|
double |
getDouble(java.lang.Object o,
int[] indices)
Returns the value of a field. |
int |
getFieldId()
|
float |
getFloat(java.lang.Object object)
|
float |
getFloat(java.lang.Object o,
int[] indices)
Returns the value of a field. |
int |
getInt(java.lang.Object object)
|
int |
getInt(java.lang.Object o,
int[] indices)
Returns the value of a field. |
ManageableType.Field |
getLastField()
|
long |
getLong(java.lang.Object object)
|
long |
getLong(java.lang.Object o,
int[] indices)
Returns the value of a field. |
java.lang.Number |
getMaxValue()
|
java.lang.Number |
getMinValue()
|
java.lang.Object |
getObject(java.lang.Object object)
|
java.lang.Object |
getObject(java.lang.Object o,
int[] indices)
Returns the value of a field. |
Quantity |
getQuantity()
|
int |
getSerializationMethod()
|
PersistenceField |
getShallowSubchain(int begin)
|
short |
getShort(java.lang.Object object)
|
short |
getShort(java.lang.Object o,
int[] indices)
Returns the value of a field. |
ManageableType.Field |
getSubfield(int index)
|
Type |
getType()
|
void |
insertBoolean(java.lang.Object o,
int[] indices,
boolean value,
Transaction t)
Inserts the given value into an array. |
void |
insertByte(java.lang.Object o,
int[] indices,
byte value,
Transaction t)
Inserts the given value into an array. |
void |
insertChar(java.lang.Object o,
int[] indices,
char value,
Transaction t)
Inserts the given value into an array. |
void |
insertDouble(java.lang.Object o,
int[] indices,
double value,
Transaction t)
Inserts the given value into an array. |
void |
insertFloat(java.lang.Object o,
int[] indices,
float value,
Transaction t)
Inserts the given value into an array. |
void |
insertInt(java.lang.Object o,
int[] indices,
int value,
Transaction t)
Inserts the given value into an array. |
void |
insertLong(java.lang.Object o,
int[] indices,
long value,
Transaction t)
Inserts the given value into an array. |
void |
insertObject(java.lang.Object o,
int[] indices,
java.lang.Object value,
Transaction t)
Inserts the given value into an array. |
void |
insertShort(java.lang.Object o,
int[] indices,
short value,
Transaction t)
Inserts the given value into an array. |
boolean |
isArrayComponent()
|
boolean |
isGetReturningCopy()
|
int |
length()
|
boolean |
overlaps(int[] tindices,
FieldChain field,
int[] findices)
|
protected java.lang.Object |
readObject(java.lang.Object container,
int index,
PersistenceInput in)
|
void |
removeBoolean(java.lang.Object o,
int[] indices,
Transaction t)
Removes an element from an array. |
void |
removeByte(java.lang.Object o,
int[] indices,
Transaction t)
Removes an element from an array. |
void |
removeChar(java.lang.Object o,
int[] indices,
Transaction t)
Removes an element from an array. |
void |
removeDouble(java.lang.Object o,
int[] indices,
Transaction t)
Removes an element from an array. |
void |
removeFloat(java.lang.Object o,
int[] indices,
Transaction t)
Removes an element from an array. |
void |
removeInt(java.lang.Object o,
int[] indices,
Transaction t)
Removes an element from an array. |
void |
removeLong(java.lang.Object o,
int[] indices,
Transaction t)
Removes an element from an array. |
void |
removeObject(java.lang.Object o,
int[] indices,
Transaction t)
Removes an element from an array. |
void |
removeShort(java.lang.Object o,
int[] indices,
Transaction t)
Removes an element from an array. |
void |
setBoolean(java.lang.Object object,
boolean value)
|
void |
setBoolean(java.lang.Object o,
int[] indices,
boolean value,
Transaction t)
Sets the value of this field on the instance o
using the given indices and t. |
void |
setByte(java.lang.Object object,
byte value)
|
void |
setByte(java.lang.Object o,
int[] indices,
byte value,
Transaction t)
Sets the value of this field on the instance o
using the given indices and t. |
void |
setChar(java.lang.Object object,
char value)
|
void |
setChar(java.lang.Object o,
int[] indices,
char value,
Transaction t)
Sets the value of this field on the instance o
using the given indices and t. |
void |
setDouble(java.lang.Object object,
double value)
|
void |
setDouble(java.lang.Object o,
int[] indices,
double value,
Transaction t)
Sets the value of this field on the instance o
using the given indices and t. |
void |
setFloat(java.lang.Object object,
float value)
|
void |
setFloat(java.lang.Object o,
int[] indices,
float value,
Transaction t)
Sets the value of this field on the instance o
using the given indices and t. |
void |
setInt(java.lang.Object object,
int value)
|
void |
setInt(java.lang.Object o,
int[] indices,
int value,
Transaction t)
Sets the value of this field on the instance o
using the given indices and t. |
void |
setLong(java.lang.Object o,
int[] indices,
long value,
Transaction t)
Sets the value of this field on the instance o
using the given indices and t. |
void |
setLong(java.lang.Object object,
long value)
|
void |
setMaxValue(java.lang.Number max)
|
void |
setMinValue(java.lang.Number min)
|
void |
setObject(java.lang.Object o,
int[] indices,
java.lang.Object value,
Transaction t)
Sets the value of this field on the instance o
using the given indices and t. |
void |
setObject(java.lang.Object object,
java.lang.Object value)
|
protected void |
setObjectImpl(java.lang.Object object,
java.lang.Object value)
|
void |
setQuantity(Quantity q)
|
void |
setShort(java.lang.Object o,
int[] indices,
short value,
Transaction t)
Sets the value of this field on the instance o
using the given indices and t. |
void |
setShort(java.lang.Object object,
short value)
|
java.lang.String |
toString()
|
protected void |
writeObject(java.lang.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 Detail |
|---|
public static final int DEFINES_SHARED
public static final int FCO
public static final int GETS_COPY
public static final int HIDDEN
public static final int OBJECT_CLASS_MASK
public static final int SCO
public static final int UNMANAGED
| Constructor Detail |
|---|
protected ManageableType.Field(java.lang.String name,
int modifiers,
Type type,
Type componentType)
| Method Detail |
|---|
public IndirectField cast(Type type)
public IndirectField concat(PersistenceField field)
public final boolean containsSCO()
public final IndirectField getArrayChain(int dimensions)
dimensions array components.
dimensions - the number of array components to append
public final ManageableType.ArrayComponent getArrayComponent()
public boolean getBoolean(java.lang.Object object)
public boolean getBoolean(java.lang.Object o,
int[] indices)
PersistenceField
getBoolean in class PersistenceFieldo - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic byte getByte(java.lang.Object object)
public byte getByte(java.lang.Object o,
int[] indices)
PersistenceField
getByte in class PersistenceFieldo - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic char getChar(java.lang.Object object)
public char getChar(java.lang.Object o,
int[] indices)
PersistenceField
getChar in class PersistenceFieldo - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceField
public final java.lang.Object getCloned(java.lang.Object object)
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic double getDouble(java.lang.Object object)
public double getDouble(java.lang.Object o,
int[] indices)
PersistenceField
getDouble in class PersistenceFieldo - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic final int getFieldId()
public float getFloat(java.lang.Object object)
public float getFloat(java.lang.Object o,
int[] indices)
PersistenceField
getFloat in class PersistenceFieldo - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic int getInt(java.lang.Object object)
public int getInt(java.lang.Object o,
int[] indices)
PersistenceField
getInt in class PersistenceFieldo - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic ManageableType.Field getLastField()
getLastField in class PersistenceFieldpublic long getLong(java.lang.Object object)
public long getLong(java.lang.Object o,
int[] indices)
PersistenceField
getLong in class PersistenceFieldo - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic final java.lang.Number getMaxValue()
getMaxValue in class PersistenceFieldpublic final java.lang.Number getMinValue()
getMinValue in class PersistenceFieldpublic java.lang.Object getObject(java.lang.Object object)
public java.lang.Object getObject(java.lang.Object o,
int[] indices)
PersistenceField
getObject in class PersistenceFieldo - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic final Quantity getQuantity()
getQuantity in class PersistenceFieldpublic final int getSerializationMethod()
public PersistenceField getShallowSubchain(int begin)
getShallowSubchain in class PersistenceFieldpublic short getShort(java.lang.Object object)
public short getShort(java.lang.Object o,
int[] indices)
PersistenceField
getShort in class PersistenceFieldo - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic ManageableType.Field getSubfield(int index)
getSubfield in class PersistenceFieldpublic final Type getType()
public void insertBoolean(java.lang.Object o,
int[] indices,
boolean value,
Transaction t)
PersistenceFieldvalue into an array.
This field has to be an array component indexed by indices.
The new value will be inserted at the place of the
indexed component.
insertBoolean in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the value to be insertedt - transaction contextPersistenceField
public void insertByte(java.lang.Object o,
int[] indices,
byte value,
Transaction t)
PersistenceFieldvalue into an array.
This field has to be an array component indexed by indices.
The new value will be inserted at the place of the
indexed component.
insertByte in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the value to be insertedt - transaction contextPersistenceField
public void insertChar(java.lang.Object o,
int[] indices,
char value,
Transaction t)
PersistenceFieldvalue into an array.
This field has to be an array component indexed by indices.
The new value will be inserted at the place of the
indexed component.
insertChar in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the value to be insertedt - transaction contextPersistenceField
public void insertDouble(java.lang.Object o,
int[] indices,
double value,
Transaction t)
PersistenceFieldvalue into an array.
This field has to be an array component indexed by indices.
The new value will be inserted at the place of the
indexed component.
insertDouble in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the value to be insertedt - transaction contextPersistenceField
public void insertFloat(java.lang.Object o,
int[] indices,
float value,
Transaction t)
PersistenceFieldvalue into an array.
This field has to be an array component indexed by indices.
The new value will be inserted at the place of the
indexed component.
insertFloat in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the value to be insertedt - transaction contextPersistenceField
public void insertInt(java.lang.Object o,
int[] indices,
int value,
Transaction t)
PersistenceFieldvalue into an array.
This field has to be an array component indexed by indices.
The new value will be inserted at the place of the
indexed component.
insertInt in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the value to be insertedt - transaction contextPersistenceField
public void insertLong(java.lang.Object o,
int[] indices,
long value,
Transaction t)
PersistenceFieldvalue into an array.
This field has to be an array component indexed by indices.
The new value will be inserted at the place of the
indexed component.
insertLong in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the value to be insertedt - transaction contextPersistenceField
public void insertObject(java.lang.Object o,
int[] indices,
java.lang.Object value,
Transaction t)
PersistenceFieldvalue into an array.
This field has to be an array component indexed by indices.
The new value will be inserted at the place of the
indexed component.
insertObject in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the value to be insertedt - transaction contextPersistenceField
public void insertShort(java.lang.Object o,
int[] indices,
short value,
Transaction t)
PersistenceFieldvalue into an array.
This field has to be an array component indexed by indices.
The new value will be inserted at the place of the
indexed component.
insertShort in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the value to be insertedt - transaction contextPersistenceFieldpublic final boolean isArrayComponent()
public boolean isGetReturningCopy()
public int length()
public boolean overlaps(int[] tindices,
FieldChain field,
int[] findices)
protected java.lang.Object readObject(java.lang.Object container,
int index,
PersistenceInput in)
throws java.io.IOException
java.io.IOException
public void removeBoolean(java.lang.Object o,
int[] indices,
Transaction t)
PersistenceFieldindices.
The value at the indexed component will be removed.
removeBoolean in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldst - transaction contextPersistenceField
public void removeByte(java.lang.Object o,
int[] indices,
Transaction t)
PersistenceFieldindices.
The value at the indexed component will be removed.
removeByte in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldst - transaction contextPersistenceField
public void removeChar(java.lang.Object o,
int[] indices,
Transaction t)
PersistenceFieldindices.
The value at the indexed component will be removed.
removeChar in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldst - transaction contextPersistenceField
public void removeDouble(java.lang.Object o,
int[] indices,
Transaction t)
PersistenceFieldindices.
The value at the indexed component will be removed.
removeDouble in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldst - transaction contextPersistenceField
public void removeFloat(java.lang.Object o,
int[] indices,
Transaction t)
PersistenceFieldindices.
The value at the indexed component will be removed.
removeFloat in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldst - transaction contextPersistenceField
public void removeInt(java.lang.Object o,
int[] indices,
Transaction t)
PersistenceFieldindices.
The value at the indexed component will be removed.
removeInt in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldst - transaction contextPersistenceField
public void removeLong(java.lang.Object o,
int[] indices,
Transaction t)
PersistenceFieldindices.
The value at the indexed component will be removed.
removeLong in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldst - transaction contextPersistenceField
public void removeObject(java.lang.Object o,
int[] indices,
Transaction t)
PersistenceFieldindices.
The value at the indexed component will be removed.
removeObject in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldst - transaction contextPersistenceField
public void removeShort(java.lang.Object o,
int[] indices,
Transaction t)
PersistenceFieldindices.
The value at the indexed component will be removed.
removeShort in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldst - transaction contextPersistenceField
public void setBoolean(java.lang.Object object,
boolean value)
public void setBoolean(java.lang.Object o,
int[] indices,
boolean value,
Transaction t)
PersistenceFieldo
using the given indices and t.
setBoolean in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the new valuet - transaction contextPersistenceField
public void setByte(java.lang.Object object,
byte value)
public void setByte(java.lang.Object o,
int[] indices,
byte value,
Transaction t)
PersistenceFieldo
using the given indices and t.
setByte in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the new valuet - transaction contextPersistenceField
public void setChar(java.lang.Object object,
char value)
public void setChar(java.lang.Object o,
int[] indices,
char value,
Transaction t)
PersistenceFieldo
using the given indices and t.
setChar in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the new valuet - transaction contextPersistenceField
public void setDouble(java.lang.Object object,
double value)
public void setDouble(java.lang.Object o,
int[] indices,
double value,
Transaction t)
PersistenceFieldo
using the given indices and t.
setDouble in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the new valuet - transaction contextPersistenceField
public void setFloat(java.lang.Object object,
float value)
public void setFloat(java.lang.Object o,
int[] indices,
float value,
Transaction t)
PersistenceFieldo
using the given indices and t.
setFloat in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the new valuet - transaction contextPersistenceField
public void setInt(java.lang.Object object,
int value)
public void setInt(java.lang.Object o,
int[] indices,
int value,
Transaction t)
PersistenceFieldo
using the given indices and t.
setInt in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the new valuet - transaction contextPersistenceField
public void setLong(java.lang.Object o,
int[] indices,
long value,
Transaction t)
PersistenceFieldo
using the given indices and t.
setLong in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the new valuet - transaction contextPersistenceField
public void setLong(java.lang.Object object,
long value)
public final void setMaxValue(java.lang.Number max)
public final void setMinValue(java.lang.Number min)
public void setObject(java.lang.Object o,
int[] indices,
java.lang.Object value,
Transaction t)
PersistenceFieldo
using the given indices and t.
setObject in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the new valuet - transaction contextPersistenceField
public final void setObject(java.lang.Object object,
java.lang.Object value)
protected void setObjectImpl(java.lang.Object object,
java.lang.Object value)
public final void setQuantity(Quantity q)
public void setShort(java.lang.Object o,
int[] indices,
short value,
Transaction t)
PersistenceFieldo
using the given indices and t.
setShort in class PersistenceFieldo - the instance for which the field is modifiedindices - the indices for array fieldsvalue - the new valuet - transaction contextPersistenceField
public void setShort(java.lang.Object object,
short value)
public java.lang.String toString()
toString in class MemberBase
protected void writeObject(java.lang.Object value,
PersistenceOutput out)
throws java.io.IOException
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||