Class UniqueNumberGeneratorExtended
java.lang.Object
de.uplanet.lucy.server.util.numbergenerator.UniqueNumberGeneratorExtended
Generates a unique id number per Signature. (e.g. ITS-20051104-002)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getExtendedNumber
(de.uplanet.jdbc.JdbcConnection p_conn, FieldInfo p_field, String p_strSearchString, String p_strGenerateString, int p_iIndexNoStart, int p_iIndexNoEnd) Stores the last number within a map per fieldGuid and searchString.static void
Reset the number generator for the passed field GUID.
-
Constructor Details
-
UniqueNumberGeneratorExtended
public UniqueNumberGeneratorExtended()
-
-
Method Details
-
getExtendedNumber
public static String getExtendedNumber(de.uplanet.jdbc.JdbcConnection p_conn, FieldInfo p_field, String p_strSearchString, String p_strGenerateString, int p_iIndexNoStart, int p_iIndexNoEnd) throws de.uplanet.jdbc.sqlhelper.SqlHelperException, SQLException Stores the last number within a map per fieldGuid and searchString. If the map has no entry it gets the last out of the database. Generates the new number, stores it and returns it.- Parameters:
p_conn
- Database Connection for the Datatablep_field
- Fielddescriptionp_strSearchString
- SearchStringp_strGenerateString
- String for generating the next numberp_iIndexNoStart
- index start for the number to countp_iIndexNoEnd
- index end for the number to count- Returns:
- new generated number String
- Throws:
de.uplanet.jdbc.sqlhelper.SqlHelperException
SQLException
-
reset
Reset the number generator for the passed field GUID.
-