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

com.easy.query.api4j.dynamic.condition.impl.ObjectQueryBuilder4JImpl Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
package com.easy.query.api4j.dynamic.condition.impl;

import com.easy.query.api4j.dynamic.condition.ObjectQueryBuilder4J;
import com.easy.query.core.api.dynamic.condition.ObjectQueryBuilder;
import com.easy.query.core.expression.lambda.Property;
import com.easy.query.core.util.EasyLambdaUtil;

/**
 * create time 2023/6/11 09:53
 * 文件说明
 *
 * @author xuejiaming
 */
public class ObjectQueryBuilder4JImpl implements ObjectQueryBuilder4J {
    private final ObjectQueryBuilder objectQueryBuilder;

    public ObjectQueryBuilder4JImpl(ObjectQueryBuilder objectQueryBuilder){

        this.objectQueryBuilder = objectQueryBuilder;
    }

    @Override
    public ObjectQueryBuilder4J property(Property entityProperty, Property property) {
        objectQueryBuilder.property(EasyLambdaUtil.getPropertyName(entityProperty),EasyLambdaUtil.getPropertyName(property));
        return this;
    }

    @Override
    public ObjectQueryBuilder4J property(Property entityProperty, Property property1, Property property2) {
        objectQueryBuilder.property(EasyLambdaUtil.getPropertyName(entityProperty),EasyLambdaUtil.getPropertyName(property1),EasyLambdaUtil.getPropertyName(property2));
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy