net.ontopia.persistence.rdbms
Class DataType

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

public class DataType
extends java.lang.Object

INTERNAL: Represents the definition of a relational database datatype.


Field Summary
protected  java.lang.String name
           
protected  java.util.Map properties
           
protected  java.lang.String size
           
protected  java.lang.String type
           
protected  boolean variable
           
 
Constructor Summary
DataType()
           
 
Method Summary
 void addProperty(java.lang.String property, java.lang.String value)
          INTERNAL: Adds table property.
 java.lang.String getName()
          INTERNAL: Gets the name of the datatype.
 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 getSize()
          INTERNAL: Gets the datatype size.
 java.lang.String getType()
          INTERNAL: Gets the datatype type.
 boolean isVariable()
          INTERNAL: Returns true if the database is a variable sized datatype (i.e.
 void removeProperty(java.lang.String property, java.lang.String value)
          INTERNAL: Removes table property.
 void setName(java.lang.String name)
          INTERNAL: Sets the name of the datatype.
 void setSize(java.lang.String size)
          INTERNAL: Sets the datatype size.
 void setType(java.lang.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 java.lang.String name

type

protected java.lang.String type

size

protected java.lang.String size

variable

protected boolean variable

properties

protected java.util.Map properties
Constructor Detail

DataType

public DataType()
Method Detail

getName

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


setName

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


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 datatype type.


setType

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


getSize

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


setSize

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