org.datanucleus.store.mapped.mapping
Class TemporalMapping
java.lang.Object
org.datanucleus.store.mapped.mapping.JavaTypeMapping
org.datanucleus.store.mapped.mapping.SingleFieldMapping
org.datanucleus.store.mapped.mapping.TemporalMapping
- Direct Known Subclasses:
- DateMapping, LocalDateMapping, LocalDateTimeMapping, LocalTimeMapping, SqlDateMapping, SqlTimeMapping, SqlTimestampMapping
public abstract class TemporalMapping
- extends SingleFieldMapping
Abstract base mapping for all temporal types.
| Methods inherited from class org.datanucleus.store.mapped.mapping.SingleFieldMapping |
equals, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getValidValues, initialize, prepareDatastoreMapping, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString |
| Methods inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping |
addDatastoreMapping, failureMessage, getAbsoluteFieldNumber, getColumnMetaDataForMember, getDatastoreContainer, getDatastoreMapping, getDatastoreMappings, getJavaType, getMemberMetaData, getNumberOfDatastoreMappings, getObject, getReferenceMapping, getRoleForMember, getStoreManager, getType, getValueForDatastoreMapping, hashCode, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, setAbsFieldNumber, setDatastoreContainer, setMemberMetaData, setObject, setReferenceMapping, setRoleForMember |
TemporalMapping
public TemporalMapping()
getDefaultLength
public int getDefaultLength(int index)
- Method to return the default length of this type in the datastore.
- Overrides:
getDefaultLength in class SingleFieldMapping
- Parameters:
index - The index position
- Returns:
- The default length
getDefaultLengthAsString
protected abstract int getDefaultLengthAsString()
getJavaTypeForDatastoreMapping
public String getJavaTypeForDatastoreMapping(int index)
- 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.
- Overrides:
getJavaTypeForDatastoreMapping in class SingleFieldMapping
- Parameters:
index - requested datastore field index.
- Returns:
- the name of java-type for the requested datastore field.
Copyright © 2012. All Rights Reserved.