001package bradleyross.library.helpers;
002import java.sql.ResultSet;
003import java.sql.SQLException;
004import bradleyross.library.helpers.GenericPrinter;
005/**
006 * 
007 * @author Bradley Ross
008 *
009 */
010interface TableInterface 
011{
012        /**
013         * Indicates normal formatting.
014         */
015        public final static int NORMAL = 0;
016        /**
017         * Text rotated 90 degrees counter-clockwise.
018         */
019        public final static int CCW = 1;
020        /**
021         * Text rotated 90 degrees clockwise.
022         */
023        public final static int CW = 2;
024        public void setOutput(GenericPrinter output);
025        public void setDebugLevel(int value);
026        public int getDebugLevel();
027        public void setColumnCount(int value);
028        public int getColumnCount();
029        public void startTable();
030        public void finishTable();
031        public void formatHeaderRow(Object... values );
032        public void formatHeaderRow(ResultSet rs) throws SQLException;
033        public void formatDataRow(Object... values);
034        public void formatDataRow(ResultSet rs) throws SQLException;
035        public void formatCell(Object value, int format);
036}