Package net.ontopia.persistence.proxy
Class PrimitiveFieldInfo
java.lang.Object
net.ontopia.persistence.proxy.AbstractFieldInfo
net.ontopia.persistence.proxy.PrimitiveFieldInfo
- All Implemented Interfaces:
FieldHandlerIF,FieldInfoIF
INTERNAL: A field that references a primitive value class.
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(Object value, PreparedStatement stm, int stmt_index) INTERNAL: Binds the object field value starting from the given offset in the prepared statement.intINTERNAL: Returns the number of columns that the field spans.intINTERNAL: 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 a single primitive value.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
-
colname
-
sqltype
protected int sqltype
-
-
Method Details
-
getSQLType
public int getSQLType() -
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. -
load
public Object load(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) throws SQLException INTERNAL: Loads a single primitive value.- 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
-