com.bm.datagen.random
Class RandomStringGenerator

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

public class RandomStringGenerator
extends BaseUniqueValueGenerator<java.lang.String>
implements Generator<java.lang.String>

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

Author:
Daniel Wiese

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

RandomStringGenerator

public RandomStringGenerator()
Method Detail

getValue

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

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

generateCadidate

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


Copyright © 2008. All Rights Reserved.