|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.mapping.JavaTypeMapping
org.jpox.store.mapping.MultiMapping
org.jpox.store.mapping.SubclassPCMapping
Mapping for a field that stores a PC object that uses "subclass-table" inheritance and where this is mapped in the datastore as a separate FK for each subclass.
Field Summary |
Fields inherited from class org.jpox.store.mapping.MultiMapping |
datastoreContainer, javaTypeMappings |
Fields inherited from class org.jpox.store.mapping.JavaTypeMapping |
datastoreMappings, dba, fmd, LOCALISER, referenceMapping, type |
Constructor Summary | |
SubclassPCMapping(DatastoreAdapter dba,
AbstractPropertyMetaData fmd,
DatastoreContainerObject datastoreContainer,
ClassLoaderResolver clr)
Constructor. |
|
SubclassPCMapping(DatastoreAdapter dba,
java.lang.String type)
Constructor. |
Method Summary | |
protected void |
createColumns(DatastoreContainerObject datastoreContainer,
AbstractPropertyMetaData fmd,
ClassLoaderResolver clr)
Convenience method to create a column for each implementation type of this reference. |
java.lang.Class |
getJavaType()
Accessor for the java type being mapped |
java.lang.Object |
getSampleValue()
Return a sample value of the mapping type to be used for internal evaluation of type and conversion. |
ScalarExpression |
newLiteral(QueryExpression qs,
java.lang.Object value)
Creates a literal from an value. |
ScalarExpression |
newScalarExpression(QueryExpression qs,
LogicSetExpression te)
Creates a expression from a field name/table. |
Methods inherited from class org.jpox.store.mapping.MultiMapping |
addJavaTypeMapping, getDatastoreContainer, getDataStoreMapping, getJavaTypeMapping, getNumberOfDatastoreFields, getObject, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, setObject, setObject |
Methods inherited from class org.jpox.store.mapping.JavaTypeMapping |
addDataStoreMapping, failureMessage, getBoolean, getByte, getChar, getDataStoreMappings, getDouble, getFieldMetaData, getFloat, getInt, getLong, getObject, getReferenceMapping, getShort, getString, getType, isNullable, setBoolean, setByte, setChar, setDefault, setDouble, setFloat, setInt, setLong, setReferenceMapping, setShort, setString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubclassPCMapping(DatastoreAdapter dba, java.lang.String type)
dba
- Datastore adaptertype
- The type of the (reference) fieldpublic SubclassPCMapping(DatastoreAdapter dba, AbstractPropertyMetaData fmd, DatastoreContainerObject datastoreContainer, ClassLoaderResolver clr)
dba
- Datastore adapterfmd
- MetaData for the (reference) fielddatastoreContainer
- Table where the interface is to be storedclr
- The ClassLoaderResolverMethod Detail |
protected void createColumns(DatastoreContainerObject datastoreContainer, AbstractPropertyMetaData fmd, ClassLoaderResolver clr)
datastoreContainer
- Table to usefmd
- MetaData for the fieldclr
- The ClassLoaderResolverpublic java.lang.Class getJavaType()
JavaTypeMapping
getJavaType
in class JavaTypeMapping
public java.lang.Object getSampleValue()
JavaTypeMapping
getSampleValue
in class JavaTypeMapping
public ScalarExpression newLiteral(QueryExpression qs, java.lang.Object value)
JavaTypeMapping
newLiteral
in class JavaTypeMapping
qs
- The Query statementvalue
- The object
public ScalarExpression newScalarExpression(QueryExpression qs, LogicSetExpression te)
JavaTypeMapping
newScalarExpression
in class JavaTypeMapping
qs
- The Query statementte
- the alias for the table
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |