org.jooq.Record2 Java Examples

The following examples show how to use org.jooq.Record2. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SomethingcompositeDao.java    From vertx-jooq with MIT License 5 votes vote down vote up
@javax.inject.Inject

    /**
     * @param configuration The Configuration used for rendering and query execution.
     * @param vertx the vertx instance
     */
    public SomethingcompositeDao(Configuration configuration, io.vertx.reactivex.sqlclient.SqlClient delegate) {
        super(Somethingcomposite.SOMETHINGCOMPOSITE, generated.rx.reactive.guice.vertx.tables.pojos.Somethingcomposite.class, new ReactiveRXQueryExecutor<SomethingcompositeRecord,generated.rx.reactive.guice.vertx.tables.pojos.Somethingcomposite,Record2<Integer, Integer>>(configuration,delegate,generated.rx.reactive.guice.vertx.tables.mappers.RowMappers.getSomethingcompositeMapper()));
    }
 
Example #2
Source File: SomethingcompositeDao.java    From vertx-jooq with MIT License 5 votes vote down vote up
@javax.inject.Inject

    /**
     * @param configuration Used for rendering, so only SQLDialect must be set and must be one of the MYSQL types or POSTGRES.
     * @param vertx the vertx instance
     * @param delegate A configured AsyncSQLClient that is used for query execution
     */
    public SomethingcompositeDao(Configuration configuration, io.vertx.core.Vertx vertx, io.vertx.ext.asyncsql.AsyncSQLClient delegate) {
        super(Somethingcomposite.SOMETHINGCOMPOSITE, generated.cf.async.guice.tables.pojos.Somethingcomposite.class, new AsyncCompletableFutureQueryExecutor<SomethingcompositeRecord,generated.cf.async.guice.tables.pojos.Somethingcomposite,Record2<Integer, Integer>>(configuration,vertx,delegate,generated.cf.async.guice.tables.pojos.Somethingcomposite::new, Somethingcomposite.SOMETHINGCOMPOSITE));
    }
 
Example #3
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 5 votes vote down vote up
@Override
protected CompletableFuture<Record2<Integer, Integer>> insertAndReturn(Somethingcomposite something) {
    return dao
            .insert(something)
            .thenAccept(i->Assert.assertEquals(1L,i.longValue()))
            .thenApply(v->getId(something));
}
 
Example #4
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 5 votes vote down vote up
@Override
protected Single<Record2<Integer, Integer>> insertAndReturn(Somethingcomposite something) {
    return dao
            .insert(something)
            .doOnEvent((i, x) -> Assert.assertEquals(1L, i.longValue()))
            .map(v -> getId(something));
}
 
Example #5
Source File: SomethingcompositeDao.java    From vertx-jooq with MIT License 5 votes vote down vote up
@javax.inject.Inject

    /**
     * @param configuration Used for rendering, so only SQLDialect must be set and must be one of the MYSQL types or POSTGRES.
     * @param delegate A configured AsyncSQLClient that is used for query execution
     */
    public SomethingcompositeDao(Configuration configuration,io.vertx.reactivex.ext.asyncsql.AsyncSQLClient delegate) {
        super(Somethingcomposite.SOMETHINGCOMPOSITE, generated.rx.async.guice.tables.pojos.Somethingcomposite.class, new AsyncRXQueryExecutor<SomethingcompositeRecord,generated.rx.async.guice.tables.pojos.Somethingcomposite,Record2<Integer, Integer>>(configuration,delegate,generated.rx.async.guice.tables.pojos.Somethingcomposite::new, Somethingcomposite.SOMETHINGCOMPOSITE));
    }
 
Example #6
Source File: SomethingcompositeDao.java    From vertx-jooq with MIT License 5 votes vote down vote up
@javax.inject.Inject

    /**
     * @param configuration The Configuration used for rendering and query execution.
     * @param vertx the vertx instance
     */
    public SomethingcompositeDao(Configuration configuration, io.vertx.reactivex.core.Vertx vertx) {
        super(Somethingcomposite.SOMETHINGCOMPOSITE, generated.rx.jdbc.guice.vertx.tables.pojos.Somethingcomposite.class, new JDBCRXQueryExecutor<SomethingcompositeRecord,generated.rx.jdbc.guice.vertx.tables.pojos.Somethingcomposite,Record2<Integer, Integer>>(configuration,generated.rx.jdbc.guice.vertx.tables.pojos.Somethingcomposite.class,vertx));
    }
 
Example #7
Source File: SomethingcompositeDao.java    From vertx-jooq with MIT License 5 votes vote down vote up
@javax.inject.Inject

    /**
     * @param configuration Used for rendering, so only SQLDialect must be set and must be one of the MYSQL types or POSTGRES.
     * @param delegate A configured AsyncSQLClient that is used for query execution
     */
    public SomethingcompositeDao(Configuration configuration, io.vertx.ext.asyncsql.AsyncSQLClient delegate) {
        super(Somethingcomposite.SOMETHINGCOMPOSITE, generated.classic.async.guice.tables.pojos.Somethingcomposite.class, new AsyncClassicQueryExecutor<SomethingcompositeRecord,generated.classic.async.guice.tables.pojos.Somethingcomposite,Record2<Integer, Integer>>(configuration,delegate,generated.classic.async.guice.tables.pojos.Somethingcomposite::new, Somethingcomposite.SOMETHINGCOMPOSITE));
    }
 
Example #8
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Somethingcomposite setId(Somethingcomposite pojo, Record2<Integer, Integer> id) {
    return pojo.setSomeid(id.component1()).setSomesecondid(id.component2());
}
 
Example #9
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Record2<Integer, Integer> getId(Somethingcomposite pojo) {
    return pojo.into(new SomethingcompositeRecord()).key();
}
 
Example #10
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Condition eqPrimaryKey(Record2<Integer, Integer> id) {
    return Tables.SOMETHINGCOMPOSITE.SOMEID.eq(id.component1()).and(Tables.SOMETHINGCOMPOSITE.SOMESECONDID.eq(id.component2()));
}
 
Example #11
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Condition eqPrimaryKey(Record2<Integer, Integer> id) {
    return Tables.SOMETHINGCOMPOSITE.SOMEID.eq(id.component1()).and(Tables.SOMETHINGCOMPOSITE.SOMESECONDID.eq(id.component2()));
}
 
Example #12
Source File: CmNsOptRecord.java    From oneops with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Record2<Long, Long> key() {
    return (Record2) super.key();
}
 
Example #13
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Record2<Integer, Integer> getId(Somethingcomposite pojo) {
    return pojo.into(new SomethingcompositeRecord()).key();
}
 
Example #14
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Record2<Integer, Integer> getId(Somethingcomposite pojo) {
    return pojo.into(new SomethingcompositeRecord()).key();
}
 
Example #15
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Somethingcomposite setId(Somethingcomposite pojo, Record2<Integer, Integer> id) {
    return pojo.setSomeid(id.component1()).setSomesecondid(id.component2());
}
 
Example #16
Source File: SomethingcompositeDao.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
public AsyncClassicQueryExecutor<SomethingcompositeRecord,generated.classic.async.guice.tables.pojos.Somethingcomposite,Record2<Integer, Integer>> queryExecutor(){
    return (AsyncClassicQueryExecutor<SomethingcompositeRecord,generated.classic.async.guice.tables.pojos.Somethingcomposite,Record2<Integer, Integer>>) super.queryExecutor();
}
 
Example #17
Source File: SomethingcompositeDao.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
public JDBCClassicQueryExecutor<SomethingcompositeRecord,generated.classic.jdbc.guice.vertx.tables.pojos.Somethingcomposite,Record2<Integer, Integer>> queryExecutor(){
    return (JDBCClassicQueryExecutor<SomethingcompositeRecord,generated.classic.jdbc.guice.vertx.tables.pojos.Somethingcomposite,Record2<Integer, Integer>>) super.queryExecutor();
}
 
Example #18
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Somethingcomposite setId(Somethingcomposite pojo, Record2<Integer, Integer> id) {
    return pojo.setSomeid(id.component1()).setSomesecondid(id.component2());
}
 
Example #19
Source File: SomethingcompositeDao.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
public AsyncRXQueryExecutor<SomethingcompositeRecord,generated.rx.async.regular.tables.pojos.Somethingcomposite,Record2<Integer, Integer>> queryExecutor(){
    return (AsyncRXQueryExecutor<SomethingcompositeRecord,generated.rx.async.regular.tables.pojos.Somethingcomposite,Record2<Integer, Integer>>) super.queryExecutor();
}
 
Example #20
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Somethingcomposite setId(Somethingcomposite pojo, Record2<Integer, Integer> id) {
    return pojo.setSomeid(id.component1()).setSomesecondid(id.component2());
}
 
Example #21
Source File: SomethingcompositeRecord.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
public Record2<Integer, Integer> key() {
    return (Record2) super.key();
}
 
Example #22
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Somethingcomposite setId(Somethingcomposite pojo, Record2<Integer, Integer> id) {
    return pojo.setSomeid(id.component1()).setSomesecondid(id.component2());
}
 
Example #23
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Somethingcomposite setId(Somethingcomposite pojo, Record2<Integer, Integer> id) {
    return pojo.setSomeid(id.component1()).setSomesecondid(id.component2());
}
 
Example #24
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Condition eqPrimaryKey(Record2<Integer, Integer> id) {
    return Tables.SOMETHINGCOMPOSITE.SOMEID.eq(id.component1()).and(Tables.SOMETHINGCOMPOSITE.SOMESECONDID.eq(id.component2()));
}
 
Example #25
Source File: SomethingcompositeDao.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
public ReactiveRXQueryExecutor<SomethingcompositeRecord,generated.rx.reactive.regular.vertx.tables.pojos.Somethingcomposite,Record2<Integer, Integer>> queryExecutor(){
    return (ReactiveRXQueryExecutor<SomethingcompositeRecord,generated.rx.reactive.regular.vertx.tables.pojos.Somethingcomposite,Record2<Integer, Integer>>) super.queryExecutor();
}
 
Example #26
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Record2<Integer, Integer> getId(Somethingcomposite pojo) {
    SomethingcompositeRecord record = new SomethingcompositeRecord();
    record.from(pojo);
    return record.key();
}
 
Example #27
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Record2<Integer, Integer> getId(Somethingcomposite pojo) {
    SomethingcompositeRecord record = new SomethingcompositeRecord();
    record.from(pojo);
    return record.key();
}
 
Example #28
Source File: SomethingcompositeRecord.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
public Record2<Integer, Integer> key() {
    return (Record2) super.key();
}
 
Example #29
Source File: SomethingcompositeDao.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
public ReactiveRXQueryExecutor<SomethingcompositeRecord,generated.rx.reactive.guice.vertx.tables.pojos.Somethingcomposite,Record2<Integer, Integer>> queryExecutor(){
    return (ReactiveRXQueryExecutor<SomethingcompositeRecord,generated.rx.reactive.guice.vertx.tables.pojos.Somethingcomposite,Record2<Integer, Integer>>) super.queryExecutor();
}
 
Example #30
Source File: SomethingCompositeDaoTest.java    From vertx-jooq with MIT License 4 votes vote down vote up
@Override
protected Record2<Integer, Integer> getId(Somethingcomposite pojo) {
    SomethingcompositeRecord record = new SomethingcompositeRecord();
    record.from(pojo);
    return record.key();
}