henplus.sqlmodel
Class Column
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Column
public Column(String name)
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