Package adams.db

Class AbstractTableFacade

    • Field Detail

      • m_TableName

        protected String m_TableName
        name of the table.
      • m_Debug

        protected boolean m_Debug
        whether debugging is turned on.
    • Constructor Detail

      • AbstractTableFacade

        public AbstractTableFacade​(AbstractDatabaseConnection dbcon,
                                   String tableName)
        Constructor.
        Parameters:
        dbcon - the database context to use
        tableName - the name of the table
    • Method Detail

      • updatePrefix

        protected void updatePrefix()
        Updates the prefix of the console object output streams.
      • getDatabaseConnection

        public AbstractDatabaseConnection getDatabaseConnection()
        Returns the database connection this table is for.
        Returns:
        the database connection
      • getTableName

        public String getTableName()
        Get name of table.
        Returns:
        table name
      • setDebug

        public void setDebug​(boolean value)
        Sets whether debugging is enabled, outputs more on the console.
        Parameters:
        value - if true debugging is enabled
      • getDebug

        public boolean getDebug()
        Returns whether debugging is enabled.
        Returns:
        true if debugging is enabled
      • reload

        public void reload()
        Reloads the data, if necessary.
        Default implementation does nothing.