/** * Return the oid columns. */ public Column[] getColumns(ExpState state) { return _path.getClassMapping(state).getPrimaryKeyColumns(); }
/** * Return the oid columns. */ public Column[] getColumns(ExpState state) { return _path.getClassMapping(state).getPrimaryKeyColumns(); }
/** * Return the oid columns. */ public Column[] getColumns(ExpState state) { return _path.getClassMapping(state).getPrimaryKeyColumns(); }
/** * Return the oid columns. */ public Column[] getColumns(ExpState state) { return _path.getClassMapping(state).getPrimaryKeyColumns(); }
/** * Return the oid columns. */ public Column[] getColumns(ExpState state) { return _path.getClassMapping(state).getPrimaryKeyColumns(); }
public ClassMapping getClassMapping() { return (isPath()) ? ((PCPath) _val).getClassMapping(_state) : null; }
public ClassMapping getClassMapping() { return (isPath()) ? ((PCPath) _val).getClassMapping(_state) : null; }
public ClassMapping getClassMapping() { return (isPath()) ? ((PCPath) _val).getClassMapping(_state) : null; }
public ClassMapping getClassMapping() { return (isPath()) ? ((PCPath) _val).getClassMapping(_state) : null; }
public ClassMapping getClassMapping() { return (isPath()) ? ((PCPath) _val).getClassMapping(_state) : null; }
public void groupBy(Select sel, ExpContext ctx, ExpState state) { ClassMapping mapping = getClassMapping(state); PathExpState pstate = (PathExpState) state; if (mapping == null || !pstate.joinedRel) sel.groupBy(getColumns(state), sel.outer(pstate.joins)); else { int subs = (_type == UNBOUND_VAR) ? Select.SUBS_JOINABLE : Select.SUBS_ANY_JOINABLE; sel.groupBy(mapping, subs, ctx.store, ctx.fetch, sel.outer(pstate.joins)); } }
public ExpState initialize(Select sel, ExpContext ctx, int flags) { ExpState state = _path.initialize(sel, ctx, JOIN_REL); // it's difficult to get calls on non-pc fields to always return null // without screwing up the SQL, to just don't let users call it on // non-pc fields at all ClassMapping cls = _path.getClassMapping(state); if (cls == null || cls.getEmbeddingMapping() != null) throw new UserException(_loc.get("bad-getobjectid", _path.getFieldMapping(state))); return state; }
public ExpState initialize(Select sel, ExpContext ctx, int flags) { ExpState state = _path.initialize(sel, ctx, JOIN_REL); // it's difficult to get calls on non-pc fields to always return null // without screwing up the SQL, to just don't let users call it on // non-pc fields at all ClassMapping cls = _path.getClassMapping(state); if (cls == null || cls.getEmbeddingMapping() != null) throw new UserException(_loc.get("bad-getobjectid", _path.getFieldMapping(state))); return state; }
public void groupBy(Select sel, ExpContext ctx, ExpState state) { ClassMapping mapping = getClassMapping(state); PathExpState pstate = (PathExpState) state; if (mapping == null || !pstate.joinedRel) sel.groupBy(getColumns(state), sel.outer(pstate.joins)); else { int subs = (_type == UNBOUND_VAR) ? Select.SUBS_JOINABLE : Select.SUBS_ANY_JOINABLE; sel.groupBy(mapping, subs, ctx.store, ctx.fetch, sel.outer(pstate.joins)); } }
public ExpState initialize(Select sel, ExpContext ctx, int flags) { ExpState state = _path.initialize(sel, ctx, JOIN_REL); // it's difficult to get calls on non-pc fields to always return null // without screwing up the SQL, to just don't let users call it on // non-pc fields at all ClassMapping cls = _path.getClassMapping(state); if (cls == null || cls.getEmbeddingMapping() != null) throw new UserException(_loc.get("bad-getobjectid", _path.getFieldMapping(state))); return state; }
public ExpState initialize(Select sel, ExpContext ctx, int flags) { ExpState state = _path.initialize(sel, ctx, JOIN_REL); // it's difficult to get calls on non-pc fields to always return null // without screwing up the SQL, to just don't let users call it on // non-pc fields at all ClassMapping cls = _path.getClassMapping(state); if (cls == null || cls.getEmbeddingMapping() != null) throw new UserException(_loc.get("bad-getobjectid", _path.getFieldMapping(state))); return state; }
public void groupBy(Select sel, ExpContext ctx, ExpState state) { ClassMapping mapping = getClassMapping(state); PathExpState pstate = (PathExpState) state; if (mapping == null || !pstate.joinedRel) sel.groupBy(getColumns(state), sel.outer(pstate.joins)); else { int subs = (_type == UNBOUND_VAR) ? Select.SUBS_JOINABLE : Select.SUBS_ANY_JOINABLE; sel.groupBy(mapping, subs, ctx.store, ctx.fetch, sel.outer(pstate.joins)); } }
public void groupBy(Select sel, ExpContext ctx, ExpState state) { ClassMapping mapping = getClassMapping(state); PathExpState pstate = (PathExpState) state; if (mapping == null || !pstate.joinedRel) sel.groupBy(getColumns(state), sel.outer(pstate.joins)); else { int subs = (_type == UNBOUND_VAR) ? Select.SUBS_JOINABLE : Select.SUBS_ANY_JOINABLE; sel.groupBy(mapping, subs, ctx.store, ctx.fetch, sel.outer(pstate.joins)); } }
public ExpState initialize(Select sel, ExpContext ctx, int flags) { ExpState state = _path.initialize(sel, ctx, JOIN_REL); // it's difficult to get calls on non-pc fields to always return null // without screwing up the SQL, to just don't let users call it on // non-pc fields at all ClassMapping cls = _path.getClassMapping(state); if (cls == null || cls.getEmbeddingMapping() != null) throw new UserException(_loc.get("bad-getobjectid", _path.getFieldMapping(state))); return state; }
public void groupBy(Select sel, ExpContext ctx, ExpState state) { ClassMapping mapping = getClassMapping(state); PathExpState pstate = (PathExpState) state; if (mapping == null || !pstate.joinedRel) sel.groupBy(getColumns(state), sel.outer(pstate.joins)); else { int subs = (_type == UNBOUND_VAR) ? Select.SUBS_JOINABLE : Select.SUBS_ANY_JOINABLE; sel.groupBy(mapping, subs, ctx.store, ctx.fetch, sel.outer(pstate.joins)); } }