Class TableList<ROW extends Row>

java.lang.Object
javaforce.db.TableList<ROW>

public class TableList<ROW extends Row> extends Object
  • Constructor Details

    • TableList

      public TableList(Row.Creator rowCreator)
      Create TableList
      Parameters:
      rowCreator - = interface to create new rows
  • Method Details

    • load

      public boolean load(String folder)
      Load list of tables from folder.
    • get

      public Table<ROW> get(int id)
      Returns Table with assigned id.
    • get

      public Table<ROW> get(String name)
      Returns Table with user-defined name.
    • save

      public void save(int id)
      Save table with assigned id.
    • add

      public void add(Table<ROW> table)
      Add another Table to this TableList. Table will be assigned next id.
    • getTables

      public ArrayList<Table<ROW>> getTables()
      Returns list of Tables.
    • remove

      public void remove(int id)
      Remove table with assigned id.