Interface KeyGenerator

  • All Known Subinterfaces:
    KeyGeneratorControls
    All Known Implementing Classes:
    DbKeyGenerator
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface KeyGenerator
    Generate unique keys. Should be used for records only.
    • Method Detail

      • nextKey

        long nextKey()
        Returns the next key of a record and updates the key generator.
        Returns:
        the next key for a new record