Package com.db4o.ta
Class TransparentPersistenceSupport
- java.lang.Object
-
- com.db4o.ta.TransparentActivationSupport
-
- com.db4o.ta.TransparentPersistenceSupport
-
- All Implemented Interfaces:
ConfigurationItem
public class TransparentPersistenceSupport extends TransparentActivationSupport
Enables Transparent Persistence and Transparent Activation behaviours for the current session.
configuration.add(new TransparentPersistenceSupport());- See Also:
TransparentActivationSupport
-
-
Constructor Summary
Constructors Constructor Description TransparentPersistenceSupport()
Creates a new instance of TransparentPersistenceSupport class with no rollback strategies defined.TransparentPersistenceSupport(RollbackStrategy rollbackStrategy)
Creates a new instance of TransparentPersistenceSupport class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(InternalObjectContainer container)
Configures current ObjectContainer to support Transparent Activation and Transparent Persistencevoid
prepare(Configuration configuration)
Gives a chance for the item to augment the configuration.-
Methods inherited from class com.db4o.ta.TransparentActivationSupport
activationProvider, isTransparentActivationEnabledOn
-
-
-
-
Constructor Detail
-
TransparentPersistenceSupport
public TransparentPersistenceSupport(RollbackStrategy rollbackStrategy)
Creates a new instance of TransparentPersistenceSupport class- Parameters:
rollbackStrategy
- RollbackStrategy interface implementation, which defines the actions to be taken on the object when the transaction is rolled back.
-
TransparentPersistenceSupport
public TransparentPersistenceSupport()
Creates a new instance of TransparentPersistenceSupport class with no rollback strategies defined.
-
-
Method Detail
-
apply
public void apply(InternalObjectContainer container)
Configures current ObjectContainer to support Transparent Activation and Transparent Persistence- Specified by:
apply
in interfaceConfigurationItem
- Overrides:
apply
in classTransparentActivationSupport
- Parameters:
container
- the ObjectContainer to configure- See Also:
TransparentActivationSupport.apply(InternalObjectContainer)
-
prepare
public void prepare(Configuration configuration)
Description copied from interface:ConfigurationItem
Gives a chance for the item to augment the configuration.- Specified by:
prepare
in interfaceConfigurationItem
- Overrides:
prepare
in classTransparentActivationSupport
- Parameters:
configuration
- the configuration that the item was added to
-
-