程序包 gu.sql2java

接口 TableManager<B extends BaseBean>

所有超级接口:
SqlRunner

public interface TableManager<B extends BaseBean> extends SqlRunner
Interface to handle database calls (save, load, count, etc...) for table.
作者:
guyadong
  • 方法详细资料

    • createBean

      B createBean()
      Creates a new B instance.
      返回:
      the new B instance
    • countAll

      int countAll() throws RuntimeDaoException
      Retrieves the number of rows of the table.
      返回:
      the number of rows returned
      抛出:
      RuntimeDaoException
    • countUsingTemplate

      int countUsingTemplate(B bean) throws RuntimeDaoException
      count the number of elements of a specific bean
      参数:
      bean - the bean to look for ant count
      返回:
      the number of rows returned
      抛出:
      RuntimeDaoException
    • countUsingTemplate

      int countUsingTemplate(B bean, int searchType) throws RuntimeDaoException
      count the number of elements of a specific bean given the search type
      参数:
      bean - the template to look for
      searchType - exact ? like ? starting like ? ending link ?
      0 Constant.SEARCH_EXACT
      1 Constant.SEARCH_LIKE
      2 Constant.SEARCH_STARTING_LIKE
      3 Constant.SEARCH_ENDING_LIKE
      返回:
      the number of rows returned
      抛出:
      RuntimeDaoException
    • countWhere

      int countWhere(String where) throws RuntimeDaoException
      Retrieves the number of rows of the table with a 'where' clause. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      where - the restriction clause
      返回:
      the number of rows returned
      抛出:
      RuntimeDaoException
    • rowCountWhere

      int rowCountWhere(String where, Object... argList) throws RuntimeDaoException
      Retrieves the number of rows of the table with a 'where' clause. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      where - the restriction clause
      argList - the arguments to use fill given prepared statement,may be null
      返回:
      the number of rows returned
      抛出:
      RuntimeDaoException
    • deleteAll

      int deleteAll() throws RuntimeDaoException
      Deletes all rows from table.
      返回:
      the number of deleted rows.
      抛出:
      RuntimeDaoException
    • deleteByWhere

      int deleteByWhere(String where) throws RuntimeDaoException
      Deletes rows from the table using a 'where' clause. It is up to you to pass the 'WHERE' in your where clauses.
      Attention, if 'WHERE' is omitted it will delete all records.
      参数:
      where - the sql 'where' clause
      返回:
      the number of deleted rows
      抛出:
      RuntimeDaoException
    • deleteUsingTemplate

      int deleteUsingTemplate(B bean) throws RuntimeDaoException
      Deletes rows using a template.
      参数:
      bean - the template object(s) to be deleted
      返回:
      the number of deleted objects
      抛出:
      RuntimeDaoException
    • deleteByPrimaryKey

      int deleteByPrimaryKey(Object... keys) throws RuntimeDaoException
      Delete row according to its primary keys.
      参数:
      keys - primary keys value
      for fd_face table
      PK# 1 fd_face.id type Integer
      for fd_feature table
      PK# 1 fd_feature.md5 type String
      for fd_image table
      PK# 1 fd_image.md5 type String
      for fd_store table
      PK# 1 fd_store.md5 type String
      返回:
      the number of deleted rows
      抛出:
      RuntimeDaoException
    • delete

      int delete(B bean) throws RuntimeDaoException
      Delete row according to primary keys of bean.
      参数:
      bean - will be deleted ,all keys must not be null
      返回:
      the number of deleted rows,0 returned if bean is null
      抛出:
      RuntimeDaoException
    • delete

      int delete(B... beans) throws RuntimeDaoException
      Delete beans.
      参数:
      beans - B array will be deleted
      返回:
      the number of deleted rows
      抛出:
      RuntimeDaoException
    • delete

      int delete(Collection<B> beans) throws RuntimeDaoException
      Delete beans.
      参数:
      beans - B collection will be deleted
      返回:
      the number of deleted rows
      抛出:
      RuntimeDaoException
    • setValueIfNonNull

      boolean setValueIfNonNull(B bean, String column, Object value)
      set a value to the given field in bean if the given field of old record in database is not null
      参数:
      bean -
      column - column name
      value -
      返回:
      true if not equal with old record in database,otherwise false
      从以下版本开始:
      3.15.4
    • setValueIfNonEqual

      boolean setValueIfNonEqual(B bean, String column, Object value)
      set a value to the given field in bean if value is not equal to the given field of old record in database
      参数:
      bean -
      column - column name
      value -
      返回:
      true if not equal with old record in database,otherwise false
      从以下版本开始:
      3.15.4
    • loadAll

      B[] loadAll() throws RuntimeDaoException
      Loads all the rows from table.
      返回:
      an array of B bean
      抛出:
      RuntimeDaoException
    • loadAll

      int loadAll(TableManager.Action<B> action) throws RuntimeDaoException
      Loads each row from table and dealt with action.
      参数:
      action - Action object for do something(not null)
      返回:
      the count dealt by action
      抛出:
      RuntimeDaoException
    • loadAll

      B[] loadAll(int startRow, int numRows) throws RuntimeDaoException
      Loads the given number of rows from table, given the start row.
      参数:
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      返回:
      an array of B bean
      抛出:
      RuntimeDaoException
    • loadAll

      int loadAll(int startRow, int numRows, TableManager.Action<B> action) throws RuntimeDaoException
      Loads the given number of rows from table, given the start row and dealt with action.
      参数:
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      action - Action object for do something(not null)
      返回:
      the count dealt by action
      抛出:
      RuntimeDaoException
    • loadAllAsList

      List<B> loadAllAsList() throws RuntimeDaoException
      Loads all the rows from table.
      返回:
      a list of B bean
      抛出:
      RuntimeDaoException
    • loadAllAsList

      List<B> loadAllAsList(int startRow, int numRows) throws RuntimeDaoException
      Loads the given number of rows from table, given the start row.
      参数:
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      返回:
      a list of B bean
      抛出:
      RuntimeDaoException
    • loadByPrimaryKey

      B loadByPrimaryKey(B bean) throws RuntimeDaoException
      Loads a B bean from the table using primary key fields of bean.
      参数:
      bean - the B bean with primary key fields
      返回:
      a unique B or null if not found or bean is null
      抛出:
      RuntimeDaoException
    • loadByPrimaryKeyChecked

      B loadByPrimaryKeyChecked(B bean) throws RuntimeDaoException, ObjectRetrievalException
      参数:
      bean -
      返回:
      a unique B ,otherwise throw exception
      抛出:
      ObjectRetrievalException - not found
      RuntimeDaoException
    • loadByPrimaryKey

      B loadByPrimaryKey(Object... keys) throws RuntimeDaoException
      Loads a B bean from the table using primary key fields. when you don't know which is primary key of table,you can use the method.
      参数:
      keys - primary keys value:
      for fd_face table
      PK# 1 fd_face.id type Integer
      for fd_feature table
      PK# 1 fd_feature.md5 type String
      for fd_image table
      PK# 1 fd_image.md5 type String
      for fd_store table
      PK# 1 fd_store.md5 type String
      返回:
      a unique B or null if not found
      抛出:
      RuntimeDaoException
    • loadByPrimaryKeyChecked

      B loadByPrimaryKeyChecked(Object... keys) throws RuntimeDaoException, ObjectRetrievalException
      参数:
      keys -
      返回:
      a unique B,otherwise throw exception
      抛出:
      ObjectRetrievalException - not found
      RuntimeDaoException
    • existsPrimaryKey

      boolean existsPrimaryKey(Object... keys) throws RuntimeDaoException
      Returns true if this table contains row with primary key fields.
      参数:
      keys - primary keys value
      抛出:
      RuntimeDaoException
      另请参阅:
    • existsByPrimaryKey

      boolean existsByPrimaryKey(B bean) throws RuntimeDaoException
      Returns true if this table contains row specified by primary key fields of B.
      when you don't know which is primary key of table,you can use the method.
      参数:
      bean - the B bean with primary key fields
      抛出:
      RuntimeDaoException
      另请参阅:
    • checkDuplicate

      B checkDuplicate(B bean) throws RuntimeDaoException, ObjectRetrievalException
      Check duplicated row by primary keys,if row exists throw exception
      参数:
      bean - the B bean with primary key fields
      返回:
      always bean
      抛出:
      ObjectRetrievalException - has duplicated record
      RuntimeDaoException
      另请参阅:
    • loadByWhere

      B[] loadByWhere(String where) throws RuntimeDaoException
      Retrieves an array of B given a sql 'where' clause.
      参数:
      where - the sql 'where' clause
      抛出:
      RuntimeDaoException
    • loadByWhere

      int loadByWhere(String where, TableManager.Action<B> action) throws RuntimeDaoException
      Retrieves each row of B bean given a sql 'where' clause and dealt with action.
      参数:
      where - the sql 'where' clause
      action - Action object for do something(not null)
      返回:
      the count dealt by action
      抛出:
      RuntimeDaoException
    • loadByWhere

      B[] loadByWhere(String where, int[] fieldList) throws RuntimeDaoException
      Retrieves an array of B bean given a sql where clause, and a list of fields. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      where - the sql 'WHERE' clause
      fieldList - array of field's ID
      抛出:
      RuntimeDaoException
    • loadByWhere

      int loadByWhere(String where, int[] fieldList, TableManager.Action<B> action) throws RuntimeDaoException
      Retrieves each row of B bean given a sql where clause, and a list of fields, and dealt with action. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      where - the sql 'WHERE' clause
      fieldList - array of field's ID
      action - Action object for do something(not null)
      返回:
      the count dealt by action
      抛出:
      RuntimeDaoException
    • loadByWhere

      B[] loadByWhere(String where, int[] fieldList, int startRow, int numRows) throws RuntimeDaoException
      Retrieves an array of B bean given a sql where clause and a list of fields, and startRow and numRows. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      where - the sql 'where' clause
      fieldList - table of the field's associated constants
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      抛出:
      RuntimeDaoException
    • loadByWhere

      int loadByWhere(String where, int[] fieldList, int startRow, int numRows, TableManager.Action<B> action) throws RuntimeDaoException
      Retrieves each row of B bean given a sql where clause and a list of fields, and startRow and numRows, and dealt with action. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      where - the sql 'where' clause
      fieldList - table of the field's associated constants
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      action - Action object for do something(not null)
      返回:
      the count dealt by action
      抛出:
      RuntimeDaoException
    • loadByWhereAsList

      List<B> loadByWhereAsList(String where) throws RuntimeDaoException
      Retrieves a list of B bean given a sql 'where' clause.
      参数:
      where - the sql 'where' clause
      抛出:
      RuntimeDaoException
    • loadByJoinWhereAsList

      List<B> loadByJoinWhereAsList(String join, String where) throws RuntimeDaoException
      Retrieves a list of B bean given a sql 'where' clause.
      参数:
      join - the sql 'join' clause
      where - the sql 'where' clause
      抛出:
      RuntimeDaoException
    • loadByWhereAsList

      List<B> loadByWhereAsList(String where, int[] fieldList) throws RuntimeDaoException
      Retrieves a list of B bean given a sql where clause, and a list of fields. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      where - the sql 'WHERE' clause
      fieldList - array of field's ID
      抛出:
      RuntimeDaoException
    • loadByJoinWhereAsList

      List<B> loadByJoinWhereAsList(String join, String where, Object[] argList, int[] fieldList) throws RuntimeDaoException
      Retrieves a list of B bean given a sql where clause, and a list of fields. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      join - the sql 'join' clause
      where - the sql 'WHERE' clause
      argList - the arguments to use fill given prepared statement,may be null
      fieldList - array of field's ID
      抛出:
      RuntimeDaoException
    • loadByWhereAsList

      List<B> loadByWhereAsList(String where, int[] fieldList, int startRow, int numRows) throws RuntimeDaoException
      Retrieves a list of B bean given a sql where clause and a list of fields, and startRow and numRows. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      where - the sql 'where' clause
      fieldList - table of the field's associated constants
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      抛出:
      RuntimeDaoException
    • loadByJoinWhereAsList

      List<B> loadByJoinWhereAsList(String join, String where, int[] fieldList, int startRow, int numRows) throws RuntimeDaoException
      Retrieves a list of B bean given a sql where clause and a list of fields, and startRow and numRows. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      join - the sql 'join' clause
      where - the sql 'where' clause
      fieldList - table of the field's associated constants
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      抛出:
      RuntimeDaoException
    • loadByJoinWhereAsList

      <T> List<T> loadByJoinWhereAsList(String join, String where, Object[] argList, int[] fieldList, int startRow, int numRows, com.google.common.base.Function<B,T> transformer) throws RuntimeDaoException
      Retrieves a list of T bean given a sql where clause and a list of fields, and startRow and numRows. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      join - the sql 'join' clause
      where - the sql 'where' clause
      argList - the arguments to use fill given prepared statement,may be null
      fieldList - table of the field's associated constants
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      transformer - cast B to T
      抛出:
      RuntimeDaoException
    • loadByWhereForAction

      int loadByWhereForAction(String where, Object[] argList, int[] fieldList, int startRow, int numRows, TableManager.Action<B> action) throws RuntimeDaoException
      Retrieves each row of B bean given a sql where clause and a list of fields, and startRow and numRows, and dealt wity action It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      where - the sql 'where' clause
      argList - the arguments to use fill given prepared statement,may be null
      fieldList - table of the field's associated constants
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      action - Action object for do something(not null)
      返回:
      the count dealt by action
      抛出:
      RuntimeDaoException
    • loadByJoinWhereForAction

      int loadByJoinWhereForAction(String join, String where, Object[] argList, int[] fieldList, int startRow, int numRows, TableManager.Action<B> action) throws RuntimeDaoException
      Retrieves each row of B bean given a sql where clause and a list of fields, and startRow and numRows, and dealt with action. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      join - the sql 'join' clause
      where - the sql 'where' clause
      argList - the arguments to use fill given prepared statement,may be null
      fieldList - table of the field's associated constants
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      action - Action object for do something(not null)
      返回:
      the count dealt by action
      抛出:
      RuntimeDaoException
    • loadUniqueUsingTemplate

      B loadUniqueUsingTemplate(B bean) throws RuntimeDaoException
      Loads a unique B bean from a template one giving a c
      参数:
      bean - the B bean to look for
      返回:
      the bean matching the template,or null if not found or null input argument
      抛出:
      ObjectRetrievalException - more than one row
      RuntimeDaoException
    • loadUniqueUsingTemplateChecked

      B loadUniqueUsingTemplateChecked(B bean) throws RuntimeDaoException, ObjectRetrievalException
      Loads a unique B bean from a template one giving a c
      参数:
      bean - the B bean to look for
      返回:
      the bean matching the template
      抛出:
      ObjectRetrievalException - not found or more than one row
      RuntimeDaoException
    • loadUsingTemplate

      B[] loadUsingTemplate(B bean) throws RuntimeDaoException
      Loads an array of B from a template one.
      参数:
      bean - the B bean template to look for
      返回:
      all the B beans matching the template
      抛出:
      RuntimeDaoException
    • loadUsingTemplate

      int loadUsingTemplate(B bean, TableManager.Action<B> action) throws RuntimeDaoException
      Loads each row from a template one and dealt with action.
      参数:
      bean - the B bean template to look for
      action - Action object for do something(not null)
      返回:
      the count dealt by action
      抛出:
      RuntimeDaoException
    • loadUsingTemplate

      B[] loadUsingTemplate(B bean, int startRow, int numRows) throws RuntimeDaoException
      Loads an array of B bean from a template one, given the start row and number of rows.
      参数:
      bean - the B bean template to look for
      startRow - the start row to be used (first row = 1, last row=-1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      返回:
      all the B matching the template
      抛出:
      RuntimeDaoException
    • loadUsingTemplate

      int loadUsingTemplate(B bean, int startRow, int numRows, TableManager.Action<B> action) throws RuntimeDaoException
      Loads each row from a template one, given the start row and number of rows and dealt with action.
      参数:
      bean - the B bean template to look for
      startRow - the start row to be used (first row = 1, last row=-1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      action - Action object for do something(not null)
      返回:
      the count dealt by action
      抛出:
      RuntimeDaoException
    • loadUsingTemplate

      int loadUsingTemplate(B bean, int[] fieldList, int startRow, int numRows, int searchType, TableManager.Action<B> action) throws RuntimeDaoException
      Loads each row from a template one, given the start row and number of rows and dealt with action.
      参数:
      bean - the B template to look for
      fieldList - table of the field's associated constants
      startRow - the start row to be used (first row = 1, last row=-1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      searchType - exact ? like ? starting like ? ending link ?
      0 Constant.SEARCH_EXACT
      1 Constant.SEARCH_LIKE
      2 Constant.SEARCH_STARTING_LIKE
      3 Constant.SEARCH_ENDING_LIKE
      action - Action object for do something(not null)
      返回:
      the count dealt by action
      抛出:
      RuntimeDaoException
    • loadUsingTemplate

      B[] loadUsingTemplate(B bean, int startRow, int numRows, int searchType) throws RuntimeDaoException
      Loads a list of B bean from a template one, given the start row and number of rows.
      参数:
      bean - the B bean template to look for
      startRow - the start row to be used (first row = 1, last row=-1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      searchType - exact ? like ? starting like ? ending link ?
      0 Constant.SEARCH_EXACT
      1 Constant.SEARCH_LIKE
      2 Constant.SEARCH_STARTING_LIKE
      3 Constant.SEARCH_ENDING_LIKE
      返回:
      all the B bean matching the template
      抛出:
      RuntimeDaoException
    • loadUsingTemplateAsList

      List<B> loadUsingTemplateAsList(B bean) throws RuntimeDaoException
      Loads a list of B bean from a template one.
      参数:
      bean - the B bean template to look for
      返回:
      all the B beans matching the template
      抛出:
      RuntimeDaoException
    • loadUsingTemplateAsList

      List<B> loadUsingTemplateAsList(B bean, int startRow, int numRows) throws RuntimeDaoException
      Loads a list of B bean from a template one, given the start row and number of rows.
      参数:
      bean - the B bean template to look for
      startRow - the start row to be used (first row = 1, last row=-1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      返回:
      all the B bean matching the template
      抛出:
      RuntimeDaoException
    • loadUsingTemplateAsList

      List<B> loadUsingTemplateAsList(B bean, int startRow, int numRows, int searchType) throws RuntimeDaoException
      Loads an array of B bean from a template one, given the start row and number of rows.
      参数:
      bean - the B bean template to look for
      startRow - the start row to be used (first row = 1, last row=-1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      searchType - exact ? like ? starting like ? ending link?
      0 Constant.SEARCH_EXACT
      1 Constant.SEARCH_LIKE
      2 Constant.SEARCH_STARTING_LIKE
      3 Constant.SEARCH_ENDING_LIKE
      返回:
      all the B beans matching the template
      抛出:
      RuntimeDaoException
    • foreachByWhere

      void foreachByWhere(TableManager.DoEach<B> each, boolean stopOnError, String where) throws RuntimeDaoException
      Retrieves each row of B bean given a SQL where clause and a list of fields, and dealt with each action. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      each - DoForEach object for do something(not null)
      stopOnError - stop on error
      where - the SQL 'where' clause, retrieves all rows if null or empty
      抛出:
      RuntimeDaoException
    • foreachByJoinWhere

      void foreachByJoinWhere(TableManager.DoEach<B> each, boolean stopOnError, String join, String where) throws RuntimeDaoException
      Retrieves each row of B bean given a SQL where clause and a list of fields, and dealt with each action. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      each - DoForEach object for do something(not null)
      stopOnError - stop on error
      join - the sql 'join' clause
      where - the SQL 'where' clause, retrieves all rows if null or empty
      抛出:
      RuntimeDaoException
    • foreach

      void foreach(TableManager.DoEach<B> each, boolean stopOnError) throws RuntimeDaoException
      Retrieves each row of B bean given a SQL where clause and a list of fields, and dealt with each action. It is up to you to pass the 'WHERE' in your where clauses.
      参数:
      each - DoForEach object for do something(not null)
      stopOnError - stop on error
      抛出:
      RuntimeDaoException
    • registerListener

      void registerListener(TableListener<B> listener)
      Registers a unique TableListener listener.
      do nothing if TableListener instance exists
      参数:
      listener -
    • unregisterListener

      void unregisterListener(TableListener<B> listener)
      remove listener.
      参数:
      listener -
    • save

      B save(B bean) throws RuntimeDaoException
      Saves the B bean into the database.
      参数:
      bean - the B bean to be saved
      返回:
      the inserted or updated bean,or null if bean is null
      抛出:
      RuntimeDaoException
    • addIfAbsent

      B addIfAbsent(B bean) throws RuntimeDaoException
      If the specified key is not already exist, add it to database. This is equivalent to
       
       if (!existsByPrimaryKey(bean))
         return insert(bean);
       else
         return loadByPrimaryKey(bean);
       
      except that the action is performed atomically .
      参数:
      bean - the B bean to be saved
      返回:
      the previous value exists in database, or saved bean if not exists bean , or null if bean is null
      抛出:
      RuntimeDaoException
    • save

      B[] save(B[] beans) throws RuntimeDaoException
      Saves an array of B bean into the database.
      参数:
      beans - the array of B bean to be saved
      返回:
      always beans saved
      抛出:
      RuntimeDaoException
    • saveAsTransaction

      <C extends Collection<B>> C saveAsTransaction(C beans) throws RuntimeDaoException
      Saves a collection of B bean into the database.
      参数:
      beans - the B bean table to be saved
      返回:
      alwarys beans saved
      抛出:
      RuntimeDaoException
    • saveAsTransaction

      B[] saveAsTransaction(B[] beans) throws RuntimeDaoException
      Saves an array of B bean into the database as transaction.
      参数:
      beans - the B bean table to be saved
      返回:
      alwarys beans saved
      抛出:
      RuntimeDaoException
      另请参阅:
    • save

      <C extends Collection<B>> C save(C beans) throws RuntimeDaoException
      Saves a collection of B bean into the database as transaction.
      参数:
      beans - the B bean table to be saved
      返回:
      alwarys beans saved
      抛出:
      RuntimeDaoException
    • fastInsert

      <C extends Iterable<B>> void fastInsert(int[] fieldList, C beans)
      Insert the B bean list into the database. no support TableListener
      参数:
      fieldList - table of the field's associated constants,if null as all field
      beans - the B bean list to be saved
      抛出:
      RuntimeDaoException
      从以下版本开始:
      3.15.4
    • loadColumnAsList

      <T> List<T> loadColumnAsList(String column, boolean distinct, String where, int startRow, int numRows) throws RuntimeDaoException
      Load column from table.
      参数:
      column - column name or java file name of B
      distinct - select distinct values
      where - the sql 'where' clause
      startRow - the start row to be used (first row = 1, last row = -1)
      numRows - the number of rows to be retrieved (all rows = a negative number)
      返回:
      an list of column
      抛出:
      RuntimeDaoException
    • getListenerContainer

      ListenerContainer<B> getListenerContainer()
      返回:
      ListenerContainer instance of current table manager
    • getDataSourceConfig

      IDataSourceConfig getDataSourceConfig()
      返回:
      data source information
    • getGeometryDataCodec

      GeometryDataCodec getGeometryDataCodec()
      返回:
      Geometry Data code/decode instance
      从以下版本开始:
      3.18.0