* Added synchronization to control access to the share Id connection ( DB.getConnectionId() )

This commit is contained in:
Heng Sin Low 2007-01-06 08:27:05 +00:00
parent b11e48cd60
commit 85be30f8c4
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class MSequence extends X_AD_Sequence
* @param trxName optional Transaction Name * @param trxName optional Transaction Name
* @return next no or (-1=not found, -2=error) * @return next no or (-1=not found, -2=error)
*/ */
public static int getNextID (int AD_Client_ID, String TableName, String trxName) public static synchronized int getNextID (int AD_Client_ID, String TableName, String trxName)
{ {
if (TableName == null || TableName.length() == 0) if (TableName == null || TableName.length() == 0)
throw new IllegalArgumentException("TableName missing"); throw new IllegalArgumentException("TableName missing");