|
|||||||||||
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.SingleFieldMapping
org.jpox.store.mapping.AbstractContainerMapping
org.jpox.store.mapping.CollectionMapping
Mapping for Collection (Set/List) types.
Field Summary |
Fields inherited from class org.jpox.store.mapping.AbstractContainerMapping |
contentsStore, contentsTable, fieldName, instantiatedType, storeMgr |
Fields inherited from class org.jpox.store.mapping.SingleFieldMapping |
datastoreContainer, typeInfo |
Fields inherited from class org.jpox.store.mapping.JavaTypeMapping |
datastoreMappings, dba, fmd, LOCALISER, referenceMapping, type |
Constructor Summary | |
CollectionMapping(DatastoreAdapter dba,
AbstractPropertyMetaData fmd,
DatastoreContainerObject datastoreContainer,
ClassLoaderResolver clr)
Constructor. |
|
CollectionMapping(DatastoreAdapter dba,
java.lang.String type)
Constructor taking the database adapter representing the datastore being used and the class of the mapping. |
Method Summary | |
void |
deleteDependent(StateManager sm)
Method to delete all dependent objects (the contents of the Collection). |
boolean |
equals(java.lang.Object obj)
Equality operator. |
CollectionStore |
getBackingStore(ClassLoaderResolver clr)
Accessor for the Store of the contents. |
java.lang.Class |
getJavaType()
Accessor for the Java type represented here. |
ScalarExpression |
newLiteral(QueryExpression qs,
java.lang.Object value)
Accessor for a literal representing this type. |
ScalarExpression |
newScalarExpression(QueryExpression qs,
LogicSetExpression te)
Accessor for a scalar expression involving this object. |
void |
postInsert(StateManager sm)
Method to be called after the insert of the owner class element. |
void |
postUpdate(StateManager sm)
Method to be called after any update of the owner class element. |
void |
preDelete(StateManager sm)
Method to be called before any delete of the owner class element. |
Methods inherited from class org.jpox.store.mapping.SingleFieldMapping |
getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, getString, hasValue, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString |
Methods inherited from class org.jpox.store.mapping.JavaTypeMapping |
addDataStoreMapping, failureMessage, getFieldMetaData, getObject, getReferenceMapping, getType, isNullable, setDefault, setObject, setReferenceMapping |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jpox.store.mapping.MappingCallbacks |
postFetch |
Constructor Detail |
public CollectionMapping(DatastoreAdapter dba, java.lang.String type)
dba
- Database adaptertype
- Java class being mapped to the DBpublic CollectionMapping(DatastoreAdapter dba, AbstractPropertyMetaData fmd, DatastoreContainerObject datastoreContainer, ClassLoaderResolver clr)
dba
- Datastore adapterfmd
- Field metadata for the fielddatastoreContainer
- The owner tableclr
- The ClassLoaderResolverMethod Detail |
public CollectionStore getBackingStore(ClassLoaderResolver clr)
clr
- The ClassLoaderResolver
public boolean equals(java.lang.Object obj)
equals
in class SingleFieldMapping
obj
- Object to compare against
public java.lang.Class getJavaType()
getJavaType
in class JavaTypeMapping
public void postInsert(StateManager sm)
postInsert
in interface MappingCallbacks
sm
- StateManager of the ownerpublic void postUpdate(StateManager sm)
postUpdate
in interface MappingCallbacks
sm
- StateManager of the ownerpublic void preDelete(StateManager sm)
preDelete
in interface MappingCallbacks
sm
- StateManager of the ownerpublic void deleteDependent(StateManager sm)
deleteDependent
in interface MappingCallbacks
sm
- State Manager of the ownerpublic ScalarExpression newLiteral(QueryExpression qs, java.lang.Object value)
newLiteral
in class JavaTypeMapping
qs
- The Queryvalue
- the value of this object in the literal
public ScalarExpression newScalarExpression(QueryExpression qs, LogicSetExpression te)
newScalarExpression
in class JavaTypeMapping
qs
- The Queryte
- The table holding this object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |