de.grogra.persistence
public final class IndirectField extends PersistenceField implements java.lang.Cloneable
annots, declaringType, descriptor, modifiers, nameFIELD_0, INTERFACE_MODIFIERS, MODIFIERSABSTRACT, 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 and Description |
|---|
IndirectField() |
IndirectField(PersistenceField field) |
IndirectField(Type type) |
| Modifier and Type | Method and Description |
|---|---|
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() |
get, get, getField, isWritable, setgetDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifierspublic IndirectField()
public IndirectField(PersistenceField field)
public IndirectField(Type type)
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 Fieldpublic boolean getBoolean(java.lang.Object object,
int[] indices)
PersistenceFieldgetBoolean in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fieldspcPersistenceFieldpublic byte getByte(java.lang.Object object,
int[] indices)
PersistenceFieldgetByte in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fieldspcPersistenceFieldpublic char getChar(java.lang.Object object,
int[] indices)
PersistenceFieldgetChar in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fieldspcPersistenceFieldpublic double getDouble(java.lang.Object object)
public double getDouble(java.lang.Object object,
int[] indices)
PersistenceFieldgetDouble in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fieldspcPersistenceFieldpublic float getFloat(java.lang.Object object,
int[] indices)
PersistenceFieldgetFloat in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fieldspcPersistenceFieldpublic int getIndexCount()
public int getInt(java.lang.Object object,
int[] indices)
PersistenceFieldgetInt in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fieldspcPersistenceFieldpublic ManageableType.Field getLastField()
getLastField in class PersistenceFieldpublic long getLong(java.lang.Object object,
int[] indices)
PersistenceFieldgetLong in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fieldspcPersistenceFieldpublic 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)
public java.lang.Object getObject(java.lang.Object object,
int[] indices)
PersistenceFieldgetObject in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fieldspcPersistenceFieldpublic final Quantity getQuantity()
getQuantity in class PersistenceFieldpublic PersistenceField getShallowSubchain(int index)
getShallowSubchain in class PersistenceFieldpublic short getShort(java.lang.Object object,
int[] indices)
PersistenceFieldgetShort in class PersistenceFieldobject - the instance for which the field value is returnedindices - the indices for array fieldspcPersistenceFieldpublic java.lang.String getSimpleName()
MemberObject, out, println.getSimpleName in interface MembergetSimpleName in class MemberBasepublic ManageableType.Field getSubfield(int index)
getSubfield in class PersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 FieldChainpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic 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 Fieldpublic 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 contextPersistenceFieldpublic final 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 contextPersistenceFieldpublic final 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 contextPersistenceFieldpublic final 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 contextPersistenceFieldpublic final 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 contextPersistenceFieldpublic final 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 contextPersistenceFieldpublic 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 contextPersistenceFieldpublic final void setLong(java.lang.Object object,
long value)
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 contextPersistenceFieldpublic final void setObject(java.lang.Object object,
java.lang.Object value)
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 contextPersistenceFieldpublic final void setShort(java.lang.Object object,
short value)
public java.lang.String toString()
toString in class MemberBase