Package org.h2.schema

Class SchemaObject

    • Field Detail

      • schema

        private final Schema schema
    • Constructor Detail

      • SchemaObject

        protected SchemaObject​(Schema newSchema,
                               int id,
                               java.lang.String name,
                               int traceModuleId)
        Initialize some attributes of this object.
        Parameters:
        newSchema - the schema
        id - the object id
        name - the name
        traceModuleId - the trace module id
    • Method Detail

      • getSchema

        public final Schema getSchema()
        Get the schema in which this object is defined
        Returns:
        the schema
      • getSQL

        public java.lang.String getSQL​(int sqlFlags)
        Description copied from interface: HasSQL
        Get the SQL statement of this expression. This may not always be the original SQL statement, specially after optimization.
        Specified by:
        getSQL in interface HasSQL
        Overrides:
        getSQL in class DbObject
        Parameters:
        sqlFlags - formatting flags
        Returns:
        the SQL statement
      • getSQL

        public java.lang.StringBuilder getSQL​(java.lang.StringBuilder builder,
                                              int sqlFlags)
        Description copied from interface: HasSQL
        Appends the SQL statement of this object to the specified builder.
        Specified by:
        getSQL in interface HasSQL
        Overrides:
        getSQL in class DbObject
        Parameters:
        builder - string builder
        sqlFlags - formatting flags
        Returns:
        the specified string builder
      • isHidden

        public boolean isHidden()
        Check whether this is a hidden object that doesn't appear in the meta data and in the script, and is not dropped on DROP ALL OBJECTS.
        Returns:
        true if it is hidden