|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.rdbms.Column
public class Column
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 |
---|
protected java.lang.String name
protected java.lang.String type
protected java.lang.String size
protected java.lang.String default_value
protected java.lang.String reftable
protected java.lang.String refcol
protected boolean nullable
protected java.util.Map properties
Constructor Detail |
---|
public Column()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
public java.util.Collection getProperties()
public java.lang.String getProperty(java.lang.String property)
public void addProperty(java.lang.String property, java.lang.String value)
public void removeProperty(java.lang.String property, java.lang.String value)
public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getSize()
public void setSize(java.lang.String size)
public java.lang.String getDefault()
public void setDefault(java.lang.String default_value)
public boolean isReference()
public java.lang.String getReferencedTable()
public void setReferencedTable(java.lang.String table)
public java.lang.String getReferencedColumn()
public void setReferencedColumn(java.lang.String column)
public boolean isNullable()
public void setNullable(boolean nullable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |