net.ontopia.persistence.rdbms
Class DataType

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

public class DataType
extends Object

INTERNAL: Represents the definition of a relational database datatype.


Field Summary
protected  String name
           
protected  Map properties
           
protected  String size
           
protected  String type
           
protected  boolean variable
           
 
Constructor Summary
DataType()
           
 
Method Summary
 void addProperty(String property, String value)
          INTERNAL: Adds table property.
 String getName()
          INTERNAL: Gets the name of the datatype.
 Collection getProperties()
          INTERNAL: Gets the table properties.
 String getProperty(String property)
          INTERNAL: Gets the property value
 String getSize()
          INTERNAL: Gets the datatype size.
 String getType()
          INTERNAL: Gets the datatype type.
 boolean isVariable()
          INTERNAL: Returns true if the database is a variable sized datatype (i.e.
 void removeProperty(String property, String value)
          INTERNAL: Removes table property.
 void setName(String name)
          INTERNAL: Sets the name of the datatype.
 void setSize(String size)
          INTERNAL: Sets the datatype size.
 void setType(String type)
          INTERNAL: Sets the datatype type.
 void setVariable(boolean variable)
          INTERNAL: Sets whether the datatype is a variable sized datatype or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

type

protected String type

size

protected String size

variable

protected boolean variable

properties

protected Map properties
Constructor Detail

DataType

public DataType()
Method Detail

getName

public String getName()
INTERNAL: Gets the name of the datatype.


setName

public void setName(String name)
INTERNAL: Sets the name of the datatype.


getProperties

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


getProperty

public String getProperty(String property)
INTERNAL: Gets the property value


addProperty

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


removeProperty

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


getType

public String getType()
INTERNAL: Gets the datatype type.


setType

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


getSize

public String getSize()
INTERNAL: Gets the datatype size.


setSize

public void setSize(String size)
INTERNAL: Sets the datatype size.


isVariable

public boolean isVariable()
INTERNAL: Returns true if the database is a variable sized datatype (i.e. not constant).


setVariable

public void setVariable(boolean variable)
INTERNAL: Sets whether the datatype is a variable sized datatype or not.



Copyright © 2000-2012 Ontopia.