Class UUIDGenerator

All Implemented Interfaces:
DataGenerator<UUID>

public class UUIDGenerator extends AbstractDataGenerator<UUID>
Generator for UUID (Universally Unique Identifier) values. Produces random UUIDs for database columns that store unique identifiers. The generated UUIDs are deterministic based on the provided random seed.
Since:
1.0.0
  • Method Details

    • generate

      public UUID generate()
      Description copied from interface: DataGenerator
      Generates a random value of type T.
      Returns:
      a generated value, may be null if the generator supports nullable columns
    • get

      public UUID get(ResultSet resultSet, int columnIndex) throws SQLException
      Description copied from interface: DataGenerator
      Retrieves a value from a ResultSet column.
      Parameters:
      resultSet - the result set to read from
      columnIndex - the 1-based column index
      Returns:
      the value from the result set, properly cast to type T
      Throws:
      SQLException - if the database operation fails