This commit is contained in:
parent
7f02b4f4e9
commit
c7a5b83f6e
|
@ -64,7 +64,7 @@ public class MSequence extends X_AD_Sequence
|
||||||
/** Log Level for Next ID Call */
|
/** Log Level for Next ID Call */
|
||||||
private static final Level LOGLEVEL = Level.ALL;
|
private static final Level LOGLEVEL = Level.ALL;
|
||||||
|
|
||||||
public static synchronized int getNextID (int AD_Client_ID, String TableName)
|
public static int getNextID (int AD_Client_ID, String TableName)
|
||||||
{
|
{
|
||||||
return getNextID(AD_Client_ID, TableName, null);
|
return getNextID(AD_Client_ID, TableName, null);
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ public class MSequence extends X_AD_Sequence
|
||||||
* @param trxName deprecated.
|
* @param trxName deprecated.
|
||||||
* @return next no or (-1=not found, -2=error)
|
* @return next no or (-1=not found, -2=error)
|
||||||
*/
|
*/
|
||||||
public static synchronized int getNextID (int AD_Client_ID, String TableName, String trxName)
|
public static 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");
|
||||||
|
@ -341,7 +341,7 @@ public class MSequence extends X_AD_Sequence
|
||||||
* @param trxName optional Transaction Name
|
* @param trxName optional Transaction Name
|
||||||
* @return document no or null
|
* @return document no or null
|
||||||
*/
|
*/
|
||||||
public static synchronized String getDocumentNo (int AD_Client_ID, String TableName, String trxName)
|
public static String getDocumentNo (int AD_Client_ID, String TableName, String trxName)
|
||||||
{
|
{
|
||||||
return getDocumentNo(AD_Client_ID, TableName, trxName, null);
|
return getDocumentNo(AD_Client_ID, TableName, trxName, null);
|
||||||
|
|
||||||
|
@ -354,7 +354,7 @@ public class MSequence extends X_AD_Sequence
|
||||||
* @param PO
|
* @param PO
|
||||||
* @return document no or null
|
* @return document no or null
|
||||||
*/
|
*/
|
||||||
public static synchronized String getDocumentNo (int AD_Client_ID, String TableName, String trxName, PO po)
|
public static String getDocumentNo (int AD_Client_ID, String TableName, String trxName, PO po)
|
||||||
{
|
{
|
||||||
if (TableName == null || TableName.length() == 0)
|
if (TableName == null || TableName.length() == 0)
|
||||||
throw new IllegalArgumentException("TableName missing");
|
throw new IllegalArgumentException("TableName missing");
|
||||||
|
@ -607,7 +607,7 @@ public class MSequence extends X_AD_Sequence
|
||||||
* @param definite asking for a definitive or temporary sequence
|
* @param definite asking for a definitive or temporary sequence
|
||||||
* @return document no or null
|
* @return document no or null
|
||||||
*/
|
*/
|
||||||
public static synchronized String getDocumentNo (int C_DocType_ID, String trxName, boolean definite)
|
public static String getDocumentNo (int C_DocType_ID, String trxName, boolean definite)
|
||||||
{
|
{
|
||||||
return getDocumentNo(C_DocType_ID, trxName, definite, null);
|
return getDocumentNo(C_DocType_ID, trxName, definite, null);
|
||||||
}
|
}
|
||||||
|
@ -620,7 +620,7 @@ public class MSequence extends X_AD_Sequence
|
||||||
* @param po
|
* @param po
|
||||||
* @return document no or null
|
* @return document no or null
|
||||||
*/
|
*/
|
||||||
public static synchronized String getDocumentNo (int C_DocType_ID, String trxName, boolean definite, PO po)
|
public static String getDocumentNo (int C_DocType_ID, String trxName, boolean definite, PO po)
|
||||||
{
|
{
|
||||||
if (C_DocType_ID == 0)
|
if (C_DocType_ID == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue