Package org.apache.openjpa.datacache
Class DataCachePCDataGenerator
- java.lang.Object
-
- org.apache.openjpa.enhance.DynamicStorageGenerator
-
- org.apache.openjpa.enhance.PCDataGenerator
-
- org.apache.openjpa.datacache.DataCachePCDataGenerator
-
public class DataCachePCDataGenerator extends PCDataGenerator
APCDataGenerator
instance which generates properly synchronized instances suitable for use in the cache. In addition, proper timed behavior is added.- Since:
- 0.3.3.0
- Author:
- Steve Kim
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DataCachePCDataGenerator.Timed
Simple interface to give access to expiration time.-
Nested classes/interfaces inherited from class org.apache.openjpa.enhance.PCDataGenerator
PCDataGenerator.DynamicPCData
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
POSTFIX
-
Fields inherited from class org.apache.openjpa.enhance.DynamicStorageGenerator
POLICY_EMPTY, POLICY_EXCEPTION, POLICY_SILENT
-
-
Constructor Summary
Constructors Constructor Description DataCachePCDataGenerator(OpenJPAConfiguration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
decorate(ClassNodeTracker cnt, ClassMetaData meta)
Apply additional decoration to generated class.protected void
finish(PCDataGenerator.DynamicPCData data, ClassMetaData meta)
Perform any final actions before the pcdata is returned to client code.protected java.lang.String
getUniqueName(java.lang.Class type)
Creates a unique name for the given type's pcdata implementation.-
Methods inherited from class org.apache.openjpa.enhance.PCDataGenerator
addVersionMethods, declareClasses, decorate, generatePCData, getClassName, getConfiguration, getCreateFieldMethods, getType, replaceType, usesImplData, usesImplData, usesIntermediate
-
Methods inherited from class org.apache.openjpa.enhance.DynamicStorageGenerator
addBeanField, createFactory, forType, generateStorage, getFieldAccess, getFieldName, getWrapper, getWrapper, isCompatible
-
-
-
-
Field Detail
-
POSTFIX
public static final java.lang.String POSTFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataCachePCDataGenerator
public DataCachePCDataGenerator(OpenJPAConfiguration conf)
-
-
Method Detail
-
getUniqueName
protected java.lang.String getUniqueName(java.lang.Class type)
Description copied from class:PCDataGenerator
Creates a unique name for the given type's pcdata implementation.- Overrides:
getUniqueName
in classPCDataGenerator
-
finish
protected void finish(PCDataGenerator.DynamicPCData data, ClassMetaData meta)
Description copied from class:PCDataGenerator
Perform any final actions before the pcdata is returned to client code.- Overrides:
finish
in classPCDataGenerator
-
decorate
protected void decorate(ClassNodeTracker cnt, ClassMetaData meta)
Description copied from class:PCDataGenerator
Apply additional decoration to generated class.- Overrides:
decorate
in classPCDataGenerator
-
-