public class TableColumn extends Object
Constructor and Description |
---|
TableColumn(String strColumnName,
boolean bIsPrimaryKey,
ColumnType columnType)
Creates a new table column
|
Modifier and Type | Method and Description |
---|---|
String |
getColumnName()
Get the name of the column
|
ColumnType |
getColumnType()
Get the type of this column
|
boolean |
getIsPrimaryKey()
Check if this column has a primary key constraint
|
void |
setColumnName(String strColumnName)
Set the name of the column
|
void |
setColumnType(ColumnType columnType)
Set the type of this column
|
void |
setIsPrimaryKey(boolean bIsPrimaryKey)
Set whether this column has a primary key constraint
|
public TableColumn(String strColumnName, boolean bIsPrimaryKey, ColumnType columnType)
strColumnName
- The name of the columnbIsPrimaryKey
- True if the column has a primary key constraint,
false otherwisecolumnType
- The type of the columnpublic String getColumnName()
public void setColumnName(String strColumnName)
strColumnName
- The name of the columnpublic boolean getIsPrimaryKey()
public void setIsPrimaryKey(boolean bIsPrimaryKey)
bIsPrimaryKey
- True if this column has a primary key constraint,
false otherwisepublic ColumnType getColumnType()
public void setColumnType(ColumnType columnType)
columnType
- The type of this columnCopyright © 2018 City of Paris. All rights reserved.