/** * Return the value to cache for the given object. Caches its oid by * default. */ protected Object toRelationData(Object val, StoreContext ctx) { return ctx.getObjectId(val); }
/** * Return the value to cache for the given object. Caches its oid by * default. */ protected Object toRelationData(Object val, StoreContext ctx) { return ctx.getObjectId(val); }
/** * Return the value to cache for the given object. Caches its oid by * default. */ protected Object toRelationData(Object val, StoreContext ctx) { return ctx.getObjectId(val); }
/** * Return the value to cache for the given object. Caches its oid by * default. */ protected Object toRelationData(Object val, StoreContext ctx) { return ctx.getObjectId(val); }
/** * Return the value to cache for the given object. Caches its oid by * default. */ protected Object toRelationData(Object val, StoreContext ctx) { return ctx.getObjectId(val); }
protected Object replaceObject(Object obj) { Object oid = _ctx.getObjectId(obj); return (oid == null) ? obj : new ObjectIdMarker(oid); } }
protected Object replaceObject(Object obj) { Object oid = _ctx.getObjectId(obj); return (oid == null) ? obj : new ObjectIdMarker(oid); } }
protected Object replaceObject(Object obj) { Object oid = _ctx.getObjectId(obj); return (oid == null) ? obj : new ObjectIdMarker(oid); } }
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { return ctx.getObjectId(_val.eval(candidate, orig, ctx, params)); }
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { return ctx.getObjectId(_val.eval(candidate, orig, ctx, params)); }
protected Object replaceObject(Object obj) { Object oid = _ctx.getObjectId(obj); return (oid == null) ? obj : new ObjectIdMarker(oid); } }
protected Object replaceObject(Object obj) { Object oid = _ctx.getObjectId(obj); return (oid == null) ? obj : new ObjectIdMarker(oid); } }
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params) { return ctx.getObjectId(_val.eval(candidate, orig, ctx, params)); }
public Object getValue(ExpContext ctx, ExpState state) { return ctx.store.getContext().getObjectId(_constant.getValue(ctx, ((ConstGetObjectIdExpState) state).constantState)); }
public Object getValue(ExpContext ctx, ExpState state) { return ctx.store.getContext().getObjectId(_constant.getValue(ctx, ((ConstGetObjectIdExpState) state).constantState)); }
public Object getValue(ExpContext ctx, ExpState state) { return ctx.store.getContext().getObjectId(_constant.getValue(ctx, ((ConstGetObjectIdExpState) state).constantState)); }
public Object getValue(ExpContext ctx, ExpState state) { return ctx.store.getContext().getObjectId(_constant.getValue(ctx, ((ConstGetObjectIdExpState) state).constantState)); }
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; }