henplus.sqlmodel
Class Column

java.lang.Object
  extended by henplus.sqlmodel.Column
All Implemented Interfaces:
Comparable

public final class Column
extends Object
implements Comparable

Represents the meta data for a telational table Column

Author:
Martin Grotzke

Constructor Summary
Column(String name)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o, boolean colNameIgnoreCase)
           
 String getDefault()
           
 ColumnFkInfo getFkInfo()
           
 String getName()
           
 ColumnPkInfo getPkInfo()
           
 int getPosition()
           
 int getSize()
           
 String getType()
           
 boolean isForeignKey()
           
 boolean isNullable()
           
 boolean isPartOfPk()
           
 void setDefault(String defaultValue)
          Set the default value for this Column.
 void setFkInfo(ColumnFkInfo info)
           
 void setName(String string)
           
 void setNullable(boolean b)
           
 void setPkInfo(ColumnPkInfo pkInfo)
           
 void setPosition(int i)
           
 void setSize(int i)
           
 void setType(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column(String name)
Method Detail

getName

public String getName()

setName

public void setName(String string)

getDefault

public String getDefault()

getType

public String getType()

setDefault

public void setDefault(String defaultValue)
Set the default value for this Column.

Parameters:
defaultValue -

setType

public void setType(String string)

getSize

public int getSize()

setSize

public void setSize(int i)

isNullable

public boolean isNullable()

setNullable

public void setNullable(boolean b)

getPosition

public int getPosition()

setPosition

public void setPosition(int i)

isPartOfPk

public boolean isPartOfPk()

getPkInfo

public ColumnPkInfo getPkInfo()

setPkInfo

public void setPkInfo(ColumnPkInfo pkInfo)

isForeignKey

public boolean isForeignKey()

getFkInfo

public ColumnFkInfo getFkInfo()

setFkInfo

public void setFkInfo(ColumnFkInfo info)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object o,
                      boolean colNameIgnoreCase)
Parameters:
o -
colNameIgnoreCase - specifies if column names shall be compared in a case insensitive way.
Returns:
if the columns are equal


? 1997..2006 Henner Zeller