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 ActivationDepth
activationDepth(int depth, ActivationMode mode)
Returns an ActivationDepth that will activate at most *depth* levels.ActivationDepth
activationDepthFor(ClassMetadata classMetadata, ActivationMode mode)
Returns an ActivationDepth suitable for the specified class and activation mode.void
addModified(java.lang.Object object, Transaction transaction)
void
enableTransparentPersistenceSupportFor(InternalObjectContainer container, RollbackStrategy rollbackStrategy)
void
removeModified(java.lang.Object object, Transaction transaction)
protected Transaction
transactionFrom(EventArgs args)
-
-
-
Method Detail
-
activationDepth
public ActivationDepth activationDepth(int depth, ActivationMode mode)
Description copied from interface:ActivationDepthProvider
Returns 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:
activationDepth
in interfaceActivationDepthProvider
- Returns:
-
activationDepthFor
public ActivationDepth activationDepthFor(ClassMetadata classMetadata, ActivationMode mode)
Description copied from interface:ActivationDepthProvider
Returns an ActivationDepth suitable for the specified class and activation mode.- Specified by:
activationDepthFor
in 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:
enableTransparentPersistenceSupportFor
in interfaceTransparentActivationDepthProvider
-
transactionFrom
protected Transaction transactionFrom(EventArgs args)
-
addModified
public void addModified(java.lang.Object object, Transaction transaction)
- Specified by:
addModified
in interfaceTransparentActivationDepthProvider
-
removeModified
public void removeModified(java.lang.Object object, Transaction transaction)
- Specified by:
removeModified
in interfaceTransparentActivationDepthProvider
-
-