|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.datagenerator.ant.DelegateColumnDefElement
The DelegateColumnDefElement provides an Ant wrapper for creating a ColumnDef object from Ant. The ColumnDef could be one of three types: GenerateColumnDef, ImportColumnDef and ExportColumnDef.
| Field Summary | |
protected java.util.Map |
plugins
The plugin mapping for custom types and classes. |
| Constructor Summary | |
DelegateColumnDefElement(java.util.Map plugins)
Creates a DelegateColumnDefElement with the given mapping between custom types and implementations. |
|
| Method Summary | |
void |
addConfiguredProperty(PropertyElement element)
Adds a configured property element to the column def. |
ColumnDef |
createColumnDef(int entityDefType)
Creates a ColumnDef based on the given entity type (ie. |
ColumnValueGeneratorElement |
createGenerator()
Returns a new column value generator element. |
ColumnTranslatorElement |
createTranslator()
Returns a new column value generator element. |
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. |
void |
setTranslator(java.lang.String className)
Sets the column translator used on every row's column value during the import. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map plugins
| Constructor Detail |
public DelegateColumnDefElement(java.util.Map plugins)
plugins - the plugin mappings| Method Detail |
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 elementpublic ColumnValueGeneratorElement createGenerator()
public void setTranslator(java.lang.String className)
className - column translatorpublic ColumnTranslatorElement createTranslator()
public ColumnDef createColumnDef(int entityDefType)
entityDefType - the entity type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||