protected void selectElement( Select sel, ClassMapping elem, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins joins) { sel.select( elem, field.getElementMapping().getSelectSubclasses(), store, fetch, eagerMode, joins); }
public ExpState initialize(Select sel, ExpContext ctx, int flags) { ExpState mapState = _map.initialize(sel, ctx, 0); ExpState keyState = _key.initialize(sel, ctx, 0); return new GetMapValueExpState(sel.and(mapState.joins, keyState.joins), mapState, keyState); }
public void orderBy(Select sel, ExpContext ctx, ExpState state, boolean asc) { sel.orderBy(_alias, asc, false); }
public void groupBy(Select sel, ExpContext ctx, ExpState state) { sel.groupBy(newSQLBuffer(sel, ctx, state)); }
public void select(Select sel, ExpContext ctx, ExpState state, boolean pks) { sel.select(newSQLBuffer(sel, ctx, state).append(" AS ").append(_alias), this); }
public void order(Select sel, ClassMapping elem, Joins joins) { if (elem != null) sel.orderBy(elem.getPrimaryKeyColumns(), _asc, joins, false); else sel.orderBy(_fm.getElementMapping().getColumns(), _asc, joins, false); }