|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.engine.database.model.Domain
public class Domain
A Class for holding data about a column used in an Application.
| Constructor Summary | |
|---|---|
Domain()
Creates a new instance with a null name. |
|
Domain(Domain domain)
|
|
Domain(SchemaType type)
Creates a new Domain and set the name |
|
Domain(SchemaType type,
String sqlType)
Creates a new Domain and set the name |
|
Domain(SchemaType type,
String sqlType,
String size)
Creates a new Domain and set the name |
|
Domain(SchemaType type,
String sqlType,
String size,
String scale)
Creates a new Domain and set the name |
|
Domain(String name)
Creates a new Domain and set the name |
|
| Method Summary | |
|---|---|
void |
copy(Domain domain)
|
String |
getDefaultSetting()
Deprecated. |
String |
getDefaultValue()
|
String |
getDescription()
|
String |
getName()
|
String |
getScale()
|
String |
getSize()
|
String |
getSqlType()
|
SchemaType |
getType()
|
void |
loadFromXML(Attributes attrib,
Platform platform)
Imports a column from an XML specification |
String |
printSize()
Return the size and scale in brackets for use in an sql schema. |
void |
replaceDefaultValue(String value)
Replaces the default value if the new value is not null. |
void |
replaceScale(String value)
Replaces the size if the new value is not null. |
void |
replaceSize(String value)
Replaces the size if the new value is not null. |
void |
replaceType(String value)
Replaces the default value if the new value is not null. |
void |
setDefaultValue(String defaultValue)
|
void |
setDescription(String description)
|
void |
setName(String name)
|
void |
setScale(String scale)
|
void |
setSize(String size)
|
void |
setSqlType(String sqlType)
|
void |
setType(SchemaType torqueType)
|
void |
setType(String torqueType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Domain()
null name.
public Domain(String name)
name - column namepublic Domain(SchemaType type)
public Domain(SchemaType type,
String sqlType)
public Domain(SchemaType type,
String sqlType,
String size,
String scale)
public Domain(SchemaType type,
String sqlType,
String size)
public Domain(Domain domain)
| Method Detail |
|---|
public void copy(Domain domain)
public void loadFromXML(Attributes attrib,
Platform platform)
public String getDescription()
public void setDescription(String description)
description - The description to set.public String getName()
public void setName(String name)
name - The name to set.public String getScale()
public void setScale(String scale)
scale - The scale to set.public void replaceScale(String value)
value - The size to set.public String getSize()
public void setSize(String size)
size - The size to set.public void replaceSize(String value)
value - The size to set.public SchemaType getType()
public void setType(SchemaType torqueType)
torqueType - The torqueType to set.public void setType(String torqueType)
torqueType - The torqueType to set.public void replaceType(String value)
value - The defaultValue to set.public String getDefaultValue()
public String getDefaultSetting()
public void setDefaultValue(String defaultValue)
defaultValue - The defaultValue to set.public void replaceDefaultValue(String value)
value - The defaultValue to set.public String getSqlType()
public void setSqlType(String sqlType)
sqlType - The sqlType to set.public String printSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||