db4o 8.0

com.db4o.ta
Class TransparentActivationSupport

java.lang.Object
  extended by 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

Constructor Summary
TransparentActivationSupport()
           
 
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
 

Constructor Detail

TransparentActivationSupport

public TransparentActivationSupport()
Method Detail

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)

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.