chemaxon.jchem.db
Class TableStatistics

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

public class TableStatistics
extends java.lang.Object

Class for collecting table statistics.

Since:
JChem 3.1.6
Author:
Szilard Dorant

Constructor Summary
TableStatistics()
           
TableStatistics(boolean indexTable)
           
 
Method Summary
 void collectStatisitcs(ConnectionHandler conh, java.lang.String tableName)
           
 java.lang.String getPrintableStats(ConnectionHandler conh, java.lang.String tableName)
          Get printable statistics for the JChem table specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableStatistics

public TableStatistics(boolean indexTable)

TableStatistics

public TableStatistics()
Method Detail

collectStatisitcs

public void collectStatisitcs(ConnectionHandler conh,
                              java.lang.String tableName)
                       throws java.sql.SQLException
Throws:
java.sql.SQLException

getPrintableStats

public java.lang.String getPrintableStats(ConnectionHandler conh,
                                          java.lang.String tableName)
                                   throws java.sql.SQLException
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:
java.sql.SQLException