Class DataTable


  • public class DataTable
    extends Object
    A simple in memory data structure which can be used as an alternative to a data store (such as a database).
    • Constructor Detail

      • DataTable

        public DataTable()
        Creates a new instance of the DataTable class.
    • Method Detail

      • newRow

        public DataRow newRow()
        Creates a new row of data, but does not add it to the table.
        Returns:
        A new DataRow instance, but does not add it to the DataTable.
      • copy

        public DataTable copy()
        Copies both the structure and data in the DataTable.
        Returns:
        A new DataTable instance.
      • copy

        public DataTable copy​(boolean copyData)
        Copies the structure and optionally the data in the DataTable.
        Returns:
        A new DataTable instance.
      • createDataReader

        public DataTableReader createDataReader()
        Create a DataReader based on the DataTable.
        Returns:
        A new DataTableReader instance.