Package org.h2.mode

Class PgCatalogTable

  • All Implemented Interfaces:
    HasSQL

    public final class PgCatalogTable
    extends MetaTable
    This class is responsible to build the pg_catalog tables.
    • Constructor Detail

      • PgCatalogTable

        public PgCatalogTable​(Schema schema,
                              int id,
                              int type)
        Create a new metadata table.
        Parameters:
        schema - the schema
        id - the object id
        type - the meta table type
    • Method Detail

      • generateRows

        public java.util.ArrayList<Row> generateRows​(SessionLocal session,
                                                     SearchRow first,
                                                     SearchRow last)
        Description copied from class: MetaTable
        Generate the data for the given metadata table using the given first and last row filters.
        Specified by:
        generateRows in class MetaTable
        Parameters:
        session - the session
        first - the first row to return
        last - the last row to return
        Returns:
        the generated rows
      • pgAttribute

        private void pgAttribute​(SessionLocal session,
                                 java.util.ArrayList<Row> rows,
                                 Table table)
      • pgClass

        private void pgClass​(SessionLocal session,
                             java.util.ArrayList<Row> rows,
                             Table table)
      • pgConstraint

        private void pgConstraint​(SessionLocal session,
                                  java.util.ArrayList<Row> rows)
      • addAttribute

        private void addAttribute​(SessionLocal session,
                                  java.util.ArrayList<Row> rows,
                                  int id,
                                  int relId,
                                  Table table,
                                  Column column,
                                  int ordinal)
      • addClass

        private void addClass​(SessionLocal session,
                              java.util.ArrayList<Row> rows,
                              int id,
                              java.lang.String name,
                              int schema,
                              java.lang.String kind,
                              boolean index,
                              int triggers)
      • getMaxDataModificationId

        public long getMaxDataModificationId()
        Description copied from class: Table
        Get the last data modification id.
        Specified by:
        getMaxDataModificationId in class Table
        Returns:
        the modification id