com.ibm.commerce.datatype

Class WCLock

  • java.lang.Object
    • com.ibm.commerce.datatype.WCLock


  • public class WCLock
    extends java.lang.Object

    WebSphere Commerce by default synchronizes code execution paths to help avoid optimistic locking failures due to concurrent execution of code paths that may modify the same data.

    Use the methods of this class to change the default behavior.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright statement
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void disableUserAndSessionSerialization()
      Disable the default user and session related locking that prevents concurrent execution of threads for the same user id or activity GUID for the duration of the current database transaction (or if there is no current transaction until the next transaction starts).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Copyright statement
        See Also:
        Constant Field Values
    • Method Detail

      • disableUserAndSessionSerialization

        public static void disableUserAndSessionSerialization()
        Disable the default user and session related locking that prevents concurrent execution of threads for the same user id or activity GUID for the duration of the current database transaction (or if there is no current transaction until the next transaction starts).