/** * Return the SQL value of this constant. */ public Object getSQLValue(Select sel, ExpContext ctx, ExpState state) { return getValue(ctx, state); }
/** * Return the value of this constant. May be more robust than the * parameters-only form. */ public Object getValue(ExpContext ctx, ExpState state) { return getValue(ctx.params); }
/** * Return the value of this constant. May be more robust than the * parameters-only form. */ public Object getValue(ExpContext ctx, ExpState state) { return getValue(ctx.params); }
/** * Return the value of this constant. May be more robust than the * parameters-only form. */ public Object getValue(ExpContext ctx, ExpState state) { return getValue(ctx.params); }
/** * Return the collection to test for containment with. */ protected Collection getCollection(ExpContext ctx, ExpState state) { Map map = (Map) getConstant().getValue(ctx, state); return (map == null) ? null : map.values(); } }
/** * Return the collection to test for containment with. */ protected Collection getCollection(ExpContext ctx, ExpState state) { Map map = (Map) getConstant().getValue(ctx, state); return (map == null) ? null : map.keySet(); } }
/** * Return the collection to test for containment with. */ protected Collection getCollection(ExpContext ctx, ExpState state) { Map map = (Map) getConstant().getValue(ctx, state); return (map == null) ? null : map.keySet(); } }
/** * Return the collection to test for containment with. */ protected Collection getCollection(ExpContext ctx, ExpState state) { Map map = (Map) getConstant().getValue(ctx, state); return (map == null) ? null : map.values(); } }
/** * Return the collection to test for containment with. */ protected Collection getCollection(ExpContext ctx, ExpState state) { Map map = (Map) getConstant().getValue(ctx, state); return (map == null) ? null : map.values(); } }
/** * Return the collection to test for containment with. */ protected Collection getCollection(ExpContext ctx, ExpState state) { Map map = (Map) getConstant().getValue(ctx, state); return (map == null) ? null : map.keySet(); } }
/** * Return the collection to test for containment with. */ protected Collection getCollection(ExpContext ctx, ExpState state) { Map map = (Map) getConstant().getValue(ctx, state); return (map == null) ? null : map.values(); } }
public void appendIsEmpty(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) { Object obj = getValue(ctx, state); if (obj instanceof Collection && ((Collection) obj).isEmpty()) sql.append(TRUE); else if (obj instanceof Map && ((Map) obj).isEmpty()) sql.append(TRUE); else sql.append(FALSE); }
public void appendIsEmpty(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) { Object obj = getValue(ctx, state); if (obj instanceof Collection && ((Collection) obj).isEmpty()) sql.append(TRUE); else if (obj instanceof Map && ((Map) obj).isEmpty()) sql.append(TRUE); else sql.append(FALSE); }
public void appendIsNotEmpty(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql){ Object obj = getValue(ctx, state); if (obj instanceof Collection && ((Collection) obj).isEmpty()) sql.append(FALSE); else if (obj instanceof Map && ((Map) obj).isEmpty()) sql.append(FALSE); else sql.append(TRUE); }
public void appendIsEmpty(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) { Object obj = getValue(ctx, state); if (obj instanceof Collection && ((Collection) obj).isEmpty()) sql.append(TRUE); else if (obj instanceof Map && ((Map) obj).isEmpty()) sql.append(TRUE); else sql.append(FALSE); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf) { _const.calculateValue(sel, ctx, state, null, null); if (_cls.isInstance(_const.getValue(ctx, state))) buf.append("1 = 1"); else buf.append("1 <> 1"); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf) { _const.calculateValue(sel, ctx, state, null, null); if (_cls.isInstance(_const.getValue(ctx, state))) buf.append("1 = 1"); else buf.append("1 <> 1"); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf) { _const.calculateValue(sel, ctx, state, null, null); if (_cls.isInstance(_const.getValue(ctx, state))) buf.append("1 = 1"); else buf.append("1 <> 1"); }
public Object getValue(Object[] params) { Object o = _constant.getValue(params); if (!(ImplHelper.isManageable(o))) return null; return (ImplHelper.toPersistenceCapable(o, this.getMetaData().getRepository().getConfiguration())) .pcFetchObjectId(); }
public Object getValue(Object[] params) { Object o = _constant.getValue(params); if (!(ImplHelper.isManageable(o))) return null; return (ImplHelper.toPersistenceCapable(o, this.getMetaData().getRepository().getConfiguration())) .pcFetchObjectId(); }