|
||||||||
| 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.IndirectField
public final class IndirectField
| 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 | |
|---|---|
IndirectField()
|
|
IndirectField(PersistenceField field)
|
|
IndirectField(Type type)
|
|
| Method Summary | |
|---|---|
IndirectField |
add(Field field)
|
IndirectField |
add(FieldChain fields)
|
IndirectField |
add(ManageableType.Field f)
|
IndirectField |
add(PersistenceField field)
|
IndirectField |
cast(Type type)
|
boolean |
check()
|
void |
clear()
|
static PersistenceField |
concat(PersistenceField a,
PersistenceField b)
|
IndirectField |
dup()
|
boolean |
getBoolean(java.lang.Object object)
|
boolean |
getBoolean(java.lang.Object object,
int[] indices)
Returns the value of a field. |
byte |
getByte(java.lang.Object object)
|
byte |
getByte(java.lang.Object object,
int[] indices)
Returns the value of a field. |
char |
getChar(java.lang.Object object)
|
char |
getChar(java.lang.Object object,
int[] indices)
Returns the value of a field. |
double |
getDouble(java.lang.Object object)
|
double |
getDouble(java.lang.Object object,
int[] indices)
Returns the value of a field. |
float |
getFloat(java.lang.Object object)
|
float |
getFloat(java.lang.Object object,
int[] indices)
Returns the value of a field. |
int |
getIndexCount()
|
int |
getInt(java.lang.Object object)
|
int |
getInt(java.lang.Object object,
int[] indices)
Returns the value of a field. |
ManageableType.Field |
getLastField()
|
long |
getLong(java.lang.Object object)
|
long |
getLong(java.lang.Object object,
int[] indices)
Returns the value of a field. |
java.lang.Number |
getMaxValue()
|
java.lang.Number |
getMinValue()
|
java.lang.String |
getName()
Returns the name of this member. |
java.lang.Object |
getObject(java.lang.Object object)
|
java.lang.Object |
getObject(java.lang.Object object,
int[] indices)
Returns the value of a field. |
Quantity |
getQuantity()
|
PersistenceField |
getShallowSubchain(int index)
|
short |
getShort(java.lang.Object object)
|
short |
getShort(java.lang.Object object,
int[] indices)
Returns the value of a field. |
java.lang.String |
getSimpleName()
Returns the simple name of this member. |
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. |
int |
length()
|
boolean |
overlaps(int[] tindices,
FieldChain field,
int[] findices)
|
void |
pop()
|
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 |
set(PersistenceField field)
|
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 |
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)
|
void |
setObject(PersistenceCapable object,
int[] indices,
java.lang.Object value)
|
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()
|
| 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 Detail |
|---|
public IndirectField()
public IndirectField(PersistenceField field)
public IndirectField(Type type)
| Method Detail |
|---|
public IndirectField add(Field field)
public IndirectField add(FieldChain fields)
public IndirectField add(ManageableType.Field f)
public IndirectField add(PersistenceField field)
public IndirectField cast(Type type)
public boolean check()
public void clear()
public static PersistenceField concat(PersistenceField a,
PersistenceField b)
public IndirectField dup()
public boolean getBoolean(java.lang.Object object)
getBoolean in interface Field
public boolean getBoolean(java.lang.Object object,
int[] indices)
PersistenceField
getBoolean in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic byte getByte(java.lang.Object object)
getByte in interface Field
public byte getByte(java.lang.Object object,
int[] indices)
PersistenceField
getByte in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic char getChar(java.lang.Object object)
getChar in interface Field
public char getChar(java.lang.Object object,
int[] indices)
PersistenceField
getChar in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic double getDouble(java.lang.Object object)
getDouble in interface Field
public double getDouble(java.lang.Object object,
int[] indices)
PersistenceField
getDouble in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic float getFloat(java.lang.Object object)
getFloat in interface Field
public float getFloat(java.lang.Object object,
int[] indices)
PersistenceField
getFloat in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic int getIndexCount()
public int getInt(java.lang.Object object)
getInt in interface Field
public int getInt(java.lang.Object object,
int[] indices)
PersistenceField
getInt in class PersistenceFieldobject - 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)
getLong in interface Field
public long getLong(java.lang.Object object,
int[] indices)
PersistenceField
getLong in class PersistenceFieldobject - 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.String getName()
Memberjava.lang.Object,
java.util.Map.Entry.
Otherwise, it equals Member.getSimpleName().
getName in interface MembergetName in class MemberBasepublic java.lang.Object getObject(java.lang.Object object)
getObject in interface Field
public java.lang.Object getObject(java.lang.Object object,
int[] indices)
PersistenceField
getObject in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic final Quantity getQuantity()
getQuantity in class PersistenceFieldpublic PersistenceField getShallowSubchain(int index)
getShallowSubchain in class PersistenceFieldpublic short getShort(java.lang.Object object)
getShort in interface Field
public short getShort(java.lang.Object object,
int[] indices)
PersistenceField
getShort in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fields
pcPersistenceFieldpublic java.lang.String getSimpleName()
MemberObject, out, println.
getSimpleName in interface MembergetSimpleName in class MemberBasepublic ManageableType.Field getSubfield(int index)
getSubfield in class PersistenceFieldpublic final Type getType()
getType in interface Field
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 int length()
length in interface FieldChain
public boolean overlaps(int[] tindices,
FieldChain field,
int[] findices)
overlaps in interface FieldChainpublic void pop()
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 contextPersistenceFieldpublic void set(PersistenceField field)
public final void setBoolean(java.lang.Object object,
boolean value)
setBoolean in interface Field
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 final void setByte(java.lang.Object object,
byte value)
setByte in interface Field
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 final void setChar(java.lang.Object object,
char value)
setChar in interface Field
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 final void setDouble(java.lang.Object object,
double value)
setDouble in interface Field
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 final void setFloat(java.lang.Object object,
float value)
setFloat in interface Field
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 final void setInt(java.lang.Object object,
int value)
setInt in interface Field
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 final void setLong(java.lang.Object object,
long value)
setLong in interface Field
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)
setObject in interface Field
public final void setObject(PersistenceCapable object,
int[] indices,
java.lang.Object value)
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 final void setShort(java.lang.Object object,
short value)
setShort in interface Fieldpublic java.lang.String toString()
toString in class MemberBase
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||