/** * PUBLIC: * Set the query not to lock. */ public void dontAcquireLocks() { setLockMode(NO_LOCK); }
/** * PUBLIC: * Set the query not to lock. */ public void dontAcquireLocks() { setLockMode(NO_LOCK); }
/** * PUBLIC: * Set the query to lock, this will also turn refreshCache on. */ public void acquireLocks() { setLockMode(LOCK); //Bug2804042 Must un-prepare if prepared as the SQL may change. setIsPrepared(false); }
/** * PUBLIC: * Set the query to lock without waiting (blocking), this will also turn refreshCache on. */ public void acquireLocksWithoutWaiting() { setLockMode(LOCK_NOWAIT); //Bug2804042 Must un-prepare if prepared as the SQL may change. setIsPrepared(false); }
/** * PUBLIC: * Set the query not to lock. */ public void dontAcquireLocks() { setLockMode(NO_LOCK); //Bug2804042 Must un-prepare if prepared as the SQL may change. setIsPrepared(false); }
/** * INTERNAL: * Called if shouldExtendPessimisticLockScopeInTargetQuery() is true. * Adds locking clause to the target query to extend pessimistic lock scope. */ protected void extendPessimisticLockScopeInTargetQuery(ObjectLevelReadQuery targetQuery, ObjectBuildingQuery sourceQuery) { targetQuery.setLockMode(sourceQuery.getLockMode()); }
/** * PUBLIC: * Set the query to lock, this will also turn refreshCache on. */ public void acquireLocks() { setLockMode(LOCK); //Bug2804042 Must un-prepare if prepared as the SQL may change. setIsPrepared(false); }
/** * INTERNAL: * Called if shouldExtendPessimisticLockScopeInTargetQuery() is true. * Adds locking clause to the target query to extend pessimistic lock scope. */ protected void extendPessimisticLockScopeInTargetQuery(ObjectLevelReadQuery targetQuery, ObjectBuildingQuery sourceQuery) { targetQuery.setLockMode(sourceQuery.getLockMode()); }
/** * INTERNAL: * Called if shouldExtendPessimisticLockScopeInTargetQuery() is true. * Adds locking clause to the target query to extend pessimistic lock scope. */ protected void extendPessimisticLockScopeInTargetQuery(ObjectLevelReadQuery targetQuery, ObjectBuildingQuery sourceQuery) { targetQuery.setLockMode(sourceQuery.getLockMode()); }
/** * PUBLIC: * Set the query to lock, this will also turn refreshCache on. */ public void acquireLocks() { setLockMode(LOCK); //Bug2804042 Must un-prepare if prepared as the SQL may change. setIsPrepared(false); }
/** * PUBLIC: * Set the query to lock without waiting (blocking), this will also turn refreshCache on. */ public void acquireLocksWithoutWaiting() { setLockMode(LOCK_NOWAIT); //Bug2804042 Must un-prepare if prepared as the SQL may change. setIsPrepared(false); }
/** * PUBLIC: * Set the query to lock without waiting (blocking), this will also turn refreshCache on. */ public void acquireLocksWithoutWaiting() { setLockMode(LOCK_NOWAIT); //Bug2804042 Must un-prepare if prepared as the SQL may change. setIsPrepared(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); }
setLockMode(ObjectBuildingQuery.NO_LOCK); } else if (lockModeType.contains(PESSIMISTIC_)) { setLockMode(ObjectBuildingQuery.LOCK); } else { if (timeout.intValue() == 0) { setLockMode(ObjectBuildingQuery.LOCK_NOWAIT); } else { lockingClause = ForUpdateClause.newInstance(timeout);
setLockMode(ObjectBuildingQuery.NO_LOCK); } else if (this.lockModeType.contains(PESSIMISTIC_)) { setLockMode(ObjectBuildingQuery.LOCK); } else { if (timeout.intValue() == 0) { setLockMode(ObjectBuildingQuery.LOCK_NOWAIT); } else { this.lockingClause = ForUpdateClause.newInstance(timeout);
setLockMode(ObjectBuildingQuery.NO_LOCK); } else if (this.lockModeType.contains(PESSIMISTIC_)) { setLockMode(ObjectBuildingQuery.LOCK); } else { if (timeout.intValue() == 0) { setLockMode(ObjectBuildingQuery.LOCK_NOWAIT); } else { this.lockingClause = ForUpdateClause.newInstance(timeout);