cn.vertxup.erp.domain.tables.daos.RCompanyCustomerDao Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package cn.vertxup.erp.domain.tables.daos;
import cn.vertxup.erp.domain.tables.RCompanyCustomer;
import cn.vertxup.erp.domain.tables.records.RCompanyCustomerRecord;
import io.github.jklingsporn.vertx.jooq.shared.internal.AbstractVertxDAO;
import java.util.Collection;
import org.jooq.Configuration;
import org.jooq.Record2;
import java.util.List;
import io.vertx.core.Future;
import io.github.jklingsporn.vertx.jooq.classic.jdbc.JDBCClassicQueryExecutor;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class RCompanyCustomerDao extends AbstractVertxDAO, Future>, Future, Future, Future>> implements io.github.jklingsporn.vertx.jooq.classic.VertxDAO> {
/**
* @param configuration The Configuration used for rendering and query
* execution.
* * @param vertx the vertx instance
*/
public RCompanyCustomerDao(Configuration configuration, io.vertx.core.Vertx vertx) {
super(RCompanyCustomer.R_COMPANY_CUSTOMER, cn.vertxup.erp.domain.tables.pojos.RCompanyCustomer.class, new JDBCClassicQueryExecutor>(configuration,cn.vertxup.erp.domain.tables.pojos.RCompanyCustomer.class,vertx));
}
@Override
protected Record2 getId(cn.vertxup.erp.domain.tables.pojos.RCompanyCustomer object) {
return compositeKeyRecord(object.getCompanyId(), object.getCustomerId());
}
/**
* Find records that have CUSTOMER_ID IN (values)
* asynchronously
*/
public Future> findManyByCustomerId(Collection values) {
return findManyByCondition(RCompanyCustomer.R_COMPANY_CUSTOMER.CUSTOMER_ID.in(values));
}
/**
* Find records that have CUSTOMER_ID IN (values)
* asynchronously limited by the given limit
*/
public Future> findManyByCustomerId(Collection values, int limit) {
return findManyByCondition(RCompanyCustomer.R_COMPANY_CUSTOMER.CUSTOMER_ID.in(values),limit);
}
/**
* Find records that have COMMENT IN (values)
asynchronously
*/
public Future> findManyByComment(Collection values) {
return findManyByCondition(RCompanyCustomer.R_COMPANY_CUSTOMER.COMMENT.in(values));
}
/**
* Find records that have COMMENT IN (values)
asynchronously
* limited by the given limit
*/
public Future> findManyByComment(Collection values, int limit) {
return findManyByCondition(RCompanyCustomer.R_COMPANY_CUSTOMER.COMMENT.in(values),limit);
}
@Override
public JDBCClassicQueryExecutor> queryExecutor(){
return (JDBCClassicQueryExecutor>) super.queryExecutor();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy