org.jpox.store.mapping
Class DateMapping
java.lang.Object
org.jpox.store.mapping.JavaTypeMapping
org.jpox.store.mapping.SingleFieldMapping
org.jpox.store.mapping.SqlTimestampMapping
org.jpox.store.mapping.DateMapping
- All Implemented Interfaces:
- SimpleDatastoreRepresentation
- public class DateMapping
- extends SqlTimestampMapping
SCO Mapping for java.util.Date type.
- Version:
- $Revision: 1.9 $
Methods inherited from class org.jpox.store.mapping.SingleFieldMapping |
equals, getBoolean, getByte, getChar, getDatastoreContainer, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, hasValue, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, prepareDatastoreMapping, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString |
Methods inherited from class org.jpox.store.mapping.JavaTypeMapping |
addDataStoreMapping, failureMessage, getDataStoreMapping, getDataStoreMappings, getFieldMetaData, getNumberOfDatastoreFields, getObject, getReferenceMapping, getType, isNullable, setDefault, setObject, setReferenceMapping |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateMapping
public DateMapping(DatastoreAdapter dba,
java.lang.String type)
- Constructor.
- Parameters:
dba
- Datastore Adaptertype
- Type of the field
DateMapping
public DateMapping(DatastoreAdapter dba,
AbstractPropertyMetaData fmd,
DatastoreContainerObject datastoreContainer,
ClassLoaderResolver clr)
- Creates a new DateyMapping object.
- Parameters:
dba
- Database Adapterfmd
- AbstractPropertyMetaData for the fielddatastoreContainer
- Table for persisting this fieldclr
- The ClassLoaderResolver
newLiteral
public ScalarExpression newLiteral(QueryExpression qs,
java.lang.Object value)
- Description copied from class:
JavaTypeMapping
- Creates a literal from an value.
A string literal is enclosed in single quotes. for example: "literal".
A string literal that includes a single quote is represented by two
single quotes. for example: "literal''s".
An exact numeric literal is a numeric value without a decimal point,
such as 57, -957, +62.
An approximate numeric literal is a numeric value in scientific notation,
such as 7E3, -57.9E2, or a numeric value with a decimal, such as 7.,
-95.7, +6.2.
- Overrides:
newLiteral
in class SqlTimestampMapping
getJavaType
public java.lang.Class getJavaType()
- Description copied from class:
JavaTypeMapping
- Accessor for the java type being mapped
- Overrides:
getJavaType
in class SqlTimestampMapping
Copyright © -2007 . All Rights Reserved.