Package | Description |
---|---|
org.apache.empire.db |
This package contains the core Empire-DB implementation classes.
|
org.apache.empire.db.list |
Modifier and Type | Method and Description |
---|---|
protected <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 rowset
|
Modifier and Type | Method and Description |
---|---|
<T> T |
DBUtils.queryBean(DBCommandExpr cmd,
DBBeanListFactory<T> factory)
queries a single Java Bean for a given command
|
<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> void |
DBRowSet.setBeanType(Class<T> beanType,
DBBeanListFactory<T> factory)
sets the bean type for this rowset
|
Modifier and Type | Class and Description |
---|---|
class |
DBBeanListFactoryImpl<T>
DBRecordListFactoryImpl
Implements the DBRecordListFactory interface
|
Modifier and Type | Method and Description |
---|---|
static <T> DBBeanListFactory<T> |
DBBeanFactoryCache.getFactoryForType(Class<T> beanType)
Returns the DBRowSet instance assigned to a particular Java bean type
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
DBBeanFactoryCache.setFactoryForType(Class<?> beanType,
DBBeanListFactory<T> factory)
sets the DBRowSet instance assigned to a particular Java bean type
|
Modifier and Type | Method and Description |
---|---|
static void |
DBBeanFactoryCache.setMapImplementation(Map<Class<?>,DBBeanListFactory<?>> map)
Allows to provide a different implementation of the bean factory map
|
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.