Package net.ontopia.persistence.rdbms
Class DataType
- java.lang.Object
-
- net.ontopia.persistence.rdbms.DataType
-
public class DataType extends Object
INTERNAL: Represents the definition of a relational database datatype.
-
-
Constructor Summary
Constructors Constructor Description DataType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(String property, String value)
INTERNAL: Adds table property.String
getName()
INTERNAL: Gets the name of the datatype.Collection<String>
getProperties()
INTERNAL: Gets the table properties.String
getProperty(String property)
INTERNAL: Gets the property valueString
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.
-
-
-
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<String> getProperties()
INTERNAL: Gets the table properties.
-
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.
-
-