Interface PersistentIdentifierGenerator

All Superinterfaces:
IdentifierGenerator
All Known Implementing Classes:
MultipleHiLoPerTableGenerator, SequenceGenerator, SequenceHiLoGenerator, SequenceIdentityGenerator, SequenceStyleGenerator, TableGenerator, TableGenerator, TableHiLoGenerator

public interface PersistentIdentifierGenerator extends IdentifierGenerator
An IdentifierGenerator that requires creation of database objects.

All PersistentIdentifierGenerators that also implement Configurable have access to a special mapping parameter: schema
See Also:
  • Field Details

  • Method Details

    • sqlCreateStrings

      String[] sqlCreateStrings(Dialect dialect) throws HibernateException
      The SQL required to create the underlying database objects.
      Parameters:
      dialect - The dialect against which to generate the create command(s)
      Returns:
      The create command(s)
      Throws:
      HibernateException - problem creating the create command(s)
    • sqlDropStrings

      String[] sqlDropStrings(Dialect dialect) throws HibernateException
      The SQL required to remove the underlying database objects.
      Parameters:
      dialect - The dialect against which to generate the drop command(s)
      Returns:
      The drop command(s)
      Throws:
      HibernateException - problem creating the drop command(s)
    • generatorKey

      Object generatorKey()
      Return a key unique to the underlying database objects. Prevents us from trying to create/remove them multiple times.
      Returns:
      Object an identifying key for this generator