Class UniqueNumberGenerator
java.lang.Object
de.uplanet.lucy.server.businesslogic.util.UniqueNumberGenerator
Generates a unique id number.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UniqueNumberGenerator
public UniqueNumberGenerator()
-
-
Method Details
-
get
public static int get(de.uplanet.jdbc.JdbcConnection p_conn, FieldInfo p_fieldInfo) throws SQLException - Parameters:
p_conn
- database connection used to retrieve an initial number valuep_fieldInfo
- The data field that should be incremented.- Returns:
- a unique number for the guid
- Throws:
SQLException
-
getCurrentNumber
- Parameters:
p_fieldInfo
- The data field that should be incremented.- Returns:
- get the next unique number without generating a new one. (Twice calls will get the same number)
-
reset
reset number generation for passed field guid
-