ThinkUI Data Generator 1.0.2 API

thinkui.datagen.generators
Class ObjectIdGenerator

java.lang.Object
  extended bythinkui.datagen.AbstractAttributeValueGenerator
      extended bythinkui.datagen.generators.ObjectIdGenerator
All Implemented Interfaces:
AttributeValueGenerator, java.lang.Cloneable

public class ObjectIdGenerator
extends AbstractAttributeValueGenerator

Implements an AttributeValueGenerator for generating Object ID values. The values will be distributed based on the specified probability model and will be bounded between the optional minimum and maximum values of the attribute value range constraints.


Field Summary
 
Fields inherited from interface thinkui.datagen.AttributeValueGenerator
ALL_MODES, BERNOULLI_MODE, BINOMIAL_MODE, CONSTANT_MODE, DEFAULT_MODE, EXPONENTIAL_MODE, MILLIS_PER_DAY, MILLIS_PER_HOUR, MILLIS_PER_MINUTE, MILLIS_PER_SECOND, NORMAL_MODE, POISON_MODE, SEQUENTIAL_MODE, UNIFORM_MODE
 
Constructor Summary
ObjectIdGenerator()
          ObjectIdGenerator constructor.
ObjectIdGenerator(Attribute attribute)
          ObjectIdGenerator constructor.
 
Method Summary
 java.lang.Object generateValue()
          Generate a value for the attribute.
 thinkui.db.jdbc.JDBCDataObjectManager getDataObjectManager()
           
 java.lang.String getMaxValueExpr()
           
 java.lang.String getMinValueExpr()
           
 java.lang.String getSequenceName()
           
 void initGenerator()
          Initialize the attribute generator.
 void setDataObjectManager(thinkui.db.jdbc.JDBCDataObjectManager dataObjectManager)
          Sets the data object manager to use to lookup the data objects.
 void setMaxValueExpr(java.lang.String maxValueExpr)
          Sets the SQL expression to execute to determine the max value.
 void setMinValueExpr(java.lang.String minValueExpr)
          Sets the SQL expression to execute to determine the min value.
 void setSequenceName(java.lang.String sequenceName)
          Sets the sequence name to select to lookup the object id.
 
Methods inherited from class thinkui.datagen.AbstractAttributeValueGenerator
copy, createGenerator, getAttribute, getConstantValue, getCount, getCountAsInt, getDataObject, getDataObjectMap, getGeneratorMode, getMaxValue, getMeanIndex, getMeanIndexAsDouble, getMeanLength, getMeanLengthAsDouble, getMeanValue, getMeanValueAsDouble, getMinMaxAttributeType, getMinValue, getParameterData, getParentDataObject, getProbability, getProbabilityAsDouble, getProbabilityNull, getStdDevValue, getStdDevValueAsDouble, getValueAttributeName, isDataDependent, isMultiValued, isParentDataDependent, setAttribute, setConstantValue, setCount, setDataDependent, setDataObject, setDataObjectMap, setGeneratorMode, setMaxValue, setMeanIndex, setMeanLength, setMeanValue, setMinValue, setMultiValued, setParentDataDependent, setParentDataObject, setProbability, setProbabilityNull, setStdDevValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIdGenerator

public ObjectIdGenerator()
ObjectIdGenerator constructor.


ObjectIdGenerator

public ObjectIdGenerator(Attribute attribute)
ObjectIdGenerator constructor.

Method Detail

generateValue

public final java.lang.Object generateValue()
                                     throws java.lang.Exception
Generate a value for the attribute.

Specified by:
generateValue in interface AttributeValueGenerator
Specified by:
generateValue in class AbstractAttributeValueGenerator
Throws:
java.lang.Exception

getDataObjectManager

public final thinkui.db.jdbc.JDBCDataObjectManager getDataObjectManager()
Returns:
the data object manager to use to lookup the data objects.

getMaxValueExpr

public final java.lang.String getMaxValueExpr()
Returns:
the SQL expression to execute to determine the max value or null.

getMinValueExpr

public final java.lang.String getMinValueExpr()
Returns:
the SQL expression to execute to determine the min value or null.

getSequenceName

public final java.lang.String getSequenceName()
Returns:
the sequence name to select to lookup the object id or null.

initGenerator

public final void initGenerator()
                         throws java.lang.Exception
Initialize the attribute generator.

Specified by:
initGenerator in interface AttributeValueGenerator
Overrides:
initGenerator in class AbstractAttributeValueGenerator
Throws:
java.lang.Exception

setDataObjectManager

public final void setDataObjectManager(thinkui.db.jdbc.JDBCDataObjectManager dataObjectManager)
Sets the data object manager to use to lookup the data objects.


setMaxValueExpr

public final void setMaxValueExpr(java.lang.String maxValueExpr)
Sets the SQL expression to execute to determine the max value.


setMinValueExpr

public final void setMinValueExpr(java.lang.String minValueExpr)
Sets the SQL expression to execute to determine the min value.


setSequenceName

public final void setSequenceName(java.lang.String sequenceName)
Sets the sequence name to select to lookup the object id.


ThinkUI Data Generator 1.0.2 API

Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.