java.lang.Object
org.hibernate.id.AbstractUUIDGenerator
org.hibernate.id.UUIDHexGenerator
- All Implemented Interfaces:
- 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sep
private java.lang.String sep
UUIDHexGenerator
public UUIDHexGenerator()
format
protected java.lang.String format(int intval)
format
protected java.lang.String format(short shortval)
generate
public java.io.Serializable generate(org.hibernate.engine.SessionImplementor session,
java.lang.Object obj)
- Description copied from interface:
IdentifierGenerator
- Generate a new identifier.
- Specified by:
generate in interface IdentifierGenerator
configure
public void configure(org.hibernate.type.Type type,
java.util.Properties params,
org.hibernate.dialect.Dialect d)
- Description copied from interface:
Configurable
- Configure this instance, given the value of parameters
specified by the user as <param> elements.
This method is called just once, following instantiation.
- Specified by:
configure in interface Configurable
main
public static void main(java.lang.String[] args)
throws java.lang.Exception