Class DateGenerator
- All Implemented Interfaces:
DataGenerator<Date>
Generates random
Date values drawn uniformly from a millisecond instant in the
half-open range [start, end) (start inclusive, end exclusive). By default the range spans
from the Unix epoch up to (but excluding)
AbstractBuilder.DEFAULT_REFERENCE plus 100 days. Backed by the builder's seeded
RandomGenerator, so the same seed yields identical output.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class AbstractDataGenerator
random, randomUtils -
Method Summary
Methods inherited from class AbstractDataGenerator
generateAndSet, generateAsString, reseed, set
-
Method Details
-
generate
Description copied from interface:DataGeneratorGenerates a random value of type T.- Returns:
- a generated value, may be null if the generator supports nullable columns
-
get
Description copied from interface:DataGeneratorRetrieves a value from a ResultSet column.- Parameters:
resultSet- the result set to read fromcolumnIndex- the 1-based column index- Returns:
- the value from the result set, properly cast to type T
- Throws:
SQLException- if the database operation fails
-