org.apache.cayenne.util
Class IDUtil
java.lang.Object
org.apache.cayenne.util.IDUtil
public class IDUtil
- extends java.lang.Object
helper class to generate pseudo-GUID sequences.
- Author:
- Andrus Adamchik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
appendFormattedByte
public static void appendFormattedByte(java.lang.StringBuffer buffer,
byte byteValue)
- Prints a byte value to a StringBuffer as a double digit hex value.
- Since:
- 1.2
pseudoUniqueByteSequence
public static byte[] pseudoUniqueByteSequence(int length)
- Parameters:
length
- the length of returned byte[]
- Returns:
- A pseudo-unique byte array of the specified length. Length must be at least
16 bytes, or an exception is thrown.
- Since:
- 1.0.2
pseudoUniqueSecureByteSequence
public static byte[] pseudoUniqueSecureByteSequence(int length)
pseudoUniqueByteSequence8
public static final byte[] pseudoUniqueByteSequence8()
pseudoUniqueByteSequence16
public static final byte[] pseudoUniqueByteSequence16()
- Returns:
- A pseudo unique 16-byte array.
pseudoUniqueSecureByteSequence16
public static byte[] pseudoUniqueSecureByteSequence16()
- Returns:
- A pseudo unique digested 16-byte array.
Copyright © 2001-2006 Apache.org All Rights Reserved.