Class ColumnMappingFactory
- java.lang.Object
-
- org.datanucleus.store.rdbms.mapping.column.ColumnMappingFactory
-
public final class ColumnMappingFactory extends java.lang.ObjectFactory class for creating ColumnMapping instances.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.Class<? extends ColumnMapping>,java.lang.reflect.Constructor>DATASTORE_MAPPING_CONSTRUCTOR_BY_CLASScache of constructors keyed by mapping classprivate static java.lang.Class[]DATASTORE_MAPPING_CTR_ARG_CLASSESconstructor arguments
-
Constructor Summary
Constructors Modifier Constructor Description privateColumnMappingFactory()Private constructor to prevent instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ColumnMappingcreateMapping(java.lang.Class<? extends ColumnMapping> mappingClass, JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column column)Get a new instance of the ColumnMapping using the mapping, StoreManager and column.
-
-
-
Field Detail
-
DATASTORE_MAPPING_CONSTRUCTOR_BY_CLASS
private static java.util.Map<java.lang.Class<? extends ColumnMapping>,java.lang.reflect.Constructor> DATASTORE_MAPPING_CONSTRUCTOR_BY_CLASS
cache of constructors keyed by mapping class
-
DATASTORE_MAPPING_CTR_ARG_CLASSES
private static final java.lang.Class[] DATASTORE_MAPPING_CTR_ARG_CLASSES
constructor arguments
-
-
Method Detail
-
createMapping
public static ColumnMapping createMapping(java.lang.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
-
-