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

net.redpipe.example.wiki.keycloakJooq.jooq.tables.daos.PagesDao Maven / Gradle / Ivy

/*
 * This file is generated by jOOQ.
*/
package net.redpipe.example.wiki.keycloakJooq.jooq.tables.daos;


import io.github.jklingsporn.vertx.jooq.async.rx.VertxDAO;

import java.util.List;

import javax.annotation.Generated;

import org.jooq.Configuration;
import org.jooq.impl.DAOImpl;
import net.redpipe.example.wiki.keycloakJooq.jooq.tables.Pages;
import net.redpipe.example.wiki.keycloakJooq.jooq.tables.records.PagesRecord;

import rx.Completable;
import rx.Observable;
import rx.Single;
import io.github.jklingsporn.vertx.jooq.async.rx.util.RXTool;
import io.github.jklingsporn.vertx.jooq.async.rx.AsyncJooqSQLClient;
/**
 * This class is generated by jOOQ.
 */
@Generated(
    value = {
        "http://www.jooq.org",
        "jOOQ version:3.9.2"
    },
    comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class PagesDao extends DAOImpl implements VertxDAO {

    /**
     * Create a new PagesDao without any configuration
     */
    public PagesDao() {
        super(Pages.PAGES, net.redpipe.example.wiki.keycloakJooq.jooq.tables.pojos.Pages.class);
    }

    /**
     * Create a new PagesDao with an attached configuration
     */
    public PagesDao(Configuration configuration) {
        super(Pages.PAGES, net.redpipe.example.wiki.keycloakJooq.jooq.tables.pojos.Pages.class, configuration);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected Integer getId(net.redpipe.example.wiki.keycloakJooq.jooq.tables.pojos.Pages object) {
        return object.getId();
    }

    /**
     * Fetch records that have id IN (values)
     */
    public List fetchById(Integer... values) {
        return fetch(Pages.PAGES.ID, values);
    }

    /**
     * Fetch a unique record that has id = value
     */
    public net.redpipe.example.wiki.keycloakJooq.jooq.tables.pojos.Pages fetchOneById(Integer value) {
        return fetchOne(Pages.PAGES.ID, value);
    }

    /**
     * Fetch records that have name IN (values)
     */
    public List fetchByName(String... values) {
        return fetch(Pages.PAGES.NAME, values);
    }

    /**
     * Fetch a unique record that has name = value
     */
    public net.redpipe.example.wiki.keycloakJooq.jooq.tables.pojos.Pages fetchOneByName(String value) {
        return fetchOne(Pages.PAGES.NAME, value);
    }

    /**
     * Fetch records that have content IN (values)
     */
    public List fetchByContent(String... values) {
        return fetch(Pages.PAGES.CONTENT, values);
    }

    /**
     * Fetch records that have id IN (values) asynchronously
     */
    public Single> fetchByIdAsync(List values) {
        return fetchAsync(Pages.PAGES.ID,values);
    }

    /**
     * Fetch records that have id IN (values) asynchronously
     */
    public Observable fetchByIdObservable(List values) {
        return fetchObservable(Pages.PAGES.ID,values);
    }

    /**
     * Fetch a unique record that has id = value asynchronously
     */
    public Single fetchOneByIdAsync(Integer value) {
        return fetchOneAsync(Pages.PAGES.ID,value);
    }

    /**
     * Fetch records that have name IN (values) asynchronously
     */
    public Single> fetchByNameAsync(List values) {
        return fetchAsync(Pages.PAGES.NAME,values);
    }

    /**
     * Fetch records that have name IN (values) asynchronously
     */
    public Observable fetchByNameObservable(List values) {
        return fetchObservable(Pages.PAGES.NAME,values);
    }

    /**
     * Fetch a unique record that has name = value asynchronously
     */
    public Single fetchOneByNameAsync(String value) {
        return fetchOneAsync(Pages.PAGES.NAME,value);
    }

    /**
     * Fetch records that have content IN (values) asynchronously
     */
    public Single> fetchByContentAsync(List values) {
        return fetchAsync(Pages.PAGES.CONTENT,values);
    }

    /**
     * Fetch records that have content IN (values) asynchronously
     */
    public Observable fetchByContentObservable(List values) {
        return fetchObservable(Pages.PAGES.CONTENT,values);
    }

    private AsyncJooqSQLClient client;

    @Override
    public void setClient(AsyncJooqSQLClient client) {
        this.client = client;
    }

    @Override
    public AsyncJooqSQLClient client() {
        return this.client;
    }

    @Override
    public java.util.function.Function jsonMapper() {
        return net.redpipe.example.wiki.keycloakJooq.jooq.tables.pojos.Pages::new;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy