tk.mybatis.mapper.weekend.WeekendCriteria Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mapper-weekend Show documentation
Show all versions of mapper-weekend Show documentation
Mybatis通用Mapper扩展 - weekend
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 the original author or authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*/
package tk.mybatis.mapper.weekend;
import tk.mybatis.mapper.entity.EntityColumn;
import tk.mybatis.mapper.entity.Example.Criteria;
import tk.mybatis.mapper.weekend.reflection.Reflections;
import java.util.Map;
/**
* @author Frank
*/
public class WeekendCriteria extends Criteria {
protected WeekendCriteria(Map propertyMap, boolean exists, boolean notNull) {
super(propertyMap, exists, notNull);
}
public WeekendCriteria andIsNull(Fn fn) {
this.andIsNull(Reflections.fnToFieldName(fn));
return this;
}
public WeekendCriteria andIsNotNull(Fn fn) {
super.andIsNotNull(Reflections.fnToFieldName(fn));
return this;
}
public WeekendCriteria andEqualTo(Fn fn, Object value) {
super.andEqualTo(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria andNotEqualTo(Fn fn, Object value) {
super.andNotEqualTo(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria andGreaterThan(Fn fn, Object value) {
super.andGreaterThan(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria andGreaterThanOrEqualTo(Fn fn, Object value) {
super.andGreaterThanOrEqualTo(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria andLessThan(Fn fn, Object value) {
super.andLessThan(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria andLessThanOrEqualTo(Fn fn, Object value) {
super.andLessThanOrEqualTo(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria andIn(Fn fn, Iterable values) {
super.andIn(Reflections.fnToFieldName(fn), values);
return this;
}
public WeekendCriteria andNotIn(Fn fn, Iterable values) {
super.andNotIn(Reflections.fnToFieldName(fn), values);
return this;
}
public WeekendCriteria andBetween(Fn fn, Object value1, Object value2) {
super.andBetween(Reflections.fnToFieldName(fn), value1, value2);
return this;
}
public WeekendCriteria andNotBetween(Fn fn, Object value1, Object value2) {
super.andNotBetween(Reflections.fnToFieldName(fn), value1, value2);
return this;
}
public WeekendCriteria andLike(Fn fn, String value) {
super.andLike(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria andNotLike(Fn fn, String value) {
super.andNotLike(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria orIsNull(Fn fn) {
super.orIsNull(Reflections.fnToFieldName(fn));
return this;
}
public WeekendCriteria orIsNotNull(Fn fn) {
super.orIsNotNull(Reflections.fnToFieldName(fn));
return this;
}
public WeekendCriteria orEqualTo(Fn fn, Object value) {
super.orEqualTo(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria orNotEqualTo(Fn fn, Object value) {
super.orNotEqualTo(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria orGreaterThan(Fn fn, Object value) {
super.orGreaterThan(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria orGreaterThanOrEqualTo(Fn fn, Object value) {
super.orGreaterThanOrEqualTo(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria orLessThan(Fn fn, Object value) {
super.orLessThan(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria orLessThanOrEqualTo(Fn fn, Object value) {
super.orLessThanOrEqualTo(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria orIn(Fn fn, Iterable values) {
super.orIn(Reflections.fnToFieldName(fn), values);
return this;
}
public WeekendCriteria orNotIn(Fn fn, Iterable values) {
super.orNotIn(Reflections.fnToFieldName(fn), values);
return this;
}
public WeekendCriteria orBetween(Fn fn, Object value1, Object value2) {
super.orBetween(Reflections.fnToFieldName(fn), value1, value2);
return this;
}
public WeekendCriteria orNotBetween(Fn fn, Object value1, Object value2) {
super.orNotBetween(Reflections.fnToFieldName(fn), value1, value2);
return this;
}
public WeekendCriteria orLike(Fn fn, String value) {
super.orLike(Reflections.fnToFieldName(fn), value);
return this;
}
public WeekendCriteria orNotLike(Fn fn, String value) {
super.orNotLike(Reflections.fnToFieldName(fn), value);
return this;
}
}