Class DataType

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

public class DataType extends Object
INTERNAL: Represents the definition of a relational database datatype.
  • Field Details

    • name

      protected String name
    • type

      protected String type
    • size

      protected String size
    • variable

      protected boolean variable
    • properties

      protected Map<String,String> properties
  • Constructor Details

    • DataType

      public DataType()
  • Method Details

    • 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<String> 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.