Class DBBeanListFactoryImpl<T>

java.lang.Object
org.apache.empire.db.list.DBBeanListFactoryImpl<T>
All Implemented Interfaces:
DBBeanListFactory<T>

public class DBBeanListFactoryImpl<T> extends Object implements DBBeanListFactory<T>
DBRecordListFactoryImpl Implements the DBRecordListFactory interface
Author:
rainer
  • Field Details

    • constructor

      protected final Constructor<T> constructor
    • parameterTypes

      protected final Class<?>[] parameterTypes
    • constructorParams

      protected final List<? extends DBColumnExpr> constructorParams
    • setterColumns

      protected final List<? extends DBColumnExpr> setterColumns
  • Constructor Details

    • DBBeanListFactoryImpl

      public DBBeanListFactoryImpl(Constructor<T> constructor, List<? extends DBColumnExpr> constructorParams, List<? extends DBColumnExpr> setterColumns)
      Constructs a DBRecordListFactoryImpl based on an DBRecord constructor
      Parameters:
      constructor - the constructor to be used to create the bean
      constructorParams - (optional) the columns to be used for the constructor. Must match the constructor!
      setterColumns - (optional) the columns to be set through setter methods. List may include constructorParams
    • DBBeanListFactoryImpl

      public DBBeanListFactoryImpl(Class<T> beanType, List<? extends DBColumnExpr> selectColumns)
      Constructs a DBRecordListFactoryImpl based on an DBRecord class
      Parameters:
      beanType - the bean type to be instantiated
      selectColumns - (optional) the columns to be selected
    • DBBeanListFactoryImpl

      protected DBBeanListFactoryImpl(Class<T> beanType, List<? extends DBColumnExpr> keyColumns, List<? extends DBColumnExpr> selectColumns)
      Constructs a DBRecordListFactoryImpl based on an DBRecord class
      Parameters:
      beanType - the bean type to be instantiated
      keyColumns - (optional) the columns to be used for the constructor
      selectColumns - (optional) the columns to be set through setter methods. List may include constructorParams
    • DBBeanListFactoryImpl

      public DBBeanListFactoryImpl(Class<T> beanType, Column[] keyColumns, List<? extends DBColumnExpr> selectColumns)
      Constructs a DBRecordListFactoryImpl based on an DBRecord class
      Parameters:
      beanType - the bean type to be instantiated
      keyColumns - (optional) the columns to be used for the constructor. Important: Must be a DBColumn array!
      selectColumns - (optional) the columns to be set through setter methods. List may include constructorParams
  • Method Details