public static ForUpdateClause newInstance(short lockMode) { if (lockMode == ObjectBuildingQuery.NO_LOCK) { return NO_LOCK_CLAUSE; } else { return new ForUpdateClause(lockMode); } }
public static ForUpdateClause newInstance(short lockMode) { if (lockMode == ObjectBuildingQuery.NO_LOCK) { return NO_LOCK_CLAUSE; } else { return new ForUpdateClause(lockMode); } }
public static ForUpdateClause newInstance(short lockMode) { if (lockMode == ObjectBuildingQuery.NO_LOCK) { return NO_LOCK_CLAUSE; } else { return new ForUpdateClause(lockMode); } }
public static ForUpdateClause newInstance(Integer waitTimeout) { return new ForUpdateClause(waitTimeout); }
public static ForUpdateClause newInstance(Integer waitTimeout) { return new ForUpdateClause(waitTimeout); }
public static ForUpdateClause newInstance(Integer waitTimeout) { return new ForUpdateClause(waitTimeout); }
/** * INTERNAL: * Returns a query that */ ReadQuery getLockRelationTableQueryClone(AbstractSession session, short lockMode) { DirectReadQuery lockRelationTableQueryClone = (DirectReadQuery)lockRelationTableQuery.clone(); SQLSelectStatement statement = new SQLSelectStatement(); statement.addTable(this.relationTable); statement.addField(this.sourceRelationKeyFields.get(0).clone()); statement.setWhereClause((Expression)lockRelationTableQuery.getSelectionCriteria().clone()); statement.setLockingClause(new ForUpdateClause(lockMode)); statement.normalize(session, null); lockRelationTableQueryClone.setSQLStatement(statement); lockRelationTableQueryClone.setIsExecutionClone(true); return lockRelationTableQueryClone; }
/** * INTERNAL: * Returns a query that */ ReadQuery getLockRelationTableQueryClone(AbstractSession session, short lockMode) { DirectReadQuery lockRelationTableQueryClone = (DirectReadQuery)lockRelationTableQuery.clone(); SQLSelectStatement statement = new SQLSelectStatement(); statement.addTable(this.relationTable); statement.addField((DatabaseField)this.sourceRelationKeyFields.get(0).clone()); statement.setWhereClause((Expression)lockRelationTableQuery.getSelectionCriteria().clone()); statement.setLockingClause(new ForUpdateClause(lockMode)); statement.normalize(session, null); lockRelationTableQueryClone.setSQLStatement(statement); lockRelationTableQueryClone.setIsExecutionClone(true); return lockRelationTableQueryClone; }
/** * INTERNAL: * Returns a query that */ ReadQuery getLockRelationTableQueryClone(AbstractSession session, short lockMode) { DirectReadQuery lockRelationTableQueryClone = (DirectReadQuery)lockRelationTableQuery.clone(); SQLSelectStatement statement = new SQLSelectStatement(); statement.addTable(this.relationTable); statement.addField(this.sourceRelationKeyFields.get(0).clone()); statement.setWhereClause((Expression)lockRelationTableQuery.getSelectionCriteria().clone()); statement.setLockingClause(new ForUpdateClause(lockMode)); statement.normalize(session, null); lockRelationTableQueryClone.setSQLStatement(statement); lockRelationTableQueryClone.setIsExecutionClone(true); return lockRelationTableQueryClone; }
statement.setLockingClause(new ForUpdateClause(sourceQuery.getLockMode()));
statement.setLockingClause(new ForUpdateClause(sourceQuery.getLockMode()));
statement.setLockingClause(new ForUpdateClause(sourceQuery.getLockMode()));