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