Class DBTableInfoProxy

  • All Implemented Interfaces:
    DBTableInfo, java.io.Serializable

    public final class DBTableInfoProxy
    extends java.lang.Object
    implements DBTableInfo
    Author:
    Martin Adamek
    See Also:
    Serialized Form
    • Method Detail

      • isLazy

        public boolean isLazy()
      • loadIfLazy

        public void loadIfLazy()
      • getName

        public java.lang.String getName()
        Description copied from interface: DBTableInfo
        Gets the name of the database artefact represented by this DBTableInfo.
        Specified by:
        getName in interface DBTableInfo
        Returns:
        The database artifact's name.
      • getSchema

        public java.lang.String getSchema()
        Description copied from interface: DBTableInfo
        Gets the database schema name of the associated artefact.
        Specified by:
        getSchema in interface DBTableInfo
        Returns:
        The schema this item belongs to.
      • copy

        public DBTableInfo copy()
        Description copied from interface: DBTableInfo
        Creates a duplicate copy of this DBTableInfo instance.
        Specified by:
        copy in interface DBTableInfo
        Returns:
        A new DBTableInfo instance.
      • isReadOnly

        public boolean isReadOnly()
        Description copied from interface: DBTableInfo
        Determines whether this database artifact allows modifications.
        Specified by:
        isReadOnly in interface DBTableInfo
        Returns:
        true if this database artifact is readonly and cannot be modified.
      • getSQL

        public java.lang.String getSQL()
        Getter for SQL that defines this view if it is a view, otherwise null.
        Specified by:
        getSQL in interface DBTableInfo
        Returns:
        Value of property sql.
      • getColumn

        public DBColInfo getColumn​(java.lang.String name)
        Description copied from interface: DBTableInfo
        Finds a DBColInfo by its name. This will search through the columns in this DBTableInfo for a column with the required name.
        Specified by:
        getColumn in interface DBTableInfo
        Parameters:
        name - The name of the column to find.
        Returns:
        The DBColInfo with the required name or null if no such column exists.
      • getColumns

        public java.util.List<DBColInfo> getColumns()
        Description copied from interface: DBTableInfo
        Gets the columns in this DBTableInfo.
        Specified by:
        getColumns in interface DBTableInfo
        Returns:
        The list of columns.
      • getExportedFKInfo

        public java.util.List<DBForeignKeyInfo> getExportedFKInfo()
        Description copied from interface: DBTableInfo
        Get the foreign keys that involve this table but are defined in a foreign key constraint definition that is defined in another table (though possibly this table). e.g. the keys in this table that are referred to in a foreign key constraint definition somewhere.
        Specified by:
        getExportedFKInfo in interface DBTableInfo
        Returns:
        A list of foreign keys
      • getImportedFKInfo

        public java.util.List<DBForeignKeyInfo> getImportedFKInfo()
        Description copied from interface: DBTableInfo
        Get the foreign keys that this table defines. e.g. the primary keys of other tables (or possibly this table) that are referred to in a foreign key constraint definition.
        Specified by:
        getImportedFKInfo in interface DBTableInfo
        Returns:
        A list of foreign keys
      • getPrimaryKeyColumns

        public java.util.List<java.lang.String> getPrimaryKeyColumns()
        Description copied from interface: DBTableInfo
        Gets the name of the primary key columns.
        Specified by:
        getPrimaryKeyColumns in interface DBTableInfo
        Returns:
        The primary key column names. It can return an empty list, but not null.
      • writeReplace

        public java.lang.Object writeReplace()
        It doesn't make sense to persist DBTableInfoProxy. It's only proxy for DBTableInfoImpl.
        Returns:
        object used for serialization.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object