public class Column extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
default_value |
protected String |
name |
protected boolean |
nullable |
protected Map<String,String> |
properties |
protected String |
refcol |
protected String |
reftable |
protected String |
size |
protected String |
type |
Constructor and Description |
---|
Column() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String property,
String value)
INTERNAL: Adds table property.
|
String |
getDefault()
INTERNAL: Gets the column default value.
|
String |
getName()
INTERNAL: Gets the name of the column.
|
Collection<String> |
getProperties()
INTERNAL: Gets the table properties.
|
String |
getProperty(String property)
INTERNAL: Gets the property value
|
String |
getReferencedColumn()
INTERNAL: Gets the name of the column that this column references.
|
String |
getReferencedTable()
INTERNAL: Returns the name of the table in which the column it
references is stored.
|
String |
getSize()
INTERNAL: Gets the size of the column.
|
String |
getType()
INTERNAL: Gets the column datatype.
|
boolean |
isNullable()
INTERNAL: Returns true if the column can contain nulls.
|
boolean |
isReference()
INTERNAL: Returns true if the column references another column
(is a foreign key column).
|
void |
removeProperty(String property,
String value)
INTERNAL: Removes table property.
|
void |
setDefault(String default_value)
INTERNAL: Sets the column default value.
|
void |
setName(String name)
INTERNAL: Sets the name of the column.
|
void |
setNullable(boolean nullable)
INTERNAL: Sets whether the column can contain nulls or not.
|
void |
setReferencedColumn(String column)
INTERNAL: Sets the name of the column that this column references.
|
void |
setReferencedTable(String table)
INTERNAL: Sets the name of the table in which the column it
references is stored.
|
void |
setSize(String size)
INTERNAL: Sets the size of the column.
|
void |
setType(String type)
INTERNAL: Sets the column datatype.
|
protected String name
protected String type
protected String size
protected String default_value
protected String reftable
protected String refcol
protected boolean nullable
public String getName()
public void setName(String name)
public Collection<String> getProperties()
public void removeProperty(String property, String value)
public String getType()
public void setType(String type)
public String getSize()
public void setSize(String size)
public String getDefault()
public void setDefault(String default_value)
public boolean isReference()
public String getReferencedTable()
public void setReferencedTable(String table)
public String getReferencedColumn()
public void setReferencedColumn(String column)
public boolean isNullable()
public void setNullable(boolean nullable)