Module graph

Class IndirectField

All Implemented Interfaces:
Field, FieldChain, Member, Cloneable

public final class IndirectField extends PersistenceField implements Cloneable
  • Constructor Details

    • IndirectField

      public IndirectField(Type type)
    • IndirectField

      public IndirectField()
    • IndirectField

      public IndirectField(PersistenceField field)
  • Method Details

    • dup

      public IndirectField dup()
    • getShallowSubchain

      public PersistenceField getShallowSubchain(int index)
      Specified by:
      getShallowSubchain in class PersistenceField
    • concat

      public static PersistenceField concat(PersistenceField a, PersistenceField b)
    • getType

      public final Type getType()
      Specified by:
      getType in interface Field
    • getQuantity

      public final Quantity getQuantity()
      Specified by:
      getQuantity in class PersistenceField
    • getMinValue

      public final Number getMinValue()
      Specified by:
      getMinValue in class PersistenceField
    • getMaxValue

      public final Number getMaxValue()
      Specified by:
      getMaxValue in class PersistenceField
    • getName

      public String 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 equals Member.getSimpleName().
      Specified by:
      getName in interface Member
      Overrides:
      getName in class MemberBase
      Returns:
      name of the member
    • getSimpleName

      public String 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 interface Member
      Overrides:
      getSimpleName in class MemberBase
      Returns:
      simple name of the member
    • length

      public int length()
      Specified by:
      length in interface FieldChain
    • getIndexCount

      public int getIndexCount()
    • getSubfield

      public ManageableType.Field getSubfield(int index)
      Specified by:
      getSubfield in class PersistenceField
    • getLastField

      public ManageableType.Field getLastField()
      Specified by:
      getLastField in class PersistenceField
    • check

      public boolean check()
    • overlaps

      public boolean overlaps(int[] tindices, FieldChain field, int[] findices)
      Specified by:
      overlaps in interface FieldChain
    • clear

      public void clear()
    • set

      public void set(PersistenceField field)
    • add

      public IndirectField add(Field field)
    • add

      public IndirectField add(FieldChain fields)
    • add

      public IndirectField add(PersistenceField field)
    • add

    • pop

      public void pop()
    • cast

      public IndirectField cast(Type type)
    • setBoolean

      public void setBoolean(Object o, int[] indices, boolean value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setBoolean in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • insertBoolean

      public void insertBoolean(Object o, int[] indices, boolean value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value 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.
      Specified by:
      insertBoolean in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeBoolean

      public void removeBoolean(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeBoolean in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • getBoolean

      public boolean getBoolean(Object object)
      Specified by:
      getBoolean in interface Field
    • getBoolean

      public boolean getBoolean(Object object, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getBoolean in class PersistenceField
      Parameters:
      object - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • setBoolean

      public final void setBoolean(Object object, boolean value)
      Specified by:
      setBoolean in interface Field
    • setByte

      public void setByte(Object o, int[] indices, byte value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setByte in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • insertByte

      public void insertByte(Object o, int[] indices, byte value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value 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.
      Specified by:
      insertByte in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeByte

      public void removeByte(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeByte in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • getByte

      public byte getByte(Object object)
      Specified by:
      getByte in interface Field
    • getByte

      public byte getByte(Object object, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getByte in class PersistenceField
      Parameters:
      object - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • setByte

      public final void setByte(Object object, byte value)
      Specified by:
      setByte in interface Field
    • setShort

      public void setShort(Object o, int[] indices, short value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setShort in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • insertShort

      public void insertShort(Object o, int[] indices, short value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value 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.
      Specified by:
      insertShort in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeShort

      public void removeShort(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeShort in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • getShort

      public short getShort(Object object)
      Specified by:
      getShort in interface Field
    • getShort

      public short getShort(Object object, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getShort in class PersistenceField
      Parameters:
      object - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • setShort

      public final void setShort(Object object, short value)
      Specified by:
      setShort in interface Field
    • setChar

      public void setChar(Object o, int[] indices, char value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setChar in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • insertChar

      public void insertChar(Object o, int[] indices, char value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value 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.
      Specified by:
      insertChar in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeChar

      public void removeChar(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeChar in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • getChar

      public char getChar(Object object)
      Specified by:
      getChar in interface Field
    • getChar

      public char getChar(Object object, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getChar in class PersistenceField
      Parameters:
      object - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • setChar

      public final void setChar(Object object, char value)
      Specified by:
      setChar in interface Field
    • setInt

      public void setInt(Object o, int[] indices, int value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setInt in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • insertInt

      public void insertInt(Object o, int[] indices, int value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value 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.
      Specified by:
      insertInt in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeInt

      public void removeInt(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeInt in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • getInt

      public int getInt(Object object)
      Specified by:
      getInt in interface Field
    • getInt

      public int getInt(Object object, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getInt in class PersistenceField
      Parameters:
      object - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • setInt

      public final void setInt(Object object, int value)
      Specified by:
      setInt in interface Field
    • setLong

      public void setLong(Object o, int[] indices, long value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setLong in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • insertLong

      public void insertLong(Object o, int[] indices, long value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value 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.
      Specified by:
      insertLong in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeLong

      public void removeLong(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeLong in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • getLong

      public long getLong(Object object)
      Specified by:
      getLong in interface Field
    • getLong

      public long getLong(Object object, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getLong in class PersistenceField
      Parameters:
      object - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • setLong

      public final void setLong(Object object, long value)
      Specified by:
      setLong in interface Field
    • setFloat

      public void setFloat(Object o, int[] indices, float value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setFloat in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • insertFloat

      public void insertFloat(Object o, int[] indices, float value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value 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.
      Specified by:
      insertFloat in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeFloat

      public void removeFloat(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeFloat in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • getFloat

      public float getFloat(Object object)
      Specified by:
      getFloat in interface Field
    • getFloat

      public float getFloat(Object object, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getFloat in class PersistenceField
      Parameters:
      object - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • setFloat

      public final void setFloat(Object object, float value)
      Specified by:
      setFloat in interface Field
    • setDouble

      public void setDouble(Object o, int[] indices, double value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setDouble in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • insertDouble

      public void insertDouble(Object o, int[] indices, double value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value 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.
      Specified by:
      insertDouble in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeDouble

      public void removeDouble(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeDouble in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • getDouble

      public double getDouble(Object object)
      Specified by:
      getDouble in interface Field
    • getDouble

      public double getDouble(Object object, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getDouble in class PersistenceField
      Parameters:
      object - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • setDouble

      public final void setDouble(Object object, double value)
      Specified by:
      setDouble in interface Field
    • setObject

      public void setObject(Object o, int[] indices, Object value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setObject in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • insertObject

      public void insertObject(Object o, int[] indices, Object value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value 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.
      Specified by:
      insertObject in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeObject

      public void removeObject(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeObject in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • getObject

      public Object getObject(Object object)
      Specified by:
      getObject in interface Field
    • getObject

      public Object getObject(Object object, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getObject in class PersistenceField
      Parameters:
      object - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • setObject

      public final void setObject(Object object, Object value)
      Specified by:
      setObject in interface Field
    • setObject

      public final void setObject(PersistenceCapable object, int[] indices, Object value)
    • toString

      public String toString()
      Overrides:
      toString in class MemberBase