org.codehaus.modello.generator.database.model
Class Column

java.lang.Object
  extended byorg.codehaus.modello.generator.database.model.Column

public class Column
extends java.lang.Object


Field Summary
private  boolean autoIncrement
           
private  java.lang.String defaultValue
           
private  java.lang.String name
           
private  int ordinalPosition
           
private  int precisionRadix
           
private  boolean primaryKey
           
private  boolean required
           
private  int scale
           
private  int size
           
private  java.lang.String type
           
private  int typeCode
           
 
Constructor Summary
Column()
           
Column(java.lang.String name, int typeCode, int size, boolean required, boolean primaryKey, boolean autoIncrement, java.lang.String defaultValue)
           
Column(java.lang.String name, int typeCode, int size, boolean required, boolean primaryKey, boolean autoIncrement, java.lang.String defaultValue, int scale)
           
Column(java.lang.String name, java.lang.String type, int size, boolean required, boolean primaryKey, boolean autoIncrement, java.lang.String defaultValue)
           
 
Method Summary
 java.lang.String getDefaultValue()
           
 java.lang.String getName()
           
 int getOrdinalPosition()
           
 int getPrecisionRadix()
           
 int getScale()
           
 int getSize()
           
 java.lang.String getType()
           
 int getTypeCode()
           
 boolean isAutoIncrement()
           
 boolean isPrimaryKey()
           
 boolean isRequired()
           
 void setAutoIncrement(boolean autoIncrement)
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setName(java.lang.String name)
           
 void setOrdinalPosition(int ordinalPosition)
           
 void setPrecisionRadix(int precisionRadix)
           
 void setPrimaryKey(boolean primaryKey)
           
 void setRequired(boolean required)
           
 void setScale(int scale)
           
 void setSize(int size)
           
 void setType(java.lang.String type)
          Set this columns type by name
 void setTypeCode(int typeCode)
           
 java.lang.String toString()
           
 java.lang.String toStringAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

primaryKey

private boolean primaryKey

required

private boolean required

autoIncrement

private boolean autoIncrement

typeCode

private int typeCode

type

private java.lang.String type

size

private int size

defaultValue

private java.lang.String defaultValue

scale

private int scale

precisionRadix

private int precisionRadix

ordinalPosition

private int ordinalPosition
Constructor Detail

Column

public Column()

Column

public Column(java.lang.String name,
              int typeCode,
              int size,
              boolean required,
              boolean primaryKey,
              boolean autoIncrement,
              java.lang.String defaultValue)

Column

public Column(java.lang.String name,
              java.lang.String type,
              int size,
              boolean required,
              boolean primaryKey,
              boolean autoIncrement,
              java.lang.String defaultValue)

Column

public Column(java.lang.String name,
              int typeCode,
              int size,
              boolean required,
              boolean primaryKey,
              boolean autoIncrement,
              java.lang.String defaultValue,
              int scale)
Method Detail

toString

public java.lang.String toString()

toStringAll

public java.lang.String toStringAll()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

isPrimaryKey

public boolean isPrimaryKey()

setPrimaryKey

public void setPrimaryKey(boolean primaryKey)

isRequired

public boolean isRequired()

setRequired

public void setRequired(boolean required)

isAutoIncrement

public boolean isAutoIncrement()

setAutoIncrement

public void setAutoIncrement(boolean autoIncrement)

getTypeCode

public int getTypeCode()

setTypeCode

public void setTypeCode(int typeCode)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)
Set this columns type by name


getSize

public int getSize()

setSize

public void setSize(int size)

getScale

public int getScale()

setScale

public void setScale(int scale)

getDefaultValue

public java.lang.String getDefaultValue()

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)

getPrecisionRadix

public int getPrecisionRadix()

setPrecisionRadix

public void setPrecisionRadix(int precisionRadix)

getOrdinalPosition

public int getOrdinalPosition()

setOrdinalPosition

public void setOrdinalPosition(int ordinalPosition)