Update of /cvsroot/compiere/dbPort/src/org/compiere/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13364/src/org/compiere/util
Modified Files:
Env.java
Log Message:
Index: Env.java
===================================================================
RCS file: /cvsroot/compiere/dbPort/src/org/compiere/util/Env.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** Env.java 25 Apr 2005 05:03:00 -0000 1.48
--- Env.java 28 Apr 2005 05:52:04 -0000 1.49
***************
*** 285,288 ****
--- 285,300 ----
/**
+ * Set SO Trx
+ * @param ctx context
+ * @param isSOTrx SO Context
+ */
+ public static void setSOTrx (Properties ctx, boolean isSOTrx)
+ {
+ if (ctx == null)
+ return;
+ ctx.setProperty("IsSOTrx", isSOTrx ? "Y" : "N");
+ } // setSOTrx
+
+ /**
* Get global Value of Context
* @param ctx context
***************
*** 480,486 ****
throw new IllegalArgumentException ("Require Context");
String s = getContext(ctx, "IsSOTrx");
! if (s != null && s.equals("Y"))
! return true;
! return false;
} // isSOTrx
--- 492,498 ----
throw new IllegalArgumentException ("Require Context");
String s = getContext(ctx, "IsSOTrx");
! if (s != null && s.equals("N"))
! return false;
! return true;
} // isSOTrx
|