public FieldMapping getFieldMapping() { return (isPath()) ? ((PCPath) _val).getFieldMapping(_state) : null; }
public FieldMapping getFieldMapping() { return (isPath()) ? ((PCPath) _val).getFieldMapping(_state) : null; }
public FieldMapping getFieldMapping() { return (isPath()) ? ((PCPath) _val).getFieldMapping(_state) : null; }
public FieldMapping getFieldMapping() { return (isPath()) ? ((PCPath) _val).getFieldMapping(_state) : null; }
public FieldMapping getFieldMapping() { return (isPath()) ? ((PCPath) _val).getFieldMapping(_state) : null; }
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 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 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 appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) { DBDictionary dict = ctx.store.getDBDictionary(); String func = dict.toLowerCaseFunction; dict.assertSupport(func != null, "ToLowerCaseFunction"); if (getValue() instanceof PCPath) { func = dict.getCastFunction(getValue(), func, ((PCPath) getValue()).getFieldMapping(state).getColumns()[0]); } else { func = dict.getCastFunction(getValue(), func); } int idx = func.indexOf("{0}"); buf.append(func.substring(0, idx)); getValue().appendTo(sel, ctx, state, buf, index); buf.append(func.substring(idx + 3)); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) { DBDictionary dict = ctx.store.getDBDictionary(); String func = dict.toUpperCaseFunction; dict.assertSupport(func != null, "ToUpperCaseFunction"); if (getValue() instanceof PCPath) { func = dict.getCastFunction(getValue(), func, ((PCPath) getValue()).getFieldMapping(state).getColumns()[0]); } else { func = dict.getCastFunction(getValue(), func); } int idx = func.indexOf("{0}"); buf.append(func.substring(0, idx)); getValue().appendTo(sel, ctx, state, buf, index); buf.append(func.substring(idx + 3)); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) { DBDictionary dict = ctx.store.getDBDictionary(); String func = dict.toUpperCaseFunction; dict.assertSupport(func != null, "ToUpperCaseFunction"); if (getValue() instanceof PCPath) { func = dict.getCastFunction(getValue(), func, ((PCPath) getValue()).getFieldMapping(state).getColumns()[0]); } else { func = dict.getCastFunction(getValue(), func); } int idx = func.indexOf("{0}"); buf.append(func.substring(0, idx)); getValue().appendTo(sel, ctx, state, buf, index); buf.append(func.substring(idx + 3)); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) { DBDictionary dict = ctx.store.getDBDictionary(); String func = dict.toLowerCaseFunction; dict.assertSupport(func != null, "ToLowerCaseFunction"); if (getValue() instanceof PCPath) { func = dict.getCastFunction(getValue(), func, ((PCPath) getValue()).getFieldMapping(state).getColumns()[0]); } else { func = dict.getCastFunction(getValue(), func); } int idx = func.indexOf("{0}"); buf.append(func.substring(0, idx)); getValue().appendTo(sel, ctx, state, buf, index); buf.append(func.substring(idx + 3)); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) { DBDictionary dict = ctx.store.getDBDictionary(); String func = dict.toLowerCaseFunction; dict.assertSupport(func != null, "ToLowerCaseFunction"); if (getValue() instanceof PCPath) { func = dict.getCastFunction(getValue(), func, ((PCPath) getValue()).getFieldMapping(state).getColumns()[0]); } else { func = dict.getCastFunction(getValue(), func); } int idx = func.indexOf("{0}"); buf.append(func.substring(0, idx)); getValue().appendTo(sel, ctx, state, buf, index); buf.append(func.substring(idx + 3)); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) { DBDictionary dict = ctx.store.getDBDictionary(); String func = dict.toLowerCaseFunction; dict.assertSupport(func != null, "ToLowerCaseFunction"); if (getValue() instanceof PCPath) { func = dict.getCastFunction(getValue(), func, ((PCPath) getValue()).getFieldMapping(state).getColumns()[0]); } else { func = dict.getCastFunction(getValue(), func); } int idx = func.indexOf("{0}"); buf.append(func.substring(0, idx)); getValue().appendTo(sel, ctx, state, buf, index); buf.append(func.substring(idx + 3)); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) { DBDictionary dict = ctx.store.getDBDictionary(); String func = dict.toUpperCaseFunction; dict.assertSupport(func != null, "ToUpperCaseFunction"); if (getValue() instanceof PCPath) { func = dict.getCastFunction(getValue(), func, ((PCPath) getValue()).getFieldMapping(state).getColumns()[0]); } else { func = dict.getCastFunction(getValue(), func); } int idx = func.indexOf("{0}"); buf.append(func.substring(0, idx)); getValue().appendTo(sel, ctx, state, buf, index); buf.append(func.substring(idx + 3)); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) { DBDictionary dict = ctx.store.getDBDictionary(); String func = dict.toUpperCaseFunction; dict.assertSupport(func != null, "ToUpperCaseFunction"); if (getValue() instanceof PCPath) { func = dict.getCastFunction(getValue(), func, ((PCPath) getValue()).getFieldMapping(state).getColumns()[0]); } else { func = dict.getCastFunction(getValue(), func); } int idx = func.indexOf("{0}"); buf.append(func.substring(0, idx)); getValue().appendTo(sel, ctx, state, buf, index); buf.append(func.substring(idx + 3)); }
PCPath map = (PCPath) _map; Object key = ((Const) _key).getValue(ctx, gstate.keyState); FieldMapping field = map.getFieldMapping(gstate.mapState); if (!(field.getStrategy() instanceof LRSMapFieldStrategy)) throw new UnsupportedOperationException();
PCPath map = (PCPath) _map; Object key = ((Const) _key).getValue(ctx, gstate.keyState); FieldMapping field = map.getFieldMapping(gstate.mapState); if (!(field.getStrategy() instanceof LRSMapFieldStrategy)) throw new UnsupportedOperationException();