Class AggregateFieldInfo

java.lang.Object
net.ontopia.persistence.proxy.AbstractFieldInfo
net.ontopia.persistence.proxy.AggregateFieldInfo
All Implemented Interfaces:
FieldHandlerIF, FieldInfoIF

public class AggregateFieldInfo extends AbstractFieldInfo
INTERNAL: A field that references an aggregate class.

An aggregate field is a composite of one or more fields that together represent the fields of instances of the aggregate value class.

  • Field Details

    • value_cinfo

      protected ClassInfoIF value_cinfo
    • fields

      protected FieldInfoIF[] fields
    • value_columns

      protected String[] value_columns
    • column_count

      protected int column_count
  • Constructor Details

  • Method Details

    • getValueClassInfo

      public ClassInfoIF getValueClassInfo()
      Description copied from interface: FieldInfoIF
      INTERNAL: Gets the class info for the field's value type. Note that primitive value classes don't have a class info.
    • getColumnCount

      public int getColumnCount()
      Description copied from interface: FieldHandlerIF
      INTERNAL: Returns the number of columns that the field spans.
    • isIdentityField

      public boolean isIdentityField()
      Description copied from interface: FieldHandlerIF
      INTERNAL: Returns true if the field handler references an object identity field.
    • getValueColumns

      public String[] getValueColumns()
      Description copied from interface: FieldInfoIF
      INTERNAL: Returns the names of the columns that the field spans.
    • computeValueColumns

      protected String[] computeValueColumns()
    • aggregateColumnNames

      protected void aggregateColumnNames(List<String> columns)
    • readAggregateObject

      protected Object readAggregateObject(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) throws SQLException
      Throws:
      SQLException
    • load

      public Object load(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) throws SQLException
      INTERNAL: Loads from its containing fields an aggregate object.
      Throws:
      SQLException
    • bind

      public void bind(Object value, PreparedStatement stm, int stmt_index) throws SQLException
      Description copied from interface: FieldHandlerIF
      INTERNAL: Binds the object field value starting from the given offset in the prepared statement. The number of columns actually bound depends on the type of object field.
      Throws:
      SQLException
    • retrieveFieldValues

      public void retrieveFieldValues(Object value, List<Object> field_values)
    • retrieveSQLValues

      public void retrieveSQLValues(Object value, List<SQLValueIF> sql_values)
    • toString

      public String toString()
      Overrides:
      toString in class Object