| java.lang.Object org.jpox.store.mapping.JavaTypeMapping org.jpox.store.mapping.SingleFieldMapping
All known Subclasses: org.jpox.store.mapping.FloatMapping, org.jpox.store.mapping.EmbeddedMapping, org.jpox.store.mapping.IntegerMapping, org.jpox.store.mapping.ObjectAsLongMapping, org.jpox.store.mapping.ObjectAsStringMapping, org.jpox.store.mapping.SqlDateMapping, org.jpox.store.mapping.NullMapping, org.jpox.store.mapping.ShortMapping, org.jpox.store.mapping.ObjectAsIntegerMapping, org.jpox.store.mapping.DoubleMapping, org.jpox.store.mapping.VersionMapping, org.jpox.store.mapping.AbstractContainerMapping, org.jpox.store.mapping.BufferedImageMapping, org.jpox.store.mapping.BigDecimalMapping, org.jpox.store.mapping.CharacterMapping, org.jpox.store.mapping.NumberMapping, org.jpox.store.mapping.SqlTimestampMapping, org.jpox.store.mapping.ByteMapping, org.jpox.store.mapping.BooleanMapping, org.jpox.store.mapping.SqlTimeMapping, org.jpox.store.mapping.SerialisedMapping, org.jpox.store.mapping.IndexMapping, org.jpox.store.mapping.LongMapping, org.jpox.store.mapping.OIDMapping, org.jpox.store.mapping.DiscriminatorMapping, org.jpox.store.mapping.BitSetMapping, org.jpox.store.mapping.BigIntegerMapping, org.jpox.store.mapping.StringMapping,
SingleFieldMapping | abstract public class SingleFieldMapping extends JavaTypeMapping (Code) | | Simple mapping for a java field mapping to a single datastore field.
version: $Revision: 1.32 $ |
Method Summary | |
public boolean | equals(Object obj) | public boolean | getBoolean(ObjectManager om, Object resultSet, int[] exprIndex) | public byte | getByte(ObjectManager om, Object resultSet, int[] exprIndex) | public char | getChar(ObjectManager om, Object resultSet, int[] exprIndex) | public int | getDefaultLength(int index) Accessor for the default length for this type in the datastore (if applicable).
Parameters: index - requested datastore field index. | public double | getDouble(ObjectManager om, Object resultSet, int[] exprIndex) | public float | getFloat(ObjectManager om, Object resultSet, int[] exprIndex) | public int | getInt(ObjectManager om, Object resultSet, int[] exprIndex) | public String | getJavaTypeForDatastoreMapping(int index) Accessor for the name of the java-type actually used when mapping the particular datastore
field. | public long | getLong(ObjectManager om, Object resultSet, int[] exprIndex) | public Object | getObject(ObjectManager om, Object resultSet, int[] exprIndex) | public short | getShort(ObjectManager om, Object resultSet, int[] exprIndex) | public String | getString(ObjectManager om, Object resultSet, int[] exprIndex) | public ScalarExpression[] | getValidValues(int index) Accessor for an array of valid values that this type can take.
This can be used at the datastore side for restricting the values to be inserted.
Parameters: index - requested datastore field index. | public void | initialize(DatastoreAdapter dba, AbstractMemberMetaData fmd, DatastoreContainerObject container, ClassLoaderResolver clr) Initialize this JavaTypeMapping with the given DatastoreAdapter for the given FieldMetaData. | protected void | prepareDatastoreMapping() Method to prepare a field mapping for use in the datastore. | public void | setBoolean(ObjectManager om, Object preparedStatement, int[] exprIndex, boolean value) | public void | setByte(ObjectManager om, Object preparedStatement, int[] exprIndex, byte value) | public void | setChar(ObjectManager om, Object preparedStatement, int[] exprIndex, char value) | public void | setDouble(ObjectManager om, Object preparedStatement, int[] exprIndex, double value) | public void | setFloat(ObjectManager om, Object preparedStatement, int[] exprIndex, float value) | public void | setInt(ObjectManager om, Object preparedStatement, int[] exprIndex, int value) | public void | setLong(ObjectManager om, Object preparedStatement, int[] exprIndex, long value) | public void | setObject(ObjectManager om, Object preparedStatement, int[] exprIndex, Object value) | public void | setShort(ObjectManager om, Object preparedStatement, int[] exprIndex, short value) | public void | setString(ObjectManager om, Object preparedStatement, int[] exprIndex, String value) |
equals | public boolean equals(Object obj)(Code) | | Equality operator
Parameters: obj - The object to compare with Whether the objects are equal |
getDefaultLength | public int getDefaultLength(int index)(Code) | | Accessor for the default length for this type in the datastore (if applicable).
Parameters: index - requested datastore field index. Default length |
getJavaTypeForDatastoreMapping | public String getJavaTypeForDatastoreMapping(int index)(Code) | | Accessor for the name of the java-type actually used when mapping the particular datastore
field. This java-type must have an entry in the datastore mappings.
Parameters: index - requested datastore field index. the name of java-type for the requested datastore field. |
getValidValues | public ScalarExpression[] getValidValues(int index)(Code) | | Accessor for an array of valid values that this type can take.
This can be used at the datastore side for restricting the values to be inserted.
Parameters: index - requested datastore field index. The valid values |
initialize | public void initialize(DatastoreAdapter dba, AbstractMemberMetaData fmd, DatastoreContainerObject container, ClassLoaderResolver clr)(Code) | | Initialize this JavaTypeMapping with the given DatastoreAdapter for the given FieldMetaData.
Parameters: dba - The Datastore Adapter that this Mapping should use. Parameters: fmd - FieldMetaData for the field to be mapped (if any) Parameters: container - The datastore container storing this mapping (if any) Parameters: clr - the ClassLoaderResolver |
prepareDatastoreMapping | protected void prepareDatastoreMapping()(Code) | | Method to prepare a field mapping for use in the datastore.
This creates the column in the table.
|
Methods inherited from org.jpox.store.mapping.JavaTypeMapping | public void addDataStoreMapping(DatastoreMapping datastoreMapping)(Code)(Java Doc) protected String failureMessage(String method)(Code)(Java Doc) public boolean getBoolean(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public byte getByte(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public char getChar(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public DatastoreMapping getDataStoreMapping(int index)(Code)(Java Doc) public DatastoreMapping[] getDataStoreMappings()(Code)(Java Doc) public DatastoreContainerObject getDatastoreContainer()(Code)(Java Doc) public double getDouble(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public AbstractMemberMetaData getFieldMetaData()(Code)(Java Doc) public float getFloat(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public int getInt(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) abstract public Class getJavaType()(Code)(Java Doc) public String getJavaTypeForDatastoreMapping(int index)(Code)(Java Doc) public long getLong(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public int getNumberOfDatastoreFields()(Code)(Java Doc) public Object getObject(ObjectManager om, Object datastoreResults, int[] exprIndex, StateManager ownerSM, int ownerFieldNumber)(Code)(Java Doc) public Object getObject(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public JavaTypeMapping getReferenceMapping()(Code)(Java Doc) public int getRoleForField()(Code)(Java Doc) abstract public Object getSampleValue(ClassLoaderResolver clr)(Code)(Java Doc) public short getShort(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public String getString(ObjectManager om, Object datastoreResults, int[] exprIndex)(Code)(Java Doc) public String getType()(Code)(Java Doc) public boolean includeInFetchStatement()(Code)(Java Doc) public boolean includeInInsertStatement()(Code)(Java Doc) public boolean includeInUpdateStatement()(Code)(Java Doc) public void initialize(DatastoreAdapter dba, String type)(Code)(Java Doc) public void initialize(DatastoreAdapter dba, AbstractMemberMetaData fmd, DatastoreContainerObject container, ClassLoaderResolver clr)(Code)(Java Doc) public boolean isNullable()(Code)(Java Doc) public boolean isSerialised()(Code)(Java Doc) abstract public ScalarExpression newLiteral(QueryExpression qs, Object value)(Code)(Java Doc) abstract public ScalarExpression newScalarExpression(QueryExpression qs, LogicSetExpression te)(Code)(Java Doc) public void setBoolean(ObjectManager om, Object datastoreStatement, int[] exprIndex, boolean value)(Code)(Java Doc) public void setByte(ObjectManager om, Object datastoreStatement, int[] exprIndex, byte value)(Code)(Java Doc) public void setChar(ObjectManager om, Object datastoreStatement, int[] exprIndex, char value)(Code)(Java Doc) public void setDefault(ObjectManager om, Object datastoreStatement, int[] exprIndex)(Code)(Java Doc) public void setDouble(ObjectManager om, Object datastoreStatement, int[] exprIndex, double value)(Code)(Java Doc) public void setFieldInformation(AbstractMemberMetaData fmd, DatastoreContainerObject container)(Code)(Java Doc) public void setFloat(ObjectManager om, Object datastoreStatement, int[] exprIndex, float value)(Code)(Java Doc) public void setInt(ObjectManager om, Object datastoreStatement, int[] exprIndex, int value)(Code)(Java Doc) public void setLong(ObjectManager om, Object datastoreStatement, int[] exprIndex, long value)(Code)(Java Doc) public void setObject(ObjectManager om, Object datastoreStatement, int[] exprIndex, Object value, StateManager ownerSM, int ownerFieldNumber)(Code)(Java Doc) public void setObject(ObjectManager om, Object datastoreStatement, int[] exprIndex, Object value)(Code)(Java Doc) public void setReferenceMapping(JavaTypeMapping referenceMapping)(Code)(Java Doc) public void setRoleForField(int role)(Code)(Java Doc) public void setShort(ObjectManager om, Object datastoreStatement, int[] exprIndex, short value)(Code)(Java Doc) public void setString(ObjectManager om, Object datastoreStatement, int[] exprIndex, String value)(Code)(Java Doc)
|
|
|