if ( selection.isCompoundSelection() ) { if ( selection.getJavaType().isArray() ) { throw new IllegalArgumentException(
void assertNoCompoundSelection(Selection<?>...args) { if (args == null) return; for (Selection<?> s : args) { if (s.isCompoundSelection() && !(s.getClass() == NewInstance.class)) { throw new IllegalArgumentException("compound selection " + s + " can not be nested in " + this); } } }
void assertNoCompoundSelection(Selection<?>...args) { if (args == null) return; for (Selection<?> s : args) { if (s.isCompoundSelection() && !(s.getClass() == NewInstance.class)) { throw new IllegalArgumentException("compound selection " + s + " can not be nested in " + this); } } }
void assertNoCompoundSelection(Selection<?>...args) { if (args == null) return; for (Selection<?> s : args) { if (s.isCompoundSelection() && !(s.getClass() == NewInstance.class)) { throw new IllegalArgumentException("compound selection " + s + " can not be nested in " + this); } } }
void assertNoCompoundSelection(Selection<?>...args) { if (args == null) return; for (Selection<?> s : args) { if (s.isCompoundSelection() && !(s.getClass() == NewInstance.class)) { throw new IllegalArgumentException("compound selection " + s + " can not be nested in " + this); } } }
@Override protected boolean isCompoundSelection() { return query.getSelection().isCompoundSelection(); }
@Override public void addSelection(Expression<?> expression, String name) { Selection<?> selection = criteriaQuery.getSelection(); List<Selection<?>> newSelection = new ArrayList<>(); if (selection != null) { if (selection.isCompoundSelection()) { newSelection.addAll(selection.getCompoundSelectionItems()); } else { newSelection.add(selection); } } newSelection.add(expression); criteriaQuery.multiselect(newSelection); }
protected void findRootAndParameters(Selection<?> selection) { if (selection.isCompoundSelection()) { for (Selection subSelection : selection.getCompoundSelectionItems()) { findRootAndParameters(subSelection); } } }
/** * Package-protected method to centralize checking of criteria query * multiselects as defined by the * {@link CriteriaQuery#multiselect(List)} method. * * @param selections The selection varargs to check * * @throws IllegalArgumentException If, as per * {@link CriteriaQuery#multiselect(List)} documentation, * <i>"An argument to the multiselect method must not be a tuple- * or array-valued compound selection item."</i> */ void checkMultiselect(List<Selection<?>> selections) { for ( Selection<?> selection : selections ) { if ( selection.isCompoundSelection() ) { if ( selection.getJavaType().isArray() ) { throw new IllegalArgumentException( "multiselect selections cannot contain " + "compound array-valued elements" ); } if ( Tuple.class.isAssignableFrom( selection.getJavaType() ) ) { throw new IllegalArgumentException( "multiselect selections cannot contain " + "compound tuple-valued elements" ); } } } }
if (selection.isCompoundSelection()) {
if (selection.isCompoundSelection()) {
if (s.isCompoundSelection()) { getProjections(exps, s.getCompoundSelectionItems(), projections, aliases, clauses, factory, q, model, exp2Vals);
if (s.isCompoundSelection()) { getProjections(exps, s.getCompoundSelectionItems(), projections, aliases, clauses, factory, q, model, exp2Vals);
if (s.isCompoundSelection()) { getProjections(exps, s.getCompoundSelectionItems(), projections, aliases, clauses, factory, q, model, exp2Vals);
if (s.isCompoundSelection()) { getProjections(exps, s.getCompoundSelectionItems(), projections, aliases, clauses, factory, q, model, exp2Vals);
findRootAndParameters(selection); this.selection = (SelectionImpl) selection; if (selection.isCompoundSelection()) {
if (type == null) type = Object.class; if (s.isCompoundSelection()) { CompoundSelection<?> cs = (CompoundSelection<?>)s; result = new ResultShape(s.getJavaType(), CompoundSelections.getFillStrategy(cs));
if (type == null) type = Object.class; if (s.isCompoundSelection()) { CompoundSelection<?> cs = (CompoundSelection<?>)s; result = new ResultShape(s.getJavaType(), CompoundSelections.getFillStrategy(cs));
if (type == null) type = Object.class; if (s.isCompoundSelection()) { CompoundSelection<?> cs = (CompoundSelection<?>)s; result = new ResultShape(s.getJavaType(), CompoundSelections.getFillStrategy(cs));
if (type == null) type = Object.class; if (s.isCompoundSelection()) { CompoundSelection<?> cs = (CompoundSelection<?>)s; result = new ResultShape(s.getJavaType(), CompoundSelections.getFillStrategy(cs));