public class Domain
extends java.lang.Object
implements java.io.Serializable
| 构造器和说明 |
|---|
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,
java.lang.String sqlType)
Creates a new Domain and set the name
|
Domain(SchemaType type,
java.lang.String sqlType,
java.lang.String size)
Creates a new Domain and set the name
|
Domain(SchemaType type,
java.lang.String sqlType,
java.lang.String size,
java.lang.String scale)
Creates a new Domain and set the name
|
Domain(java.lang.String name)
Creates a new Domain and set the name
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
copy(Domain domain) |
java.lang.String |
getDefaultSetting()
已过时。
|
java.lang.String |
getDefaultValue() |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
java.lang.String |
getScale() |
java.lang.String |
getSize() |
java.lang.String |
getSqlType() |
SchemaType |
getType() |
void |
loadFromXML(org.xml.sax.Attributes attrib,
Platform platform)
Imports a column from an XML specification
|
java.lang.String |
printSize()
Return the size and scale in brackets for use in an sql schema.
|
void |
replaceDefaultValue(java.lang.String value)
Replaces the default value if the new value is not null.
|
void |
replaceScale(java.lang.String value)
Replaces the size if the new value is not null.
|
void |
replaceSize(java.lang.String value)
Replaces the size if the new value is not null.
|
void |
replaceType(java.lang.String value)
Replaces the default value if the new value is not null.
|
void |
setDefaultValue(java.lang.String defaultValue) |
void |
setDescription(java.lang.String description) |
void |
setName(java.lang.String name) |
void |
setScale(java.lang.String scale) |
void |
setSize(java.lang.String size) |
void |
setSqlType(java.lang.String sqlType) |
void |
setType(SchemaType torqueType) |
void |
setType(java.lang.String torqueType) |
public Domain()
null name.public Domain(java.lang.String name)
name - column namepublic Domain(SchemaType type)
public Domain(SchemaType type, java.lang.String sqlType)
public Domain(SchemaType type, java.lang.String sqlType, java.lang.String size, java.lang.String scale)
public Domain(SchemaType type, java.lang.String sqlType, java.lang.String size)
public Domain(Domain domain)
public void copy(Domain domain)
public void loadFromXML(org.xml.sax.Attributes attrib,
Platform platform)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description to set.public java.lang.String getName()
public void setName(java.lang.String name)
name - The name to set.public java.lang.String getScale()
public void setScale(java.lang.String scale)
scale - The scale to set.public void replaceScale(java.lang.String value)
value - The size to set.public java.lang.String getSize()
public void setSize(java.lang.String size)
size - The size to set.public void replaceSize(java.lang.String value)
value - The size to set.public SchemaType getType()
public void setType(SchemaType torqueType)
torqueType - The torqueType to set.public void setType(java.lang.String torqueType)
torqueType - The torqueType to set.public void replaceType(java.lang.String value)
value - The defaultValue to set.public java.lang.String getDefaultValue()
public java.lang.String getDefaultSetting()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue - The defaultValue to set.public void replaceDefaultValue(java.lang.String value)
value - The defaultValue to set.public java.lang.String getSqlType()
public void setSqlType(java.lang.String sqlType)
sqlType - The sqlType to set.public java.lang.String printSize()