public int length() { return _val.length(_sel, _ctx, _state); }
public int length() { return _val.length(_sel, _ctx, _state); }
public int length() { return _val.length(_sel, _ctx, _state); }
public int length() { return _val.length(_sel, _ctx, _state); }
public int length() { return _val.length(_sel, _ctx, _state); }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); LitExpState lstate = (LitExpState) state; if (other != null) { lstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState,_val); lstate.otherLength = other.length(sel, ctx, otherState); } else lstate.sqlValue = _val; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); LitExpState lstate = (LitExpState) state; if (other != null) { lstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState,_val); lstate.otherLength = other.length(sel, ctx, otherState); } else lstate.sqlValue = _val; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); LitExpState lstate = (LitExpState) state; if (other != null) { lstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState,_val); lstate.otherLength = other.length(sel, ctx, otherState); } else lstate.sqlValue = _val; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); LitExpState lstate = (LitExpState) state; if (other != null) { lstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState,_val); lstate.otherLength = other.length(sel, ctx, otherState); } else lstate.sqlValue = _val; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); LitExpState lstate = (LitExpState) state; if (other != null) { lstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState,_val); lstate.otherLength = other.length(sel, ctx, otherState); } else lstate.sqlValue = _val; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); ConstGetObjectIdExpState cstate = (ConstGetObjectIdExpState) state; _constant.calculateValue(sel, ctx, cstate.constantState, null, null); Object oid = ctx.store.getContext().getObjectId(_constant.getValue(ctx, cstate.constantState)); if (other != null) { cstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState, oid); cstate.otherLength = other.length(sel, ctx, otherState); } else cstate.sqlValue = oid; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); ConstGetObjectIdExpState cstate = (ConstGetObjectIdExpState) state; _constant.calculateValue(sel, ctx, cstate.constantState, null, null); Object oid = ctx.store.getContext().getObjectId(_constant.getValue(ctx, cstate.constantState)); if (other != null) { cstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState, oid); cstate.otherLength = other.length(sel, ctx, otherState); } else cstate.sqlValue = oid; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); ConstGetObjectIdExpState cstate = (ConstGetObjectIdExpState) state; _constant.calculateValue(sel, ctx, cstate.constantState, null, null); Object oid = ctx.store.getContext().getObjectId(_constant.getValue(ctx, cstate.constantState)); if (other != null) { cstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState, oid); cstate.otherLength = other.length(sel, ctx, otherState); } else cstate.sqlValue = oid; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); ConstGetObjectIdExpState cstate = (ConstGetObjectIdExpState) state; _constant.calculateValue(sel, ctx, cstate.constantState, null, null); Object oid = ctx.store.getContext().getObjectId(_constant.getValue(ctx, cstate.constantState)); if (other != null) { cstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState, oid); cstate.otherLength = other.length(sel, ctx, otherState); } else cstate.sqlValue = oid; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); ConstGetObjectIdExpState cstate = (ConstGetObjectIdExpState) state; _constant.calculateValue(sel, ctx, cstate.constantState, null, null); Object oid = ctx.store.getContext().getObjectId(_constant.getValue(ctx, cstate.constantState)); if (other != null) { cstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState, oid); cstate.otherLength = other.length(sel, ctx, otherState); } else cstate.sqlValue = oid; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); Object val = getValue(ctx.params); ParamExpState pstate = (ParamExpState) state; if (other != null && !_container) { pstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState, val); pstate.otherLength = other.length(sel, ctx, otherState); } else if (ImplHelper.isManageable(val)) { ClassMapping mapping = ctx.store.getConfiguration(). getMappingRepositoryInstance().getMapping(val.getClass(), ctx.store.getContext().getClassLoader(), true); pstate.sqlValue = mapping.toDataStoreValue(val, mapping.getPrimaryKeyColumns(), ctx.store); pstate.otherLength = mapping.getPrimaryKeyColumns().length; } else pstate.sqlValue = val; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); Object val = getValue(ctx.params); ParamExpState pstate = (ParamExpState) state; if (other != null && !_container) { pstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState, val); pstate.otherLength = other.length(sel, ctx, otherState); if (other instanceof Type) { pstate.mapping = ctx.store.getConfiguration(). getMappingRepositoryInstance().getMapping((Class) val, ctx.store.getContext().getClassLoader(), true); pstate.disc = pstate.mapping.getDiscriminator(); pstate.discValue = pstate.disc.getValue() != null ? pstate.disc.getValue() : "1"; } } else if (ImplHelper.isManageable(val)) { ClassMapping mapping = ctx.store.getConfiguration(). getMappingRepositoryInstance().getMapping(val.getClass(), ctx.store.getContext().getClassLoader(), true); pstate.sqlValue = mapping.toDataStoreValue(val, mapping.getPrimaryKeyColumns(), ctx.store); pstate.otherLength = mapping.getPrimaryKeyColumns().length; } else pstate.sqlValue = val; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); Object val = getValue(ctx.params); ParamExpState pstate = (ParamExpState) state; if (other != null && !_container) { pstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState, val); pstate.otherLength = other.length(sel, ctx, otherState); if (other instanceof Type) { pstate.mapping = ctx.store.getConfiguration(). getMappingRepositoryInstance().getMapping((Class) val, ctx.store.getContext().getClassLoader(), true); pstate.disc = pstate.mapping.getDiscriminator(); pstate.discValue = pstate.disc.getValue() != null ? pstate.disc.getValue() : "1"; } } else if (ImplHelper.isManageable(val)) { ClassMapping mapping = ctx.store.getConfiguration(). getMappingRepositoryInstance().getMapping(val.getClass(), ctx.store.getContext().getClassLoader(), true); pstate.sqlValue = mapping.toDataStoreValue(val, mapping.getPrimaryKeyColumns(), ctx.store); pstate.otherLength = mapping.getPrimaryKeyColumns().length; } else pstate.sqlValue = val; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); Object val = getValue(ctx.params); ParamExpState pstate = (ParamExpState) state; if (other != null && !_container) { pstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState, val); pstate.otherLength = other.length(sel, ctx, otherState); if (other instanceof Type) { pstate.mapping = ctx.store.getConfiguration(). getMappingRepositoryInstance().getMapping((Class) val, ctx.store.getContext().getClassLoader(), true); pstate.disc = pstate.mapping.getDiscriminator(); pstate.discValue = pstate.disc.getValue() != null ? pstate.disc.getValue() : "1"; } } else if (ImplHelper.isManageable(val)) { ClassMapping mapping = ctx.store.getConfiguration(). getMappingRepositoryInstance().getMapping(val.getClass(), ctx.store.getContext().getClassLoader(), true); pstate.sqlValue = mapping.toDataStoreValue(val, mapping.getPrimaryKeyColumns(), ctx.store); pstate.otherLength = mapping.getPrimaryKeyColumns().length; } else pstate.sqlValue = val; }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { super.calculateValue(sel, ctx, state, other, otherState); Object val = getValue(ctx.params); ParamExpState pstate = (ParamExpState) state; if (other != null && !_container) { pstate.sqlValue = other.toDataStoreValue(sel, ctx, otherState, val); pstate.otherLength = other.length(sel, ctx, otherState); if (other instanceof Type) { pstate.mapping = ctx.store.getConfiguration(). getMappingRepositoryInstance().getMapping((Class) val, ctx.store.getContext().getClassLoader(), true); pstate.disc = pstate.mapping.getDiscriminator(); pstate.discValue = pstate.disc.getValue() != null ? pstate.disc.getValue() : "1"; } } else if (ImplHelper.isManageable(val)) { ClassMapping mapping = ctx.store.getConfiguration(). getMappingRepositoryInstance().getMapping(val.getClass(), ctx.store.getContext().getClassLoader(), true); pstate.sqlValue = mapping.toDataStoreValue(val, mapping.getPrimaryKeyColumns(), ctx.store); pstate.otherLength = mapping.getPrimaryKeyColumns().length; } else pstate.sqlValue = val; }