Package net.ontopia.persistence.rdbms
Class Column
java.lang.Object
net.ontopia.persistence.rdbms.Column
INTERNAL: Represents the definition of a relational database column.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String property, String value) INTERNAL: Adds table property.INTERNAL: Gets the column default value.getName()INTERNAL: Gets the name of the column.INTERNAL: Gets the table properties.getProperty(String property) INTERNAL: Gets the property valueINTERNAL: Gets the name of the column that this column references.INTERNAL: Returns the name of the table in which the column it references is stored.getSize()INTERNAL: Gets the size of the column.getType()INTERNAL: Gets the column datatype.booleanINTERNAL: Returns true if the column can contain nulls.booleanINTERNAL: Returns true if the column references another column (is a foreign key column).voidremoveProperty(String property, String value) INTERNAL: Removes table property.voidsetDefault(String default_value) INTERNAL: Sets the column default value.voidINTERNAL: Sets the name of the column.voidsetNullable(boolean nullable) INTERNAL: Sets whether the column can contain nulls or not.voidsetReferencedColumn(String column) INTERNAL: Sets the name of the column that this column references.voidsetReferencedTable(String table) INTERNAL: Sets the name of the table in which the column it references is stored.voidINTERNAL: Sets the size of the column.voidINTERNAL: Sets the column datatype.
-
Field Details
-
name
-
type
-
size
-
default_value
-
reftable
-
refcol
-
nullable
protected boolean nullable -
properties
-
-
Constructor Details
-
Column
public Column()
-
-
Method Details
-
getName
INTERNAL: Gets the name of the column. -
setName
INTERNAL: Sets the name of the column. -
getProperties
INTERNAL: Gets the table properties. -
getProperty
INTERNAL: Gets the property value -
addProperty
INTERNAL: Adds table property. -
removeProperty
INTERNAL: Removes table property. -
getType
INTERNAL: Gets the column datatype. -
setType
INTERNAL: Sets the column datatype. -
getSize
INTERNAL: Gets the size of the column. -
setSize
INTERNAL: Sets the size of the column. -
getDefault
INTERNAL: Gets the column default value. -
setDefault
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
INTERNAL: Returns the name of the table in which the column it references is stored. -
setReferencedTable
INTERNAL: Sets the name of the table in which the column it references is stored. -
getReferencedColumn
INTERNAL: Gets the name of the column that this column references. -
setReferencedColumn
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.
-