com.easy.query.api4j.client.DefaultEasyQuery Maven / Gradle / Ivy
package com.easy.query.api4j.client;
import com.easy.query.api4j.delete.EntityDeletable;
import com.easy.query.api4j.delete.ExpressionDeletable;
import com.easy.query.api4j.delete.impl.EasyEntityDeletable;
import com.easy.query.api4j.delete.impl.EasyExpressionDeletable;
import com.easy.query.api4j.insert.EasyEntityInsertable;
import com.easy.query.api4j.insert.EntityInsertable;
import com.easy.query.api4j.select.Queryable;
import com.easy.query.api4j.select.impl.EasyQueryable;
import com.easy.query.api4j.update.EntityUpdatable;
import com.easy.query.api4j.update.ExpressionUpdatable;
import com.easy.query.api4j.update.impl.EasyEntityUpdatable;
import com.easy.query.api4j.update.impl.EasyExpressionUpdatable;
import com.easy.query.core.api.client.EasyQueryClient;
import com.easy.query.core.basic.extension.track.EntityState;
import com.easy.query.core.basic.jdbc.tx.Transaction;
import com.easy.query.core.context.QueryRuntimeContext;
import java.util.Collection;
/**
* @author xuejiaming
* @Date: 2023/3/6 13:30
*/
public class DefaultEasyQuery implements EasyQuery {
private final EasyQueryClient easyQueryClient;
public DefaultEasyQuery(EasyQueryClient easyQueryClient) {
this.easyQueryClient = easyQueryClient;
}
@Override
public EasyQueryClient getEasyQueryClient() {
return easyQueryClient;
}
@Override
public QueryRuntimeContext getRuntimeContext() {
return easyQueryClient.getRuntimeContext();
}
@Override
public Queryable queryable(Class clazz) {
return new EasyQueryable<>(easyQueryClient.queryable(clazz));
}
@Override
public Queryable queryable(String sql, Class clazz, Collection
© 2015 - 2025 Weber Informatics LLC | Privacy Policy