net.ontopia.persistence.rdbms
Class Column

java.lang.Object
  extended by net.ontopia.persistence.rdbms.Column

public class Column
extends java.lang.Object

INTERNAL: Represents the definition of a relational database column.


Field Summary
protected  java.lang.String default_value
           
protected  java.lang.String name
           
protected  boolean nullable
           
protected  java.util.Map properties
           
protected  java.lang.String refcol
           
protected  java.lang.String reftable
           
protected  java.lang.String size
           
protected  java.lang.String type
           
 
Constructor Summary
Column()
           
 
Method Summary
 void addProperty(java.lang.String property, java.lang.String value)
          INTERNAL: Adds table property.
 java.lang.String getDefault()
          INTERNAL: Gets the column default value.
 java.lang.String getName()
          INTERNAL: Gets the name of the column.
 java.util.Collection getProperties()
          INTERNAL: Gets the table properties.
 java.lang.String getProperty(java.lang.String property)
          INTERNAL: Gets the property value
 java.lang.String getReferencedColumn()
          INTERNAL: Gets the name of the column that this column references.
 java.lang.String getReferencedTable()
          INTERNAL: Returns the name of the table in which the column it references is stored.
 java.lang.String getSize()
          INTERNAL: Gets the size of the column.
 java.lang.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(java.lang.String property, java.lang.String value)
          INTERNAL: Removes table property.
 void setDefault(java.lang.String default_value)
          INTERNAL: Sets the column default value.
 void setName(java.lang.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(java.lang.String column)
          INTERNAL: Sets the name of the column that this column references.
 void setReferencedTable(java.lang.String table)
          INTERNAL: Sets the name of the table in which the column it references is stored.
 void setSize(java.lang.String size)
          INTERNAL: Sets the size of the column.
 void setType(java.lang.String type)
          INTERNAL: Sets the column datatype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

type

protected java.lang.String type

size

protected java.lang.String size

default_value

protected java.lang.String default_value

reftable

protected java.lang.String reftable

refcol

protected java.lang.String refcol

nullable

protected boolean nullable

properties

protected java.util.Map properties
Constructor Detail

Column

public Column()
Method Detail

getName

public java.lang.String getName()
INTERNAL: Gets the name of the column.


setName

public void setName(java.lang.String name)
INTERNAL: Sets the name of the column.


getProperties

public java.util.Collection getProperties()
INTERNAL: Gets the table properties.


getProperty

public java.lang.String getProperty(java.lang.String property)
INTERNAL: Gets the property value


addProperty

public void addProperty(java.lang.String property,
                        java.lang.String value)
INTERNAL: Adds table property.


removeProperty

public void removeProperty(java.lang.String property,
                           java.lang.String value)
INTERNAL: Removes table property.


getType

public java.lang.String getType()
INTERNAL: Gets the column datatype.


setType

public void setType(java.lang.String type)
INTERNAL: Sets the column datatype.


getSize

public java.lang.String getSize()
INTERNAL: Gets the size of the column.


setSize

public void setSize(java.lang.String size)
INTERNAL: Sets the size of the column.


getDefault

public java.lang.String getDefault()
INTERNAL: Gets the column default value.


setDefault

public void setDefault(java.lang.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 java.lang.String getReferencedTable()
INTERNAL: Returns the name of the table in which the column it references is stored.


setReferencedTable

public void setReferencedTable(java.lang.String table)
INTERNAL: Sets the name of the table in which the column it references is stored.


getReferencedColumn

public java.lang.String getReferencedColumn()
INTERNAL: Gets the name of the column that this column references.


setReferencedColumn

public void setReferencedColumn(java.lang.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.



Copyright © 2000-2012 Ontopia.