com.ninja_squad.dbsetup.generator
Interface ValueGenerator<T>
- Type Parameters:
 T - the type of value that this generator generates
- All Known Implementing Classes: 
 - DateSequenceValueGenerator, SequenceValueGenerator, StringSequenceValueGenerator
 
public interface ValueGenerator<T>
A value generator allows generating values for a specific column in a sequence of inserts. This is useful when you
 don't want to specify a value for each of the inserted rows in a table, and when a default value is not an option
 either because, for example, the column has a unique constraint.
- See Also:
 for useful implementations of this interface
| 
Method Summary | 
 T | 
nextValue()
 
          Called each time a new row is inserted, to get the value to insert in the column using this value generator. | 
 
nextValue
T nextValue()
- Called each time a new row is inserted, to get the value to insert in the column using this value generator.
- Returns:
 - the value to insert in the column associated with this generator.