|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgpruitt.datamodeler.core.Column
public class Column
This class models a column in a database table.
Field Summary | |
---|---|
protected java.lang.String |
comment
|
protected DataType |
dataType
|
protected java.lang.Integer |
increment
|
protected boolean |
isNullable
|
protected java.lang.Integer |
length
|
protected java.lang.String |
name
|
protected java.lang.Integer |
precision
|
protected java.lang.Integer |
scale
|
protected java.lang.Integer |
seed
|
protected Table |
table
|
Constructor Summary | |
---|---|
Column(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getComment()
Getter for the comment. |
DataType |
getDataType()
Getter for the Column's DataType. |
java.lang.Integer |
getIncrement()
Getter for the increment. |
java.lang.Integer |
getLength()
Getter for the length. |
java.lang.String |
getName()
Getter for the Column name. |
java.lang.Integer |
getPrecision()
Getter for the precision. |
java.lang.Integer |
getScale()
Getter for the scale. |
java.lang.Integer |
getSeed()
Getter for the seed. |
Table |
getTable()
Getter for the Table to which the Column belongs. |
boolean |
isNullable()
Does the Column accept NULL values? |
void |
setComment(java.lang.String comment)
Setter for the comment. |
void |
setDataType(DataType dataType)
Setter for the Column's DataType. |
void |
setIncrement(java.lang.Integer increment)
Setter for the increment. |
void |
setLength(java.lang.Integer length)
Setter for the length. |
void |
setNullable(boolean nullable)
Setter for the isNullable field. |
void |
setPrecision(java.lang.Integer precision)
Setter for the precision. |
void |
setScale(java.lang.Integer scale)
Setter for the scale. |
void |
setSeed(java.lang.Integer seed)
Setter for the seed. |
void |
setTable(Table table)
Setter for the Table to which the Column belongs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String name
protected Table table
protected DataType dataType
protected boolean isNullable
protected java.lang.Integer length
protected java.lang.Integer precision
protected java.lang.Integer scale
protected java.lang.Integer seed
protected java.lang.Integer increment
protected java.lang.String comment
Constructor Detail |
---|
public Column(java.lang.String name)
name
- The name of the column. The column name must not be null or empty.Method Detail |
---|
public java.lang.String getName()
public Table getTable()
Table
public void setTable(Table table)
table
- The Table to which the Column belongs.Table
public DataType getDataType()
DataType
public void setDataType(DataType dataType)
dataType
- The DataType of the Column.DataType
public boolean isNullable()
public void setNullable(boolean nullable)
nullable
- true if the Column should accept NULL values, false otherwise.public java.lang.Integer getLength()
DataType
public void setLength(java.lang.Integer length)
length
- The length of the DataType.DataType
public java.lang.Integer getPrecision()
DataType
public void setPrecision(java.lang.Integer precision)
precision
- the precision of the DataTypeDataType
public java.lang.Integer getScale()
DataType
public void setScale(java.lang.Integer scale)
scale
- The scale of the datatype of the Column.DataType
public java.lang.Integer getSeed()
DataType
public void setSeed(java.lang.Integer seed)
seed
- The seed value.DataType
public java.lang.Integer getIncrement()
DataType
public void setIncrement(java.lang.Integer increment)
increment
- The increment value or null.DataType
public java.lang.String getComment()
DataType
public void setComment(java.lang.String comment)
comment
- the comment to be used in the data dictionary.DataType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |