public void appendTo(SQLBuffer buf, FilterValue target, FilterValue[] args, ClassMapping type, JDBCStore store) { if (!args[0].isConstant()) throw new UserException(_loc.get("const-only", TAG)); if (!target.isPath()) throw new UserException(_loc.get("path-only", TAG)); // alias the column using the target's context, so that the // correct relation path to the target is used ClassMapping mapping = target.getClassMapping(); String colName = args[0].getValue().toString(); buf.append(target.getColumnAlias(colName, mapping.getTable())); }
public void appendTo(SQLBuffer buf, FilterValue target, FilterValue[] args, ClassMapping type, JDBCStore store) { if (!args[0].isConstant()) throw new UserException(_loc.get("const-only", TAG)); if (!target.isPath()) throw new UserException(_loc.get("path-only", TAG)); // alias the column using the target's context, so that the // correct relation path to the target is used ClassMapping mapping = target.getClassMapping(); String colName = args[0].getValue().toString(); buf.append(target.getColumnAlias(colName, mapping.getTable())); }
public void appendTo(SQLBuffer buf, FilterValue target, FilterValue[] args, ClassMapping type, JDBCStore store) { if (!args[0].isConstant()) throw new UserException(_loc.get("const-only", TAG)); if (!target.isPath()) throw new UserException(_loc.get("path-only", TAG)); // alias the column using the target's context, so that the // correct relation path to the target is used ClassMapping mapping = target.getClassMapping(); String colName = args[0].getValue().toString(); buf.append(target.getColumnAlias(colName, mapping.getTable())); }
public void appendTo(SQLBuffer buf, FilterValue target, FilterValue[] args, ClassMapping type, JDBCStore store) { if (!args[0].isConstant()) throw new UserException(_loc.get("const-only", TAG)); if (!target.isPath()) throw new UserException(_loc.get("path-only", TAG)); // alias the column using the target's context, so that the // correct relation path to the target is used ClassMapping mapping = target.getClassMapping(); String colName = args[0].getValue().toString(); buf.append(target.getColumnAlias(colName, mapping.getTable())); }
public void appendTo(SQLBuffer buf, FilterValue target, FilterValue[] args, ClassMapping type, JDBCStore store) { if (!args[0].isConstant()) throw new UserException(_loc.get("const-only", TAG)); if (!target.isPath()) throw new UserException(_loc.get("path-only", TAG)); // alias the column using the target's context, so that the // correct relation path to the target is used ClassMapping mapping = target.getClassMapping(); String colName = args[0].getValue().toString(); buf.append(target.getColumnAlias(colName, mapping.getTable())); }