|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.ta.TransparentActivationSupport
com.db4o.ta.TransparentPersistenceSupport
public class TransparentPersistenceSupport
Enables Transparent Persistence and Transparent Activation behaviours for
the current session.
configuration.add(new TransparentPersistenceSupport());
TransparentActivationSupport
Constructor Summary | |
---|---|
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 | |
---|---|
void |
apply(com.db4o.internal.InternalObjectContainer container)
Configures current ObjectContainer to support Transparent Activation and Transparent Persistence |
void |
prepare(Configuration configuration)
Gives a chance for the item to augment the configuration. |
Methods inherited from class com.db4o.ta.TransparentActivationSupport |
---|
isTransparentActivationEnabledOn |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransparentPersistenceSupport(RollbackStrategy rollbackStrategy)
rollbackStrategy
- RollbackStrategy interface implementation, which
defines the actions to be taken on the object when the transaction is rolled back.public TransparentPersistenceSupport()
Method Detail |
---|
public void apply(com.db4o.internal.InternalObjectContainer container)
apply
in interface ConfigurationItem
apply
in class TransparentActivationSupport
container
- the ObjectContainer to configureTransparentActivationSupport.apply(InternalObjectContainer)
public void prepare(Configuration configuration)
ConfigurationItem
prepare
in interface ConfigurationItem
prepare
in class TransparentActivationSupport
configuration
- the configuration that the item was added to
|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |