Class ColumnMappingFactory

java.lang.Object
org.datanucleus.store.rdbms.mapping.column.ColumnMappingFactory

public final class ColumnMappingFactory extends Object
Factory class for creating ColumnMapping instances.
  • Field Details

    • DATASTORE_MAPPING_CONSTRUCTOR_BY_CLASS

      private static Map<Class<? extends ColumnMapping>,Constructor> DATASTORE_MAPPING_CONSTRUCTOR_BY_CLASS
      cache of constructors keyed by mapping class
    • DATASTORE_MAPPING_CTR_ARG_CLASSES

      private static final 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 created
      mapping - The java mapping type
      storeMgr - The Store Manager
      column - The column to map
      Returns:
      The ColumnMapping