Search in sources :

Example 1 with TupleElementImplementor

use of org.hibernate.query.criteria.internal.TupleElementImplementor in project hibernate-orm by hibernate.

the class CompoundSelectionImpl method getValueHandlers.

@Override
public List<ValueHandlerFactory.ValueHandler> getValueHandlers() {
    if (isConstructor) {
        return null;
    }
    boolean foundHandlers = false;
    ArrayList<ValueHandlerFactory.ValueHandler> valueHandlers = new ArrayList<ValueHandlerFactory.ValueHandler>();
    for (Selection selection : getCompoundSelectionItems()) {
        ValueHandlerFactory.ValueHandler valueHandler = ((TupleElementImplementor) selection).getValueHandler();
        valueHandlers.add(valueHandler);
        foundHandlers = foundHandlers || valueHandler != null;
    }
    return foundHandlers ? null : valueHandlers;
}
Also used : TupleElementImplementor(org.hibernate.query.criteria.internal.TupleElementImplementor) CompoundSelection(javax.persistence.criteria.CompoundSelection) Selection(javax.persistence.criteria.Selection) ArrayList(java.util.ArrayList) ValueHandlerFactory(org.hibernate.query.criteria.internal.ValueHandlerFactory)

Aggregations

ArrayList (java.util.ArrayList)1 CompoundSelection (javax.persistence.criteria.CompoundSelection)1 Selection (javax.persistence.criteria.Selection)1 TupleElementImplementor (org.hibernate.query.criteria.internal.TupleElementImplementor)1 ValueHandlerFactory (org.hibernate.query.criteria.internal.ValueHandlerFactory)1