Package com.db4o.internal.activation
Class TransparentActivationDepthProviderImpl
- java.lang.Object
-
- com.db4o.internal.activation.TransparentActivationDepthProviderImpl
-
- All Implemented Interfaces:
ActivationDepthProvider,TransparentActivationDepthProvider
public class TransparentActivationDepthProviderImpl extends java.lang.Object implements ActivationDepthProvider, TransparentActivationDepthProvider
-
-
Field Summary
Fields Modifier and Type Field Description boolean_transparentPersistenceIsEnabled
-
Constructor Summary
Constructors Constructor Description TransparentActivationDepthProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivationDepthactivationDepth(int depth, ActivationMode mode)Returns an ActivationDepth that will activate at most *depth* levels.ActivationDepthactivationDepthFor(ClassMetadata classMetadata, ActivationMode mode)Returns an ActivationDepth suitable for the specified class and activation mode.voidaddModified(java.lang.Object object, Transaction transaction)voidenableTransparentPersistenceSupportFor(InternalObjectContainer container, RollbackStrategy rollbackStrategy)voidremoveModified(java.lang.Object object, Transaction transaction)protected TransactiontransactionFrom(EventArgs args)
-
-
-
Method Detail
-
activationDepth
public ActivationDepth activationDepth(int depth, ActivationMode mode)
Description copied from interface:ActivationDepthProviderReturns an ActivationDepth that will activate at most *depth* levels. A special case is Integer.MAX_VALUE (int.MaxValue for .net) for which a FullActivationDepth object must be returned.- Specified by:
activationDepthin interfaceActivationDepthProvider- Returns:
-
activationDepthFor
public ActivationDepth activationDepthFor(ClassMetadata classMetadata, ActivationMode mode)
Description copied from interface:ActivationDepthProviderReturns an ActivationDepth suitable for the specified class and activation mode.- Specified by:
activationDepthForin interfaceActivationDepthProvider- Parameters:
classMetadata- root class that's being activatedmode- activation mode- Returns:
- an appropriate ActivationDepth for the class and activation mode
-
enableTransparentPersistenceSupportFor
public void enableTransparentPersistenceSupportFor(InternalObjectContainer container, RollbackStrategy rollbackStrategy)
- Specified by:
enableTransparentPersistenceSupportForin interfaceTransparentActivationDepthProvider
-
transactionFrom
protected Transaction transactionFrom(EventArgs args)
-
addModified
public void addModified(java.lang.Object object, Transaction transaction)- Specified by:
addModifiedin interfaceTransparentActivationDepthProvider
-
removeModified
public void removeModified(java.lang.Object object, Transaction transaction)- Specified by:
removeModifiedin interfaceTransparentActivationDepthProvider
-
-