Package javaforce.db

Class Table<ROW extends Row>


public class Table<ROW extends Row> extends SerialObject
Tables store Row's in memory for fast access.
Author:
pquiring
  • Field Details

    • id

      public int id
    • name

      public String name
    • xid

      public int xid
    • filename

      protected transient String filename
  • Constructor Details

  • Method Details

    • load

      public boolean load(String filename)
    • save

      public boolean save()
    • add

      public void add(ROW row)
    • get

      public ROW get(int id)
    • remove

      public void remove(int id)
    • clear

      public void clear()
    • getRows

      public ArrayList<ROW> getRows()
    • getCount

      public int getCount()
    • getMinId

      public int getMinId()
    • getMaxId

      public int getMaxId()
    • getNextId

      public int getNextId()
    • setMinId

      public void setMinId(int id)
    • setMaxId

      public void setMaxId(int id)
    • getReuseIds

      public boolean getReuseIds()
    • setReuseIds

      public void setReuseIds(boolean state)
    • readObject

      public void readObject() throws Exception
      Specified by:
      readObject in class SerialObject
      Throws:
      Exception
    • writeObject

      public void writeObject() throws Exception
      Specified by:
      writeObject in class SerialObject
      Throws:
      Exception