com.triactive.jdo.store.mapping
Class OIDMapping
java.lang.Object
com.triactive.jdo.store.mapping.Mapping
com.triactive.jdo.store.mapping.ColumnMapping
com.triactive.jdo.store.mapping.OIDMapping
- Direct Known Subclasses:
- ObjectDatastoreIdMapping, ObjectReferenceDatastoreIdMapping, RawOIDMapping
- public abstract class OIDMapping
- extends ColumnMapping
Methods inherited from class com.triactive.jdo.store.mapping.ColumnMapping |
accessAsFieldIn, chooseColumnType, defineConstraints, defineStorage, equals, getBoolean, getByte, getChar, getColumn, getDouble, getFloat, getInt, getLong, getShort, getSqlInsertionValue, getSqlUpdateValue, getString, getTypeInfo, hashCode, newSqlExpression, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
OIDMapping
protected OIDMapping(DatabaseAdapter dba,
java.lang.Class type)
OIDMapping
protected OIDMapping(DatabaseAdapter dba,
FieldMetaData fmd)
mapTo
public void mapTo(Column col)
- Description copied from class:
ColumnMapping
- Links this mapping to a specific column.
Linkage involves at least two steps:
- Calling the column's
Column.mapWith(com.triactive.jdo.store.mapping.ColumnMapping)
method
- Setting this mapping's
ColumnMapping.typeInfo
to match the column's
This method can be called at most once for a given mapping.
Subclasses may do extra work as a consequence of mapping themselves to a
column, but they should always call super.mapTo(col) first.
- Overrides:
mapTo
in class ColumnMapping
setObject
public void setObject(PersistenceManager pm,
java.sql.PreparedStatement ps,
int param,
java.lang.Object value)
- Overrides:
setObject
in class ColumnMapping
getObject
public java.lang.Object getObject(PersistenceManager pm,
java.sql.ResultSet rs,
int param)
- Overrides:
getObject
in class ColumnMapping
Copyright © 2001-2007 The TJDO Project All Rights Reserved.