Package net.ontopia.persistence.proxy
Class AggregateFieldInfo
java.lang.Object
net.ontopia.persistence.proxy.AbstractFieldInfo
net.ontopia.persistence.proxy.AggregateFieldInfo
- All Implemented Interfaces:
FieldHandlerIF,FieldInfoIF
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 Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected FieldInfoIF[]protected ClassInfoIFprotected String[]Fields inherited from class net.ontopia.persistence.proxy.AbstractFieldInfo
cardinality, field, getter, index, is_collection, name, parent_cinfo, readonly, setter, value_classFields inherited from interface net.ontopia.persistence.proxy.FieldInfoIF
MANY_TO_MANY, ONE_TO_MANY, ONE_TO_ONE -
Constructor Summary
ConstructorsConstructorDescriptionAggregateFieldInfo(ClassInfoIF parent_cinfo, FieldDescriptor field, int index) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaggregateColumnNames(List<String> columns) voidbind(Object value, PreparedStatement stm, int stmt_index) INTERNAL: Binds the object field value starting from the given offset in the prepared statement.protected String[]intINTERNAL: Returns the number of columns that the field spans.INTERNAL: Gets the class info for the field's value type.String[]INTERNAL: Returns the names of the columns that the field spans.booleanINTERNAL: Returns true if the field handler references an object identity field.load(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) INTERNAL: Loads from its containing fields an aggregate object.protected ObjectreadAggregateObject(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) voidretrieveFieldValues(Object value, List<Object> field_values) voidretrieveSQLValues(Object value, List<SQLValueIF> sql_values) toString()Methods inherited from class net.ontopia.persistence.proxy.AbstractFieldInfo
getCardinality, getDescriptor, getGetterMethod, getIndex, getJoinKeys, getJoinTable, getManyKeys, getName, getParentClassInfo, getSetterMethod, getTable, getValue, getValueClass, isAggregateField, isCollectionField, isPrimitiveField, isReadOnly, isReferenceField, setValue
-
Field Details
-
value_cinfo
-
fields
-
value_columns
-
column_count
protected int column_count
-
-
Constructor Details
-
AggregateFieldInfo
-
-
Method Details
-
getValueClassInfo
Description copied from interface:FieldInfoIFINTERNAL: 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:FieldHandlerIFINTERNAL: Returns the number of columns that the field spans. -
isIdentityField
public boolean isIdentityField()Description copied from interface:FieldHandlerIFINTERNAL: Returns true if the field handler references an object identity field. -
getValueColumns
Description copied from interface:FieldInfoIFINTERNAL: Returns the names of the columns that the field spans. -
computeValueColumns
-
aggregateColumnNames
-
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
Description copied from interface:FieldHandlerIFINTERNAL: 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
-
retrieveSQLValues
-
toString
-