Class DBBeanFactoryCache

java.lang.Object
org.apache.empire.db.list.DBBeanFactoryCache

public final class DBBeanFactoryCache extends Object
DBBeanFactoryCache
Author:
rainer
  • Field Details

    • log

      protected static final org.slf4j.Logger log
  • Constructor Details

    • DBBeanFactoryCache

      public DBBeanFactoryCache()
  • Method Details

    • setMapImplementation

      public static void setMapImplementation(Map<Class<?>,DBBeanListFactory<?>> map)
      Allows to provide a different implementation of the bean factory map
      Parameters:
      map - the map to use
    • getFactoryForType

      public static <T> DBBeanListFactory<T> getFactoryForType(Class<T> beanType)
      Returns the DBRowSet instance assigned to a particular Java bean type
      Parameters:
      beanType - the Java bean type
      Returns:
      return the DBRowSet assigned to this type
    • setFactoryForType

      public static <T> void setFactoryForType(Class<?> beanType, DBBeanListFactory<T> factory)
      sets the DBRowSet instance assigned to a particular Java bean type
      Parameters:
      beanType - the Java bean type