
org.tinygroup.tinydb.query.Conditions Maven / Gradle / Ivy
/**
* Copyright (c) 1997-2013, www.tinygroup.org ([email protected]).
*
* Licensed under the GPL, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.gnu.org/licenses/gpl.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.tinygroup.tinydb.query;
import org.tinygroup.commons.tools.ObjectUtil;
import org.tinygroup.commons.tools.StringUtil;
import org.tinygroup.tinydb.BeanDbNameConverter;
import org.tinygroup.tinydb.impl.DefaultNameConverter;
import java.util.ArrayList;
import java.util.List;
public class Conditions {
private List conditionList = new ArrayList();
private BeanDbNameConverter beanDbNameConverter = new DefaultNameConverter();
public Conditions condition(String name, String operator, Object value) {
return append(name, operator, value);
}
public Conditions and() {
return append("and");
}
public Conditions or() {
return append("or");
}
public Conditions left() {
return append("(");
}
public Conditions right() {
return append(")");
}
@Deprecated
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy