org.vizzini.database
Class ColumnData

java.lang.Object
  extended by org.vizzini.database.BaseDatabaseData
      extended by org.vizzini.database.ColumnData

public class ColumnData
extends BaseDatabaseData

Provides storage for properties needed by database columns.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
ColumnData()
           
 
Method Summary
 Class getColumnClass()
          Return the appropriate column class.
 String getDBType()
          Return the database type string.
 Object getDefault()
          Return the default value.
 List getEnumerationList()
          Return the enumeration list.
(package private)  void inflate(Element element)
          Inflate this object from the given XML element.
 boolean isEnumerated()
          Return true if this is enumerated.
(package private)  void setDBType(String dbType)
          Set the database type string.
(package private)  void setDefault(Object defaultVal)
          Set the default value.
(package private)  void setEnumerationList(String enumListString)
          Set the enumeration list from a delimited string.
 String toString()
          Return a string representation of this object.
 
Methods inherited from class org.vizzini.database.BaseDatabaseData
getDisplayName, getName, isEditable, isVisible, setDisplayName, setEditable, setName, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnData

public ColumnData()
Method Detail

getColumnClass

public Class getColumnClass()
Return the appropriate column class.

Since:
v0.3

getDBType

public String getDBType()
Return the database type string.

Since:
v0.3

getDefault

public Object getDefault()
Return the default value.

Since:
v0.3

getEnumerationList

public List getEnumerationList()
Return the enumeration list.

Since:
v0.3

isEnumerated

public boolean isEnumerated()
Return true if this is enumerated.

Since:
v0.3

toString

public String toString()
Return a string representation of this object.

Overrides:
toString in class BaseDatabaseData
Since:
v0.3

inflate

void inflate(Element element)
       throws ClassNotFoundException
Inflate this object from the given XML element.

Overrides:
inflate in class BaseDatabaseData
Throws:
ClassNotFoundException
Since:
v0.3

setDBType

void setDBType(String dbType)
Set the database type string.

Since:
v0.3

setDefault

void setDefault(Object defaultVal)
Set the default value.

Since:
v0.3

setEnumerationList

void setEnumerationList(String enumListString)
Set the enumeration list from a delimited string.

Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02