|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jdbcimporter.ant.DelegateColumnDefElement
The DelegateColumnDefElement provides an Ant wrapper for creating a ColumnDef object from Ant. The ColumnDef could be one of two types: GenerateColumnDef or ImportColumnDef.
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. |
ColumnValueGeneratorElement |
createGenerator()
Returns a new column value generator element. |
ColumnTranslatorElement |
createTranslator()
Returns a new column value generator element. |
ColumnDef |
getColumnDef()
Creates a ColumnDef based on the given entity type (ie. |
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 |
setGenerate(boolean flag)
Sets the generate flag to indicate whether this column will be generated. |
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 mappingsMethod 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 void setGenerate(boolean flag)
flag
- whether the column values will be generated or notpublic ColumnDef getColumnDef()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |