public class AggregateFieldInfo extends AbstractFieldInfo
An aggregate field is a composite of one or more fields that together represent the fields of instances of the aggregate value class.
| Modifier and Type | Field and Description |
|---|---|
protected int |
column_count |
protected FieldInfoIF[] |
fields |
protected ClassInfoIF |
value_cinfo |
protected String[] |
value_columns |
cardinality, field, getter, index, is_collection, name, parent_cinfo, readonly, setter, value_classMANY_TO_MANY, ONE_TO_MANY, ONE_TO_ONE| Constructor and Description |
|---|
AggregateFieldInfo(ClassInfoIF parent_cinfo,
FieldDescriptor field,
int index) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
aggregateColumnNames(List<String> columns) |
void |
bind(Object value,
PreparedStatement stm,
int stmt_index)
INTERNAL: Binds the object field value starting from the given
offset in the prepared statement.
|
protected String[] |
computeValueColumns() |
int |
getColumnCount()
INTERNAL: Returns the number of columns that the field spans.
|
ClassInfoIF |
getValueClassInfo()
INTERNAL: Gets the class info for the field's value type.
|
String[] |
getValueColumns()
INTERNAL: Returns the names of the columns that the field spans.
|
boolean |
isIdentityField()
INTERNAL: Returns true if the field handler references an object
identity field.
|
Object |
load(AccessRegistrarIF registrar,
TicketIF ticket,
ResultSet rs,
int rsindex,
boolean direct)
INTERNAL: Loads from its containing fields an aggregate object.
|
protected Object |
readAggregateObject(AccessRegistrarIF registrar,
TicketIF ticket,
ResultSet rs,
int rsindex,
boolean direct) |
void |
retrieveFieldValues(Object value,
List<Object> field_values) |
void |
retrieveSQLValues(Object value,
List<SQLValueIF> sql_values) |
String |
toString() |
getCardinality, getDescriptor, getGetterMethod, getIndex, getJoinKeys, getJoinTable, getManyKeys, getName, getParentClassInfo, getSetterMethod, getTable, getValue, getValueClass, isAggregateField, isCollectionField, isPrimitiveField, isReadOnly, isReferenceField, setValueprotected ClassInfoIF value_cinfo
protected FieldInfoIF[] fields
protected String[] value_columns
protected int column_count
public AggregateFieldInfo(ClassInfoIF parent_cinfo, FieldDescriptor field, int index)
public ClassInfoIF getValueClassInfo()
FieldInfoIFpublic int getColumnCount()
FieldHandlerIFpublic boolean isIdentityField()
FieldHandlerIFpublic String[] getValueColumns()
FieldInfoIFprotected String[] computeValueColumns()
protected Object readAggregateObject(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) throws SQLException
SQLExceptionpublic Object load(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) throws SQLException
SQLExceptionpublic void bind(Object value, PreparedStatement stm, int stmt_index) throws SQLException
FieldHandlerIFSQLExceptionpublic void retrieveSQLValues(Object value, List<SQLValueIF> sql_values)