All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jporm.sql.query.where.WhereDefault Maven / Gradle / Ivy

There is a newer version: 8.9.0
Show newest version
/*******************************************************************************
 * Copyright 2016 Francesco Cina'
 *
 * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
 *
 * 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 com.jporm.sql.query.where;

import java.util.Collection;
import java.util.Map;

import com.jporm.sql.query.select.SelectCommon;

public interface WhereDefault> extends Where, WhereProvider {

    WhereExpression whereImplementation();

    @Override
    default WHERE allEq(Map propertyMap) {
        whereImplementation().allEq(propertyMap);
        return where();
    }

    @Override
    default WHERE and() {
        whereImplementation().and();
        return where();
    }

    @Override
    default WHERE and(String customClause, Object... args) {
        whereImplementation().and(customClause, args);
        return where();
    }

    @Override
    default WHERE and(WhereExpressionBuilder whereExpression) {
        whereImplementation().and(whereExpression);
        return where();
    }

    @Override
    default WHERE eq(String property, Object value) {
        whereImplementation().eq(property, value);
        return where();
    }

    @Override
    default WHERE eqProperties(String firstProperty, String secondProperty) {
        whereImplementation().eqProperties(firstProperty, secondProperty);
        return where();
    }

    @Override
    default WHERE ge(String property, Object value) {
        whereImplementation().ge(property, value);
        return where();
    }

    @Override
    default WHERE geProperties(String firstProperty, String secondProperty) {
        whereImplementation().geProperties(firstProperty, secondProperty);
        return where();
    }

    @Override
    default WHERE gt(String property, Object value) {
        whereImplementation().gt(property, value);
        return where();
    }

    @Override
    default WHERE gtProperties(String firstProperty, String secondProperty) {
        whereImplementation().gtProperties(firstProperty, secondProperty);
        return where();
    }

    @Override
    default WHERE ieq(String property, String value) {
        whereImplementation().ieq(property, value);
        return where();
    }

    @Override
    default WHERE ieqProperties(String firstProperty, String secondProperty) {
        whereImplementation().ieqProperties(firstProperty, secondProperty);
        return where();
    }

    @Override
    default WHERE ilike(String property, String value) {
        whereImplementation().ilike(property, value);
        return where();
    }

    @Override
    default WHERE in(String property, Collection values) {
        whereImplementation().in(property, values);
        return where();
    }

    @Override
    default WHERE in(String property, Object... values) {
        whereImplementation().in(property, values);
        return where();
    }

    @Override
    default WHERE in(String property, SelectCommon subQuery) {
        whereImplementation().in(property, subQuery);
        return where();
    }

    @Override
    default WHERE isNotNull(String property) {
        whereImplementation().isNotNull(property);
        return where();
    }

    @Override
    default WHERE isNull(String property) {
        whereImplementation().isNull(property);
        return where();
    }

    @Override
    default WHERE le(String property, Object value) {
        whereImplementation().le(property, value);
        return where();
    }

    @Override
    default WHERE leProperties(String firstProperty, String secondProperty) {
        whereImplementation().leProperties(firstProperty, secondProperty);
        return where();
    }

    @Override
    default WHERE like(String property, String value) {
        whereImplementation().like(property, value);
        return where();
    }

    @Override
    default WHERE lt(String property, Object value) {
        whereImplementation().lt(property, value);
        return where();
    }

    @Override
    default WHERE ltProperties(String firstProperty, String secondProperty) {
        whereImplementation().ltProperties(firstProperty, secondProperty);
        return where();
    }

    @Override
    default WHERE ne(String property, Object value) {
        whereImplementation().ne(property, value);
        return where();
    }

    @Override
    default WHERE neProperties(String firstProperty, String secondProperty) {
        whereImplementation().neProperties(firstProperty, secondProperty);
        return where();
    }

    @Override
    default WHERE nin(String property, Collection values) {
        whereImplementation().nin(property, values);
        return where();
    }

    @Override
    default WHERE nin(String property, Object... values) {
        whereImplementation().nin(property, values);
        return where();
    }

    @Override
    default WHERE nin(String property, SelectCommon subQuery) {
        whereImplementation().nin(property, subQuery);
        return where();
    }

    @Override
    default WHERE nlike(String property, String value) {
        whereImplementation().nlike(property, value);
        return where();
    }

    @Override
    default WHERE not() {
        whereImplementation().not();
        return where();
    }

    @Override
    default WHERE not(String customClause, Object... args) {
        whereImplementation().not(customClause, args);
        return where();
    }

    @Override
    default WHERE not(WhereExpressionBuilder whereExpression) {
        whereImplementation().not(whereExpression);
        return where();
    }

    @Override
    default WHERE or() {
        whereImplementation().or();
        return where();
    }

    @Override
    default WHERE or(String customClause, Object... args) {
        whereImplementation().or(customClause, args);
        return where();
    }

    @Override
    default WHERE or(WhereExpressionBuilder whereExpression) {
        whereImplementation().or(whereExpression);
        return where();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy