|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jdbcimporter.ant.ColumnDefElement
The ColumnDefElement provides an Ant wrapper for setting a ColumnDef object from Ant.
| Field Summary | |
protected ColumnDef |
columnDef
The wrapped column definition. |
| Constructor Summary | |
ColumnDefElement()
|
|
| Method Summary | |
void |
addConfiguredProperty(PropertyElement element)
Adds a configured property element to the column def. |
ColumnDef |
getColumnDef()
Returns the column definition. |
void |
setDefaultValue(java.lang.String newDefaultValue)
Sets the default value of the column. |
void |
setFormat(java.lang.String pattern)
Sets the format pattern used when parsing the data in the file. |
void |
setName(java.lang.String newName)
Sets the name of the column. |
void |
setSQLType(java.lang.String newType)
Sets the sql type of the column. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ColumnDef columnDef
| Constructor Detail |
public ColumnDefElement()
| Method Detail |
public ColumnDef getColumnDef()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if the column definition's name has not been set.public void setName(java.lang.String newName)
newName - name of the columnpublic void setSQLType(java.lang.String newType)
newType - name (case-insensitive) of the sql type that equals
the name of a static variable defined in java.sql.Typespublic void setDefaultValue(java.lang.String newDefaultValue)
newDefaultValue - default value for this columnpublic void setFormat(java.lang.String pattern)
pattern - the format patternpublic void addConfiguredProperty(PropertyElement element)
element - the property element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||