|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.AbstractFieldInfo net.ontopia.persistence.proxy.AggregateFieldInfo
public class AggregateFieldInfo
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 | |
---|---|
protected int |
column_count
|
protected FieldInfoIF[] |
fields
|
protected ClassInfoIF |
value_cinfo
|
protected java.lang.String[] |
value_columns
|
Fields inherited from class net.ontopia.persistence.proxy.AbstractFieldInfo |
---|
cardinality, field, getter, index, is_collection, name, parent_cinfo, readonly, setter, value_class |
Fields inherited from interface net.ontopia.persistence.proxy.FieldInfoIF |
---|
MANY_TO_MANY, ONE_TO_MANY, ONE_TO_ONE |
Constructor Summary | |
---|---|
AggregateFieldInfo(ClassInfoIF parent_cinfo,
FieldDescriptor field,
int index)
|
Method Summary | |
---|---|
protected void |
aggregateColumnNames(java.util.List columns)
|
void |
bind(java.lang.Object value,
java.sql.PreparedStatement stm,
int stmt_index)
INTERNAL: Binds the object field value starting from the given offset in the prepared statement. |
protected java.lang.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. |
java.lang.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. |
java.lang.Object |
load(AccessRegistrarIF registrar,
TicketIF ticket,
java.sql.ResultSet rs,
int rsindex,
boolean direct)
INTERNAL: Loads from its containing fields an aggregate object. |
protected java.lang.Object |
readAggregateObject(AccessRegistrarIF registrar,
TicketIF ticket,
java.sql.ResultSet rs,
int rsindex,
boolean direct)
|
void |
retrieveFieldValues(java.lang.Object value,
java.util.List field_values)
|
void |
retrieveSQLValues(java.lang.Object value,
java.util.List sql_values)
|
java.lang.String |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ClassInfoIF value_cinfo
protected FieldInfoIF[] fields
protected java.lang.String[] value_columns
protected int column_count
Constructor Detail |
---|
public AggregateFieldInfo(ClassInfoIF parent_cinfo, FieldDescriptor field, int index)
Method Detail |
---|
public ClassInfoIF getValueClassInfo()
FieldInfoIF
public int getColumnCount()
FieldHandlerIF
public boolean isIdentityField()
FieldHandlerIF
public java.lang.String[] getValueColumns()
FieldInfoIF
protected java.lang.String[] computeValueColumns()
protected void aggregateColumnNames(java.util.List columns)
protected java.lang.Object readAggregateObject(AccessRegistrarIF registrar, TicketIF ticket, java.sql.ResultSet rs, int rsindex, boolean direct) throws java.sql.SQLException
java.sql.SQLException
public java.lang.Object load(AccessRegistrarIF registrar, TicketIF ticket, java.sql.ResultSet rs, int rsindex, boolean direct) throws java.sql.SQLException
java.sql.SQLException
public void bind(java.lang.Object value, java.sql.PreparedStatement stm, int stmt_index) throws java.sql.SQLException
FieldHandlerIF
java.sql.SQLException
public void retrieveFieldValues(java.lang.Object value, java.util.List field_values)
public void retrieveSQLValues(java.lang.Object value, java.util.List sql_values)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |