Interface PlatformIdGenerator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String AUTO_UUID
      The name of the default UUID generator.
    • Method Detail

      • getName

        String getName()
        Return the name of the IdGenerator. For sequences this is the sequence name.
      • isDbSequence

        boolean isDbSequence()
        Return true if this is a DB sequence.
      • nextId

        Object nextId​(Transaction transaction)
        return the next unique identity value.

        Note the transaction passed in can be null.

      • preAllocateIds

        void preAllocateIds​(int allocateSize)
        Is called prior to inserting OneToMany's as an indication that a number of beans are likely to need id's shortly.

        Can be used as a performance optimisation to prefetch a number of Id's. Especially when the allocateSize is very large.