com.bm.datagen.random
Class RandomLongGenerator

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

public class RandomLongGenerator
extends BaseUniqueValueGenerator<java.lang.Long>
implements Generator<java.lang.Long>

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

Author:
Daniel Wiese

Constructor Summary
RandomLongGenerator()
           
 
Method Summary
protected  java.lang.Long generateCadidate()
          This method genrates a cadidate - thiscandidate will be automatcally checked for uniqueness
 java.lang.Long getValue()
          Returns the next Long.
 
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

RandomLongGenerator

public RandomLongGenerator()
Method Detail

getValue

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

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

generateCadidate

protected java.lang.Long 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.Long>
Returns:
- a cadidate


Copyright © 2008. All Rights Reserved.