/** * INTERNAL: * return true if this query has computed its distinct value already */ public boolean isDistinctComputed() { return getDistinctState() != UNCOMPUTED_DISTINCT; }
/** * INTERNAL: * return true if this query should use a distinct */ public boolean shouldDistinctBeUsed() { return getDistinctState() == USE_DISTINCT; }
/** * INTERNAL: * return true if this query should use a distinct */ public boolean shouldDistinctBeUsed() { return getDistinctState() == USE_DISTINCT; }
/** * INTERNAL: * return true if this query should use a distinct */ public boolean shouldDistinctBeUsed() { return getDistinctState() == USE_DISTINCT; }
if (readQuery.getDistinctState() != ObjectLevelReadQuery.UNCOMPUTED_DISTINCT) { String distinctState = "ObjectLevelReadQuery.UNCOMPUTED_DISTINCT"; if (readQuery.getDistinctState() == ObjectLevelReadQuery.USE_DISTINCT) { distinctState = "ObjectLevelReadQuery.USE_DISTINCT"; } else if (readQuery.getDistinctState() == ObjectLevelReadQuery.DONT_USE_DISTINCT) { distinctState = "ObjectLevelReadQuery.DONT_USE_DISTINCT";
if (readQuery.getDistinctState() != ObjectLevelReadQuery.UNCOMPUTED_DISTINCT) { String distinctState = "ObjectLevelReadQuery.UNCOMPUTED_DISTINCT"; if (readQuery.getDistinctState() == ObjectLevelReadQuery.USE_DISTINCT) { distinctState = "ObjectLevelReadQuery.USE_DISTINCT"; } else if (readQuery.getDistinctState() == ObjectLevelReadQuery.DONT_USE_DISTINCT) { distinctState = "ObjectLevelReadQuery.DONT_USE_DISTINCT";
if (readQuery.getDistinctState() != ObjectLevelReadQuery.UNCOMPUTED_DISTINCT) { String distinctState = "ObjectLevelReadQuery.UNCOMPUTED_DISTINCT"; if (readQuery.getDistinctState() == ObjectLevelReadQuery.USE_DISTINCT) { distinctState = "ObjectLevelReadQuery.USE_DISTINCT"; } else if (readQuery.getDistinctState() == ObjectLevelReadQuery.DONT_USE_DISTINCT) { distinctState = "ObjectLevelReadQuery.DONT_USE_DISTINCT";
selectStatement.setQuery(query); selectStatement.setLockingClause(query.getLockingClause()); selectStatement.setDistinctState(query.getDistinctState()); selectStatement.setTables((Vector)getDescriptor().getTables().clone()); selectStatement.setWhereClause(buildBaseSelectionCriteria(isSubSelect, clonedExpressions));
selectStatement.setQuery(query); selectStatement.setLockingClause(query.getLockingClause()); selectStatement.setDistinctState(query.getDistinctState()); selectStatement.setTables((Vector)getDescriptor().getTables().clone()); selectStatement.setWhereClause(buildBaseSelectionCriteria(isSubSelect, clonedExpressions, shouldUseAdditionalJoinExpression));
selectStatement.setQuery(query); selectStatement.setLockingClause(query.getLockingClause()); selectStatement.setDistinctState(query.getDistinctState()); selectStatement.setTables((Vector)getDescriptor().getTables().clone()); selectStatement.setWhereClause(buildBaseSelectionCriteria(isSubSelect, clonedExpressions, shouldUseAdditionalJoinExpression));
batchQuery.setDistinctState(query.getDistinctState());
batchQuery.setDistinctState(query.getDistinctState());