[ 2101466 ] Implement Native Sequence Functionality

http://sourceforge.net/tracker/index.php?func=detail&aid=2101466&group_id=176962&atid=879335

Make the default for MSysConfig consistent
This commit is contained in:
Carlos Ruiz 2008-12-21 04:46:16 +00:00
parent 2a4c8714a4
commit 461ed0a8a9
3 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ public class Convert_PostgreSQL extends Convert_SQL92 {
found_next_fuction = sqlStatement.toUpperCase().indexOf("NEXTID(");
if(found_next_fuction > 0)
{
boolean SYSTEM_NATIVE_SEQUENCE = MSysConfig.getBooleanValue("SYSTEM_NATIVE_SEQUENCE",true,Env.getAD_Client_ID(Env.getCtx()));
boolean SYSTEM_NATIVE_SEQUENCE = MSysConfig.getBooleanValue("SYSTEM_NATIVE_SEQUENCE",false,Env.getAD_Client_ID(Env.getCtx()));
boolean adempiereSys = Ini.isPropertyBool(Ini.P_ADEMPIERESYS);
if(SYSTEM_NATIVE_SEQUENCE && !adempiereSys)

View File

@ -938,7 +938,7 @@ public class MSequence extends X_AD_Sequence
*/
public static boolean createTableSequence (Properties ctx, String TableName, String trxName)
{
boolean SYSTEM_NATIVE_SEQUENCE = MSysConfig.getBooleanValue("SYSTEM_NATIVE_SEQUENCE",true,Env.getAD_Client_ID(Env.getCtx()));
boolean SYSTEM_NATIVE_SEQUENCE = MSysConfig.getBooleanValue("SYSTEM_NATIVE_SEQUENCE",false,Env.getAD_Client_ID(Env.getCtx()));
if(SYSTEM_NATIVE_SEQUENCE)
{

View File

@ -50,7 +50,7 @@ public class EnableNativeSequence extends SvrProcess
protected String doIt()
{
boolean SYSTEM_NATIVE_SEQUENCE = MSysConfig.getBooleanValue("SYSTEM_NATIVE_SEQUENCE",true,Env.getAD_Client_ID(Env.getCtx()));
boolean SYSTEM_NATIVE_SEQUENCE = MSysConfig.getBooleanValue("SYSTEM_NATIVE_SEQUENCE",false,Env.getAD_Client_ID(Env.getCtx()));
if(SYSTEM_NATIVE_SEQUENCE)
throw new AdempiereException("Native Sequence is Actived");