org.springframework.util

Class JdkIdGenerator

  • java.lang.Object
    • org.springframework.util.JdkIdGenerator
  • All Implemented Interfaces:
    IdGenerator


    public class JdkIdGenerator
    extends java.lang.Object
    implements IdGenerator
    An IdGenerator that calls UUID.randomUUID().
    Since:
    4.1.5
    Author:
    Rossen Stoyanchev
    • Constructor Summary

      Constructors 
      Constructor and Description
      JdkIdGenerator() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.UUID generateId()
      Generate a new identifier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JdkIdGenerator

        public JdkIdGenerator()
    • Method Detail

      • generateId

        public java.util.UUID generateId()
        Description copied from interface: IdGenerator
        Generate a new identifier.
        Specified by:
        generateId in interface IdGenerator
        Returns:
        the generated identifier