thinkui.datagen.ant
Class GenerateTask.AttributeGenData
java.lang.Object
thinkui.datagen.ant.GenerateTask.AttributeGenData
- Enclosing class:
- GenerateTask
- public class GenerateTask.AttributeGenData
- extends java.lang.Object
Encapsulate the information for an attribute. The following are the
examples of usage for various attribute types.
String type with values dynamically generated from an SQL query:
<attribute name="person_name" caption="Person Name" type="String" required="true" access="R/W">
<generator class="DynamicDataGenerator">
<param name="connection_name" value="thinkui"/>
<param name="sql_query">SELECT first_name ||' '||last_name AS PERSON_NAME FROM person ORDER BY 1 desc</param>
<param name="attribute_name" value="person_name"/>
</generator>
</attribute>
Long type that is computed (e.g. from an auto incrementing database column):
<attribute name="ID" caption="Id" type="Long" required="true" access="R/C" constraints="" computed="true">
<generator class="ObjectIdGenerator" generatorMode="SEQUENTIAL" minValue="1"/>
</attribute>
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenerateTask.AttributeGenData
public GenerateTask.AttributeGenData()
createFormat
public final GenerateTask.FormatData createFormat()
createGenerator
public final GenerateTask.GeneratorData createGenerator()
getAccess
public final java.lang.String getAccess()
getCaption
public final java.lang.String getCaption()
getConstraints
public final java.lang.String getConstraints()
getFormat
public final GenerateTask.FormatData getFormat()
getGenerator
public final GenerateTask.GeneratorData getGenerator()
getName
public final java.lang.String getName()
getType
public final java.lang.String getType()
isComputed
public final boolean isComputed()
isRequired
public final boolean isRequired()
isVisible
public final boolean isVisible()
setAccess
public final void setAccess(java.lang.String access)
setCaption
public final void setCaption(java.lang.String caption)
setComputed
public final void setComputed(boolean computed)
setConstraints
public final void setConstraints(java.lang.String constraints)
setName
public final void setName(java.lang.String name)
setRequired
public final void setRequired(boolean required)
setType
public final void setType(java.lang.String type)
setVisible
public final void setVisible(boolean visible)
Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.