Class ColumnMappingFactory


  • public final class ColumnMappingFactory
    extends java.lang.Object
    Factory class for creating ColumnMapping instances.
    • 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
    • Constructor Detail

      • ColumnMappingFactory

        private ColumnMappingFactory()
        Private constructor to prevent instantiation.
    • 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 created
        mapping - The java mapping type
        storeMgr - The Store Manager
        column - The column to map
        Returns:
        The ColumnMapping