/** * PUBLIC: * Sets that this a pessimistic wait locking query. * <ul> * <li>ObjectBuildingQuery.LOCK: SELECT .... FOR UPDATE WAIT issued. * </ul> * <p>Fine Grained Locking: On execution the reference class and those of * all joined attributes will be checked. If any of these have a * PessimisticLockingPolicy set on their descriptor, they will be locked * in a SELECT ... FOR UPDATE OF ... {NO WAIT}. Issues fewer locks * and avoids setting the lock mode on each query. * * <p>Example: * <code>readAllQuery.setSelectionCriteria(employee.get("address").equal("Ottawa"));</code> * <ul> * <li>LOCK: all employees in Ottawa and all referenced Ottawa addresses * will be locked and the lock will wait only the specified amount of time. * </ul> * @see org.eclipse.persistence.descriptors.PessimisticLockingPolicy */ public void setWaitTimeout(Integer waitTimeout) { this.waitTimeout = waitTimeout; setIsPrePrepared(false); setIsPrepared(false); setWasDefaultLockMode(false); }
/** * PUBLIC: * Sets that this a pessimistic wait locking query. * <ul> * <li>ObjectBuildingQuery.LOCK: SELECT .... FOR UPDATE WAIT issued. * </ul> * <p>Fine Grained Locking: On execution the reference class and those of * all joined attributes will be checked. If any of these have a * PessimisticLockingPolicy set on their descriptor, they will be locked * in a SELECT ... FOR UPDATE OF ... {NO WAIT}. Issues fewer locks * and avoids setting the lock mode on each query. * * <p>Example: * <code>readAllQuery.setSelectionCriteria(employee.get("address").equal("Ottawa"));</code> * <ul> * <li>LOCK: all employees in Ottawa and all referenced Ottawa addresses * will be locked and the lock will wait only the specified amount of time. * </ul> * @see org.eclipse.persistence.descriptors.PessimisticLockingPolicy */ public void setWaitTimeout(Integer waitTimeout) { this.waitTimeout = waitTimeout; setIsPrePrepared(false); setIsPrepared(false); setWasDefaultLockMode(false); }
/** * PUBLIC: * Sets that this a pessimistic wait locking query. * <ul> * <li>ObjectBuildingQuery.LOCK: SELECT .... FOR UPDATE WAIT issued. * </ul> * <p>Fine Grained Locking: On execution the reference class and those of * all joined attributes will be checked. If any of these have a * PessimisticLockingPolicy set on their descriptor, they will be locked * in a SELECT ... FOR UPDATE OF ... {NO WAIT}. Issues fewer locks * and avoids setting the lock mode on each query. * * <p>Example: * <code>readAllQuery.setSelectionCriteria(employee.get("address").equal("Ottawa"));</code> * <ul> * <li>LOCK: all employees in Ottawa and all referenced Ottawa addresses * will be locked and the lock will wait only the specified amount of time. * </ul> * @see org.eclipse.persistence.descriptors.PessimisticLockingPolicy */ public void setWaitTimeout(Integer waitTimeout) { this.waitTimeout = waitTimeout; setIsPrePrepared(false); setIsPrepared(false); setWasDefaultLockMode(false); }
setIsPrePrepared(false); setIsPrepared(false); setWasDefaultLockMode(false);
setIsPrePrepared(false); setIsPrepared(false); setWasDefaultLockMode(false);
setIsPrePrepared(false); setIsPrepared(false); setWasDefaultLockMode(false);
/** * INTERNAL: * The locking clause contains a list of expressions representing which * objects are to be locked by the query. * <p> * Use for even finer grained control over what is and is not locked by * a particular query. */ public void setLockingClause(ForUpdateClause clause) { if (clause.isForUpdateOfClause()) { this.lockingClause = clause; setIsPrePrepared(false); } else { setLockMode(clause.getLockMode()); } setWasDefaultLockMode(false); }
/** * INTERNAL: * The locking clause contains a list of expressions representing which * objects are to be locked by the query. * <p> * Use for even finer grained control over what is and is not locked by * a particular query. */ public void setLockingClause(ForUpdateClause clause) { if (clause.isForUpdateOfClause()) { this.lockingClause = clause; setIsPrePrepared(false); } else { setLockMode(clause.getLockMode()); } setWasDefaultLockMode(false); }
/** * INTERNAL: * The locking clause contains a list of expressions representing which * objects are to be locked by the query. * <p> * Use for even finer grained control over what is and is not locked by * a particular query. */ public void setLockingClause(ForUpdateClause clause) { if (clause.isForUpdateOfClause()) { this.lockingClause = clause; setIsPrePrepared(false); } else { setLockMode(clause.getLockMode()); } setWasDefaultLockMode(false); }
setWasDefaultLockMode(true); ForUpdateOfClause lockingClause = null; if (hasJoining()) { setWasDefaultLockMode(true);
setWasDefaultLockMode(true); ForUpdateOfClause lockingClause = null; if (hasJoining()) { setWasDefaultLockMode(true);
setWasDefaultLockMode(true); ForUpdateOfClause lockingClause = null; if (hasJoining()) { setWasDefaultLockMode(true);