Class TableStatistics

java.lang.Object
chemaxon.jchem.db.TableStatistics

@PublicAPI public class TableStatistics extends Object
Class for collecting table statistics.
Since:
JChem 3.1.6
  • Constructor Details

    • TableStatistics

      public TableStatistics(boolean indexTable)
    • TableStatistics

      public TableStatistics()
  • Method Details

    • collectStatisitcs

      public void collectStatisitcs(ConnectionHandler conh, String tableName) throws SQLException, chemaxon.jchem.base.storage.PersistenceException
      Throws:
      SQLException
      chemaxon.jchem.base.storage.PersistenceException
    • getPrintableStats

      public String getPrintableStats(ConnectionHandler conh, String tableName) throws SQLException, chemaxon.jchem.base.storage.PersistenceException
      Get printable statistics for the JChem table specified.
      Parameters:
      conh - the ConnectionHandler instance to use.
      tableName - the table for which the statistics needs to be collected.
      Returns:
      the statistics output as String
      Throws:
      SQLException - if an sql exception occurs
      chemaxon.jchem.base.storage.PersistenceException - if processing encounters a problem