Class ColumnMappingFactory
java.lang.Object
org.datanucleus.store.rdbms.mapping.column.ColumnMappingFactory
Factory class for creating ColumnMapping instances.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Map
<Class<? extends ColumnMapping>, Constructor> cache of constructors keyed by mapping classprivate static final Class[]
constructor arguments -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Private constructor to prevent instantiation. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnMapping
createMapping
(Class<? extends ColumnMapping> mappingClass, JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column column) Get a new instance of the ColumnMapping using the mapping, StoreManager and column.
-
Field Details
-
DATASTORE_MAPPING_CONSTRUCTOR_BY_CLASS
private static Map<Class<? extends ColumnMapping>,Constructor> DATASTORE_MAPPING_CONSTRUCTOR_BY_CLASScache of constructors keyed by mapping class -
DATASTORE_MAPPING_CTR_ARG_CLASSES
constructor arguments
-
-
Constructor Details
-
ColumnMappingFactory
private ColumnMappingFactory()Private constructor to prevent instantiation.
-
-
Method Details
-
createMapping
public static ColumnMapping createMapping(Class<? extends ColumnMapping> mappingClass, JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column column) Get a new instance of the ColumnMapping using the mapping, StoreManager and column.- Parameters:
mappingClass
- the Mapping class to be createdmapping
- The java mapping typestoreMgr
- The Store Managercolumn
- The column to map- Returns:
- The ColumnMapping
-