com.db4o.ta
Class TransparentActivationSupport
java.lang.Object
com.db4o.ta.TransparentActivationSupport
- All Implemented Interfaces:
- ConfigurationItem
- Direct Known Subclasses:
- TransparentPersistenceSupport
public class TransparentActivationSupport
- extends java.lang.Object
- implements ConfigurationItem
Configuration item that enables Transparent Activation Mode for this
session. TA mode should be switched on explicitly for manual TA implementation:
configuration.add(new TransparentActivationSupport());
- See Also:
TransparentPersistenceSupport
Method Summary |
void |
apply(com.db4o.internal.InternalObjectContainer container)
Configures the just opened ObjectContainer by setting event listeners,
which will be triggered when activation or de-activation is required. |
static boolean |
isTransparentActivationEnabledOn(com.db4o.internal.InternalObjectContainer container)
|
void |
prepare(Configuration configuration)
Gives a chance for the item to augment the configuration. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransparentActivationSupport
public TransparentActivationSupport()
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 interface ConfigurationItem
- Parameters:
configuration
- the configuration that the item was added to
apply
public void apply(com.db4o.internal.InternalObjectContainer container)
- Configures the just opened ObjectContainer by setting event listeners,
which will be triggered when activation or de-activation is required.
- Specified by:
apply
in interface ConfigurationItem
- Parameters:
container
- the ObjectContainer to configure- See Also:
TransparentPersistenceSupport.apply(InternalObjectContainer)
isTransparentActivationEnabledOn
public static boolean isTransparentActivationEnabledOn(com.db4o.internal.InternalObjectContainer container)
Copyright 2009 Versant Corporation. All rights reserved.