Package net.ontopia.persistence.rdbms
Class DataType
java.lang.Object
net.ontopia.persistence.rdbms.DataType
INTERNAL: Represents the definition of a relational database datatype.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String property, String value) INTERNAL: Adds table property.getName()INTERNAL: Gets the name of the datatype.INTERNAL: Gets the table properties.getProperty(String property) INTERNAL: Gets the property valuegetSize()INTERNAL: Gets the datatype size.getType()INTERNAL: Gets the datatype type.booleanINTERNAL: Returns true if the database is a variable sized datatype (i.e. not constant).voidremoveProperty(String property, String value) INTERNAL: Removes table property.voidINTERNAL: Sets the name of the datatype.voidINTERNAL: Sets the datatype size.voidINTERNAL: Sets the datatype type.voidsetVariable(boolean variable) INTERNAL: Sets whether the datatype is a variable sized datatype or not.
-
Field Details
-
name
-
type
-
size
-
variable
protected boolean variable -
properties
-
-
Constructor Details
-
DataType
public DataType()
-
-
Method Details
-
getName
INTERNAL: Gets the name of the datatype. -
setName
INTERNAL: Sets the name of the datatype. -
getProperties
INTERNAL: Gets the table properties. -
getProperty
INTERNAL: Gets the property value -
addProperty
INTERNAL: Adds table property. -
removeProperty
INTERNAL: Removes table property. -
getType
INTERNAL: Gets the datatype type. -
setType
INTERNAL: Sets the datatype type. -
getSize
INTERNAL: Gets the datatype size. -
setSize
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.
-