jimm.datavision.source.sql
Class SQLColumn

java.lang.Object
  extended by jimm.datavision.source.Column
      extended by jimm.datavision.source.sql.SQLColumn
All Implemented Interfaces:
Draggable, Identity, Nameable, Selectable, Writeable

public class SQLColumn
extends Column

A database column. It knows the table to which it belongs, its name, and other metadata. The id of a column is a string of the form "table_name.column_name".

Author:
Jim Menard, jimm@io.com

Field Summary
protected  SQLTable table
           
 
Fields inherited from class jimm.datavision.source.Column
dateParseFormat, DEFAULT_DATE_PARSE_FORMAT, id, name, type
 
Constructor Summary
SQLColumn(SQLTable table, java.lang.String colName, int type)
          Constructor.
 
Method Summary
 Table getTable()
          Returns the table to which this column belongs.
 
Methods inherited from class jimm.datavision.source.Column
dragString, equals, fieldTypeString, fullName, getDateParseFormat, getDisplayName, getId, getName, getSelectString, getSortString, getType, getValue, hashCode, isDate, isNumeric, isString, reloadInstance, setDateParseFormat, setName, toString, typeFromString, typeToString, writeXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

table

protected SQLTable table
Constructor Detail

SQLColumn

public SQLColumn(SQLTable table,
                 java.lang.String colName,
                 int type)
          throws java.sql.SQLException
Constructor.

Parameters:
table - the table to which this column belongs
colName - the column name
type - the data types
Throws:
java.sql.SQLException
See Also:
DatabaseMetaData.getColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
Method Detail

getTable

public Table getTable()
Returns the table to which this column belongs.

Specified by:
getTable in interface Selectable
Overrides:
getTable in class Column
Returns:
the table