|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.persist.resolver.ManyRelationResolver
org.castor.persist.resolver.OneToManyRelationResolver
public final class OneToManyRelationResolver
| Field Summary |
|---|
| Fields inherited from class org.castor.persist.resolver.ManyRelationResolver |
|---|
_classMolder, _fieldMolder |
| Constructor Summary | |
|---|---|
OneToManyRelationResolver(ClassMolder classMolder,
FieldMolder fieldMolder,
int fieldIndex,
boolean debug)
Creates an instance of OneToMany. |
|
| Method Summary | |
|---|---|
boolean |
markCreate(TransactionContext tx,
OID oid,
Object object)
Walk the object model and mark object that should be created. |
void |
markDelete(TransactionContext tx,
Object object,
Object field)
Prepare to delete an object with the specified identity. |
Object |
postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId)
Called after successful creation of an object of the base class. |
UpdateFlags |
preStore(TransactionContext tx,
OID oid,
Object object,
int timeout,
Object field)
Check the object for modification. |
void |
update(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode,
Object field)
Update the object which loaded or created in the other transaction to the persistent storage. |
boolean |
updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode)
Update the object which loaded or created in the other transaction to the persistent storage. |
| Methods inherited from class org.castor.persist.resolver.ManyRelationResolver |
|---|
create, expireCache, load, removeRelation, revertObject, store, updateCache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OneToManyRelationResolver(ClassMolder classMolder,
FieldMolder fieldMolder,
int fieldIndex,
boolean debug)
classMolder - fieldMolder - fieldIndex - Field index within all fields of parent class molder.debug - | Method Detail |
|---|
public boolean markCreate(TransactionContext tx,
OID oid,
Object object)
throws PersistenceException
ResolverStrategy
markCreate in interface ResolverStrategymarkCreate in class ManyRelationResolvertx - transaction in actionoid - the object identity of the object to be created.object - the object to be created
PersistenceException#markCreate(org.castor.persist.TransactionContext,
org.exolab.castor.persist.OID, java.lang.Object)
public void markDelete(TransactionContext tx,
Object object,
Object field)
throws PersistenceException
ResolverStrategy
markDelete in interface ResolverStrategymarkDelete in class ManyRelationResolvertx - - transaction in actionobject - - the target objectfield - The field value as returned by the SQLEngine
PersistenceException - If it is not possible to successfully complete this method.#markDelete(org.castor.persist.TransactionContext, java.lang.Object,
java.lang.Object)
public UpdateFlags preStore(TransactionContext tx,
OID oid,
Object object,
int timeout,
Object field)
throws PersistenceException
ResolverStrategy
preStore in interface ResolverStrategypreStore in class ManyRelationResolvertx - transaction in actionoid - the object identity of the objectobject - the data object to be checkedtimeout - timeout of updating the lock if neededfield - The field value as returned by the SQLEngine
PersistenceException - If it is not possible to successfully complete this method.#preStore(org.castor.persist.TransactionContext,
org.exolab.castor.persist.OID, java.lang.Object, int,
java.lang.Object)
public void update(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode,
Object field)
throws PersistenceException
ResolverStrategy
update in interface ResolverStrategyupdate in class ManyRelationResolvertx - Transaction in actionoid - the object identity of the stored objectobject - the object to be storedsuggestedAccessMode - Suggested access modefield - The field value as returned by the SQLEngine
PersistenceException - If it is not possible to successfully complete this method.#update(org.castor.persist.TransactionContext,
org.exolab.castor.persist.OID, java.lang.Object,
org.exolab.castor.mapping.AccessMode, java.lang.Object)
public Object postCreate(TransactionContext tx,
OID oid,
Object object,
Object field,
Identity createdId)
ResolverStrategy
postCreate in interface ResolverStrategypostCreate in class ManyRelationResolvertx - transaction in actionoid - the object identity of the object to be created.object - the object to be createdfield - The field value as returned by the SQLEnginecreatedId - ???
#postCreate(org.castor.persist.TransactionContext,
org.exolab.castor.persist.OID, org.exolab.castor.persist.DepositBox,
java.lang.Object, org.exolab.castor.mapping.AccessMode,
java.lang.Object)
public boolean updateWhenNoTimestampSet(TransactionContext tx,
OID oid,
Object object,
AccessMode suggestedAccessMode)
throws PersistenceException
ResolverStrategy
tx - Transaction in actionoid - the object identity of the stored objectobject - the object to be storedsuggestedAccessMode - Suggested access mode
PersistenceException - If it is not possible to successfully complete this method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||