|
||||||||||
| 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.ReferenceMapping
org.jpox.store.mapping.ObjectMapping
public class ObjectMapping
Mapping for Object fields. An Object field has a list of possible (PersistenceCapable) types that it represents and so any Object field is mapped to a series of ForeignKey columns in the datastore.
| 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 | |
|---|---|
ObjectMapping(DatastoreAdapter dba,
AbstractPropertyMetaData fmd,
DatastoreContainerObject datastoreContainer,
ClassLoaderResolver clr)
Constructor. |
|
ObjectMapping(DatastoreAdapter dba,
java.lang.String type)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Class |
getJavaType()
Accessor for the Java type being represented. |
java.lang.Object |
getSampleValue()
Accessor for a sample value for this Java type |
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.ReferenceMapping |
|---|
createColumns |
| 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 ObjectMapping(DatastoreAdapter dba,
java.lang.String type)
dba - Datastore adaptertype - The type of the (interface) field
public ObjectMapping(DatastoreAdapter dba,
AbstractPropertyMetaData fmd,
DatastoreContainerObject datastoreContainer,
ClassLoaderResolver clr)
dba - Datastroe adapterfmd - MetaData for the (interface) fielddatastoreContainer - Table where the interface is to be storedclr - The ClassLoaderResolver| Method Detail |
|---|
public java.lang.Class getJavaType()
getJavaType in class ReferenceMappingpublic java.lang.Object getSampleValue()
getSampleValue in class ReferenceMapping
public ScalarExpression newLiteral(QueryExpression qs,
java.lang.Object value)
JavaTypeMapping
newLiteral in class JavaTypeMappingqs - The Query statementvalue - The object
public ScalarExpression newScalarExpression(QueryExpression qs,
LogicSetExpression te)
JavaTypeMapping
newScalarExpression in class JavaTypeMappingqs - The Query statementte - the alias for the table
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||