Package org.apache.empire.db.list
Class DBBeanFactoryCache
java.lang.Object
org.apache.empire.db.list.DBBeanFactoryCache
DBBeanFactoryCache
- Author:
- rainer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DBBeanListFactory<T>getFactoryForType(Class<T> beanType) Returns the DBRowSet instance assigned to a particular Java bean typestatic <T> voidsetFactoryForType(Class<?> beanType, DBBeanListFactory<T> factory) sets the DBRowSet instance assigned to a particular Java bean typestatic voidsetMapImplementation(Map<Class<?>, DBBeanListFactory<?>> map) Allows to provide a different implementation of the bean factory map
-
Field Details
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
DBBeanFactoryCache
public DBBeanFactoryCache()
-
-
Method Details
-
setMapImplementation
Allows to provide a different implementation of the bean factory map- Parameters:
map- the map to use
-
getFactoryForType
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
sets the DBRowSet instance assigned to a particular Java bean type- Parameters:
beanType- the Java bean type
-