/** * Adds an OR condition to the SearchBuilder. * * @param name param name you will use later to set the values in this search condition. * @param field SearchBuilder.entity().get*() which refers to the field that you're searching on. * @param op operation to apply to the field. * @return this */ public GenericSearchBuilder<T, K> or(String name, Object field, Op op) { constructCondition(name, " OR ", _specifiedAttrs.get(0), op); return this; }
/** * Adds an OR condition * * @param field field of the entity object * @param op operator * @param name parameter name * @return this */ public GenericSearchBuilder<T, K> or(Object field, Op op, String name) { constructCondition(name, " OR ", _specifiedAttrs.get(0), op); return this; }
/** * Adds an AND condition to the SearchBuilder. * * @param name param name you will use later to set the values in this search condition. * @param field SearchBuilder.entity().get*() which refers to the field that you're searching on. * @param op operation to apply to the field. * @return this */ public GenericSearchBuilder<T, K> and(String name, Object field, Op op) { constructCondition(name, " AND ", _specifiedAttrs.get(0), op); return this; }
/** * Adds an AND condition. Some prefer this method because it looks like * the actual SQL query. * * @param field field of entity object * @param op operator of the search condition * @param name param name used to later to set parameter value * @return this */ public GenericSearchBuilder<T, K> and(Object field, Op op, String name) { constructCondition(name, " AND ", _specifiedAttrs.get(0), op); return this; }
protected GenericSearchBuilder<T, K> left(Object field, Op op, String name) { constructCondition(name, " ( ", _specifiedAttrs.get(0), op); return this; }
/** * Adds an OR condition but the values can be preset * * @param field field of the entity object * @param op operator * @return Preset */ public Preset or(Object field, Op op) { Condition condition = constructCondition(UUID.randomUUID().toString(), " OR ", _specifiedAttrs.get(0), op); return new Preset(this, condition); }
/** * Adds an AND condition but allows for a preset value to be set for this conditio. * * @param field field of the entity object * @param op operator of the search condition * @return Preset which allows you to set the values */ public Preset and(Object field, Op op) { Condition condition = constructCondition(UUID.randomUUID().toString(), " AND ", _specifiedAttrs.get(0), op); return new Preset(this, condition); }
protected Preset left(Object field, Op op) { Condition condition = constructCondition(UUID.randomUUID().toString(), " ( ", _specifiedAttrs.get(0), op); return new Preset(this, condition); }
/** * Adds an OR condition to the SearchBuilder. * * @param name param name you will use later to set the values in this search condition. * @param field SearchBuilder.entity().get*() which refers to the field that you're searching on. * @param op operation to apply to the field. * @return this */ public GenericSearchBuilder<T, K> or(final String name, final Object field, final Op op) { constructCondition(name, " OR ", _specifiedAttrs.get(0), op); return this; }
/** * Adds an OR condition * * @param field field of the entity object * @param op operator * @param name parameter name * @return this */ public GenericSearchBuilder<T, K> or(final Object field, final Op op, final String name) { constructCondition(name, " OR ", _specifiedAttrs.get(0), op); return this; }
/** * Adds an AND condition to the SearchBuilder. * * @param name param name you will use later to set the values in this search condition. * @param field SearchBuilder.entity().get*() which refers to the field that you're searching on. * @param op operation to apply to the field. * @return this */ public GenericSearchBuilder<T, K> and(final String name, final Object field, final Op op) { constructCondition(name, " AND ", _specifiedAttrs.get(0), op); return this; }
protected GenericSearchBuilder<T, K> left(final Object field, final Op op, final String name) { constructCondition(name, " ( ", _specifiedAttrs.get(0), op); return this; }
/** * Adds an AND condition. Some prefer this method because it looks like * the actual SQL query. * * @param field field of entity object * @param op operator of the search condition * @param name param name used to later to set parameter value * @return this */ public GenericSearchBuilder<T, K> and(final Object field, final Op op, final String name) { constructCondition(name, " AND ", _specifiedAttrs.get(0), op); return this; }
/** * Adds an AND condition but allows for a preset value to be set for this conditio. * * @param field field of the entity object * @param op operator of the search condition * @return Preset which allows you to set the values */ public Preset and(final Object field, final Op op) { final Condition condition = constructCondition(UUID.randomUUID().toString(), " AND ", _specifiedAttrs.get(0), op); return new Preset(this, condition); }
/** * Adds an OR condition but the values can be preset * * @param field field of the entity object * @param op operator * @return Preset */ public Preset or(final Object field, final Op op) { final Condition condition = constructCondition(UUID.randomUUID().toString(), " OR ", _specifiedAttrs.get(0), op); return new Preset(this, condition); }
protected Preset left(final Object field, final Op op) { final Condition condition = constructCondition(UUID.randomUUID().toString(), " ( ", _specifiedAttrs.get(0), op); return new Preset(this, condition); }