seniorproj
Class Column

java.lang.Object
  extended by seniorproj.Column

public class Column
extends java.lang.Object

Creates a column object containing information regarding the column name, the table its from, and the numerical attributes.

Author:
Steven Weigand

Constructor Summary
Column()
          Default Column constructor for initialization.
Column(java.lang.String name, java.lang.String tname, java.lang.String type, int length, int precision, int scale)
          Column constructor for initializing and creating a Column object.
 
Method Summary
 int getLength()
          Retrieve the Column's length.
 java.lang.String getName()
          Retrieve the Column's name.
 int getPrec()
          Retrieve the Column's precision.
 int getScale()
          Retrieve the Column's scale.
 java.lang.String getTname()
          Retrieve the Column's tablename.
 java.lang.String getType()
          Retrieve the Column's type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column()
Default Column constructor for initialization.


Column

public Column(java.lang.String name,
              java.lang.String tname,
              java.lang.String type,
              int length,
              int precision,
              int scale)
Column constructor for initializing and creating a Column object.

Parameters:
name - Name of the column
tname - Name of the column's table
type - Type of the column
length - The length of whatever type the column holds
precision - The precision of whatever type the column holds
scale - The scale of whatever type the column holds
Method Detail

getName

public java.lang.String getName()
Retrieve the Column's name.

Returns:
String containing column name

getTname

public java.lang.String getTname()
Retrieve the Column's tablename.

Returns:
String containing column table name.

getType

public java.lang.String getType()
Retrieve the Column's type.

Returns:
String containing column type.

getLength

public int getLength()
Retrieve the Column's length.

Returns:
int containing column length

getPrec

public int getPrec()
Retrieve the Column's precision.

Returns:
int containing column precision

getScale

public int getScale()
Retrieve the Column's scale.

Returns:
int containing column scale