com.bm.datagen.random
Class RandomIntegerGenerator

java.lang.Object
  extended by com.bm.datagen.utils.BaseUniqueValueGenerator<java.lang.Integer>
      extended by com.bm.datagen.random.RandomIntegerGenerator
All Implemented Interfaces:
Generator<java.lang.Integer>

public class RandomIntegerGenerator
extends BaseUniqueValueGenerator<java.lang.Integer>
implements Generator<java.lang.Integer>

Generates random Integer values - distinguish between PK and non PK fields.

Author:
Daniel Wiese

Constructor Summary
RandomIntegerGenerator()
           
 
Method Summary
protected  java.lang.Integer generateCadidate()
          This method genrates a cadidate - thiscandidate will be automatcally checked for uniqueness
 java.lang.Integer getValue()
          Returns the next Integer.
 
Methods inherited from class com.bm.datagen.utils.BaseUniqueValueGenerator
getUniqueValueForEachPkField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomIntegerGenerator

public RandomIntegerGenerator()
Method Detail

getValue

public java.lang.Integer getValue()
Returns the next Integer.

Specified by:
getValue in interface Generator<java.lang.Integer>
Returns:
- the generated value
See Also:
Generator.getValue()

generateCadidate

protected java.lang.Integer generateCadidate()
Description copied from class: BaseUniqueValueGenerator
This method genrates a cadidate - thiscandidate will be automatcally checked for uniqueness

Specified by:
generateCadidate in class BaseUniqueValueGenerator<java.lang.Integer>
Returns:
- a cadidate


Copyright © 2008. All Rights Reserved.