程序包 org.hibernate.id

类 UUIDHexGenerator

  • 所有已实现的接口:
    Configurable, IdentifierGenerator

    public class UUIDHexGenerator
    extends AbstractUUIDGenerator
    implements Configurable
    uuid

    A UUIDGenerator that returns a string of length 32, This string will consist of only hex digits. Optionally, the string may be generated with separators between each component of the UUID.

    Mapping parameters supported: separator.

    作者:
    Gavin King
    • 构造器详细资料

      • UUIDHexGenerator

        public UUIDHexGenerator()
    • 方法详细资料

      • configure

        public void configure​(Type type,
                              Properties params,
                              ServiceRegistry serviceRegistry)
                       throws MappingException
        从接口复制的说明: Configurable
        Configure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.
        指定者:
        configure 在接口中 Configurable
        参数:
        type - The id property type descriptor
        params - param values, keyed by parameter name
        serviceRegistry - Access to service that may be needed.
        抛出:
        MappingException
      • format

        protected String format​(int intValue)
      • format

        protected String format​(short shortValue)