Package org.castor.persist.resolver
Class BaseRelationResolver
java.lang.Object
org.castor.persist.resolver.BaseRelationResolver
- All Implemented Interfaces:
ResolverStrategy
- Direct Known Subclasses:
ManyRelationResolver
,PersistanceCapableRelationResolver
,PrimitiveResolver
,SerializableResolver
Abstract base of a
ResolverStrategy
implementation for any kind of relation.- Since:
- 1.3.2
- Author:
- Michael Schroeder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClassMolder
AssociatedClassMolder
.protected FieldMolder
AssociatedFieldMolder
. -
Constructor Summary
ConstructorsConstructorDescriptionBaseRelationResolver
(ClassMolder classMolder, FieldMolder fieldMolder) Creates an instance of BasicRelationResolver. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether 'cascading create' mode has been requested.boolean
Indicates whether 'cascading delete' mode has been requested.boolean
Indicates whether 'cascading update' mode has been requested.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.castor.persist.resolver.ResolverStrategy
create, expireCache, load, markCreate, markDelete, postCreate, preStore, removeRelation, revertObject, store, update, updateCache, updateWhenNoTimestampSet
-
Field Details
-
_classMolder
AssociatedClassMolder
. -
_fieldMolder
AssociatedFieldMolder
.
-
-
Constructor Details
-
BaseRelationResolver
Creates an instance of BasicRelationResolver.- Parameters:
classMolder
- AssociatedClassMolder
fieldMolder
- AssociatedFieldMolder
-
-
Method Details
-
isCascadingCreate
Indicates whether 'cascading create' mode has been requested.- Parameters:
tx
- The active transaction.- Returns:
- True if 'cascading create' has been requested.
-
isCascadingDelete
public boolean isCascadingDelete()Indicates whether 'cascading delete' mode has been requested.- Parameters:
tx
- The active transaction.- Returns:
- True if 'cascading delete' has been requested.
-
isCascadingUpdate
Indicates whether 'cascading update' mode has been requested.- Parameters:
tx
- The active transaction.- Returns:
- True if 'cascading update' has been requested.
-