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 SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(InternalObjectContainer container)Configures current ObjectContainer to support Transparent Activation and Transparent Persistencevoidprepare(Configuration configuration)Gives a chance for the item to augment the configuration.- 
Methods inherited from class com.db4o.ta.TransparentActivationSupportactivationProvider, isTransparentActivationEnabledOn
 
- 
 
- 
- 
- 
Constructor Detail- 
TransparentPersistenceSupportpublic 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.
 
 - 
TransparentPersistenceSupportpublic TransparentPersistenceSupport() Creates a new instance of TransparentPersistenceSupport class with no rollback strategies defined.
 
- 
 - 
Method Detail- 
applypublic void apply(InternalObjectContainer container) Configures current ObjectContainer to support Transparent Activation and Transparent Persistence- Specified by:
- applyin interface- ConfigurationItem
- Overrides:
- applyin class- TransparentActivationSupport
- Parameters:
- container- the ObjectContainer to configure
- See Also:
- TransparentActivationSupport.apply(InternalObjectContainer)
 
 - 
preparepublic void prepare(Configuration configuration) Description copied from interface:ConfigurationItemGives a chance for the item to augment the configuration.- Specified by:
- preparein interface- ConfigurationItem
- Overrides:
- preparein class- TransparentActivationSupport
- Parameters:
- configuration- the configuration that the item was added to
 
 
- 
 
-