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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 public void orderBy(Select sel, ExpContext ctx, ExpState state, boolean asc) {
   sel.orderBy(_alias, asc, false);
 }
예제 #4
0
 public void groupBy(Select sel, ExpContext ctx, ExpState state) {
   sel.groupBy(newSQLBuffer(sel, ctx, state));
 }
예제 #5
0
 public void select(Select sel, ExpContext ctx, ExpState state, boolean pks) {
   sel.select(newSQLBuffer(sel, ctx, state).append(" AS ").append(_alias), this);
 }
예제 #6
0
 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);
 }