| java.lang.Object org.apache.torque.engine.database.model.Domain
All known Subclasses: org.apache.torque.engine.database.model.SizedForBitDataDomain,
Domain | public Domain()(Code) | | Creates a new instance with a null name.
|
Domain | public Domain(String name)(Code) | | Creates a new Domain and set the name
Parameters: name - column name |
Domain | public Domain(SchemaType type)(Code) | | Creates a new Domain and set the name
|
getDefaultSetting | public String getDefaultSetting()(Code) | | Return a string that will give this column a default value.
|
getDefaultValue | public String getDefaultValue()(Code) | | Returns the defaultValue. |
getDescription | public String getDescription()(Code) | | Returns the description. |
getSqlType | public String getSqlType()(Code) | | Returns the sqlType. |
loadFromXML | public void loadFromXML(Attributes attrib, Platform platform)(Code) | | Imports a column from an XML specification
|
printSize | public String printSize()(Code) | | Return the size and scale in brackets for use in an sql schema.
size and scale or an empty String if there are no valuesavailable. |
replaceDefaultValue | public void replaceDefaultValue(String value)(Code) | | Replaces the default value if the new value is not null.
Parameters: value - The defaultValue to set. |
replaceScale | public void replaceScale(String value)(Code) | | Replaces the size if the new value is not null.
Parameters: value - The size to set. |
replaceSize | public void replaceSize(String value)(Code) | | Replaces the size if the new value is not null.
Parameters: value - The size to set. |
replaceType | public void replaceType(String value)(Code) | | Replaces the default value if the new value is not null.
Parameters: value - The defaultValue to set. |
setDefaultValue | public void setDefaultValue(String defaultValue)(Code) | | Parameters: defaultValue - The defaultValue to set. |
setDescription | public void setDescription(String description)(Code) | | Parameters: description - The description to set. |
setName | public void setName(String name)(Code) | | Parameters: name - The name to set. |
setScale | public void setScale(String scale)(Code) | | Parameters: scale - The scale to set. |
setSize | public void setSize(String size)(Code) | | Parameters: size - The size to set. |
setSqlType | public void setSqlType(String sqlType)(Code) | | Parameters: sqlType - The sqlType to set. |
setType | public void setType(SchemaType torqueType)(Code) | | Parameters: torqueType - The torqueType to set. |
setType | public void setType(String torqueType)(Code) | | Parameters: torqueType - The torqueType to set. |
|
|