public class DataStructureTableColumnModel extends Object
| Constructor and Description |
|---|
DataStructureTableColumnModel()
The default constructor.
|
DataStructureTableColumnModel(String name,
String type,
String length,
boolean nullable,
boolean primaryKey,
String defaultValue,
String precision,
String scale,
boolean unique)
The constructor from the fields.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue()
Getter for the default value.
|
String |
getLength()
Getter for the length.
|
String |
getName()
Getter for the name.
|
String |
getPrecision()
Getter for the precision value.
|
String |
getScale()
Getter for the scale value.
|
String |
getType()
Getter for the type.
|
boolean |
isNullable()
Check for nullable.
|
boolean |
isPrimaryKey()
Check for primary key.
|
boolean |
isUnique()
Check for unique.
|
void |
setDefaultValue(String defaultValue)
Setter for the default value.
|
void |
setLength(String length)
Setter for the length.
|
void |
setName(String name)
Setter for the name.
|
void |
setNullable(boolean nullable)
Setter for the nullable.
|
void |
setPrecision(String precision)
Setter for the precision value.
|
void |
setPrimaryKey(boolean primaryKey)
Setter for the primary key.
|
void |
setScale(String scale)
Setter for the scale value.
|
void |
setType(String type)
Setter for the type.
|
void |
setUnique(boolean unique)
Setter for the unique.
|
public DataStructureTableColumnModel()
public DataStructureTableColumnModel(String name, String type, String length, boolean nullable, boolean primaryKey, String defaultValue, String precision, String scale, boolean unique)
name - the nametype - the typelength - the lengthnullable - whether null values are allowedprimaryKey - whether it is a primary keydefaultValue - the default valueprecision - the precision value for floating point typesscale - the scale value for floating point typesunique - the uniquepublic String getName()
public void setName(String name)
name - the namepublic String getType()
public void setType(String type)
type - the typepublic String getLength()
public void setLength(String length)
length - the lengthpublic boolean isNullable()
public void setNullable(boolean nullable)
nullable - whether null values are allowedpublic boolean isPrimaryKey()
public void setPrimaryKey(boolean primaryKey)
primaryKey - whether it is a primary keypublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - the default valuepublic String getPrecision()
public void setPrecision(String precision)
precision - the precision valuepublic String getScale()
public void setScale(String scale)
scale - the scale valuepublic boolean isUnique()
public void setUnique(boolean unique)
unique - the unique valueCopyright © 2010–2018 Eclipse Foundation. All rights reserved.