Hi,
Any one has any suggestion about handling Optimistic Locking Error on Java Client application?.
I know how it can be handled on server side using following code.
/** * Determine if the exception thrown during a save is an optimistic locking exception. */ public boolean isOptimisticLockingFailure(EOGeneralAdaptorException exceptionWhileSaving) { //Get the info dictionary that is created when the exception is thrown. NSDictionary exceptionInfo = exceptionWhileSaving.userInfo();
//Determine the type of the failure. Object failureType = (exceptionInfo != null) ? exceptionInfo.objectForKey(EOAdaptorChannel.AdaptorFailureKey) : null;
//Return depending on the type of failure. if ((failureType != null) && (failureType.equals(EOAdaptorChannel.AdaptorOptimisticLockingFailure))) { return true; } else { return false; } }
Since we do not have access to the com.webobjects.eoaccess from client side. I'm not sure how can handle this.
Please help.
Thanks Praveen
|