Uses of Interface
org.apache.empire.db.list.DBBeanListFactory
Packages that use DBBeanListFactory
Package
Description
This package contains the core Empire-DB implementation classes.
-
Uses of DBBeanListFactory in org.apache.empire.db
Methods in org.apache.empire.db that return DBBeanListFactoryModifier and TypeMethodDescriptionprotected <T> DBBeanListFactory<T>DBUtils.createDefaultBeanListFactory(Class<T> beanType, Column[] keyColumns, List<? extends DBColumnExpr> selectColumns) Crates a default DBBeanListFactory for Java bean class The DBRecord class must provide either a standard construtor with correspondig property set fundtions or a constructor using the fields of the query<T> DBBeanListFactory<T>DBUtils.getCommandBeanListFactory(Class<T> beanType, DBCommandExpr cmd) gets or creates DBBeanListFactory for the given rowset<T> DBBeanListFactory<T>DBUtils.getRowsetBeanListFactory(Class<T> beanType, DBRowSet rowset) gets or creates DBBeanListFactory for the given rowsetMethods in org.apache.empire.db with parameters of type DBBeanListFactoryModifier and TypeMethodDescription<T> TDBUtils.queryBean(DBCommandExpr cmd, DBBeanListFactory<T> factory) queries a single Java Bean for a given commandfinal <T> List<T>DBUtils.queryBeanList(DBCommandExpr cmd, DBBeanListFactory<T> factory, Object parent) Queries a list of Java beans for a given command<T> List<T>DBUtils.queryBeanList(DBCommandExpr cmd, DBBeanListFactory<T> factory, Object parent, int first, int pageSize) Query a list of simple Java objects (beans)<T> voidDBRowSet.setBeanType(Class<T> beanType, DBBeanListFactory<T> factory) sets the bean type for this rowset -
Uses of DBBeanListFactory in org.apache.empire.db.list
Classes in org.apache.empire.db.list that implement DBBeanListFactoryModifier and TypeClassDescriptionclassDBRecordListFactoryImpl Implements the DBRecordListFactory interfaceMethods in org.apache.empire.db.list that return DBBeanListFactoryModifier and TypeMethodDescriptionstatic <T> DBBeanListFactory<T>DBBeanFactoryCache.getFactoryForType(Class<T> beanType) Returns the DBRowSet instance assigned to a particular Java bean typeMethods in org.apache.empire.db.list with parameters of type DBBeanListFactoryModifier and TypeMethodDescriptionstatic <T> voidDBBeanFactoryCache.setFactoryForType(Class<?> beanType, DBBeanListFactory<T> factory) sets the DBRowSet instance assigned to a particular Java bean typeMethod parameters in org.apache.empire.db.list with type arguments of type DBBeanListFactoryModifier and TypeMethodDescriptionstatic voidDBBeanFactoryCache.setMapImplementation(Map<Class<?>, DBBeanListFactory<?>> map) Allows to provide a different implementation of the bean factory map