de.uplanet.lucy.server.util.numbergenerator
Class UniqueNumberGeneratorExtended

java.lang.Object
  extended by de.uplanet.lucy.server.util.numbergenerator.UniqueNumberGeneratorExtended

@Scriptable
public class UniqueNumberGeneratorExtended
extends java.lang.Object

Generates a unique id number per Signature. (e.g. ITS-20051104-002)

Version:
$Revision: 80576 $

Constructor Summary
UniqueNumberGeneratorExtended()
           
 
Method Summary
static java.lang.String getExtendedNumber(de.uplanet.jdbc.JdbcConnection p_conn, FieldInfo p_field, java.lang.String p_strSearchString, java.lang.String p_strGenerateString, int p_iIndexNoStart, int p_iIndexNoEnd)
          Stores the last number within a map per fieldGuid and searchString.
static void reset(java.lang.String p_strGuid)
          Reset the number generator for the passed field GUID.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueNumberGeneratorExtended

public UniqueNumberGeneratorExtended()
Method Detail

getExtendedNumber

public static java.lang.String getExtendedNumber(de.uplanet.jdbc.JdbcConnection p_conn,
                                                 FieldInfo p_field,
                                                 java.lang.String p_strSearchString,
                                                 java.lang.String p_strGenerateString,
                                                 int p_iIndexNoStart,
                                                 int p_iIndexNoEnd)
                                          throws de.uplanet.jdbc.sqlhelper.SqlHelperException,
                                                 java.sql.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 Datatable
p_field - Fielddescription
p_strSearchString - SearchString
p_strGenerateString - String for generating the next number
p_iIndexNoStart - index start for the number to count
p_iIndexNoEnd - index end for the number to count
Returns:
new generated number String
Throws:
de.uplanet.jdbc.sqlhelper.SqlHelperException
java.sql.SQLException

reset

public static void reset(java.lang.String p_strGuid)
Reset the number generator for the passed field GUID.



Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.