Package net.ontopia.persistence.rdbms
Class Column
- java.lang.Object
-
- net.ontopia.persistence.rdbms.Column
-
public class Column extends Object
INTERNAL: Represents the definition of a relational database column.
-
-
Constructor Summary
Constructors Constructor Description Column()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 valueString
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.
-
-
-
Method Detail
-
getName
public String getName()
INTERNAL: Gets the name of the column.
-
setName
public void setName(String name)
INTERNAL: Sets the name of the column.
-
getProperties
public Collection<String> getProperties()
INTERNAL: Gets the table properties.
-
removeProperty
public void removeProperty(String property, String value)
INTERNAL: Removes table property.
-
getType
public String getType()
INTERNAL: Gets the column datatype.
-
setType
public void setType(String type)
INTERNAL: Sets the column datatype.
-
getSize
public String getSize()
INTERNAL: Gets the size of the column.
-
setSize
public void setSize(String size)
INTERNAL: Sets the size of the column.
-
getDefault
public String getDefault()
INTERNAL: Gets the column default value.
-
setDefault
public void setDefault(String default_value)
INTERNAL: Sets the column default value.
-
isReference
public boolean isReference()
INTERNAL: Returns true if the column references another column (is a foreign key column).
-
getReferencedTable
public String getReferencedTable()
INTERNAL: Returns the name of the table in which the column it references is stored.
-
setReferencedTable
public void setReferencedTable(String table)
INTERNAL: Sets the name of the table in which the column it references is stored.
-
getReferencedColumn
public String getReferencedColumn()
INTERNAL: Gets the name of the column that this column references.
-
setReferencedColumn
public void setReferencedColumn(String column)
INTERNAL: Sets the name of the column that this column references.
-
isNullable
public boolean isNullable()
INTERNAL: Returns true if the column can contain nulls.
-
setNullable
public void setNullable(boolean nullable)
INTERNAL: Sets whether the column can contain nulls or not.
-
-