Class JooqRepository
java.lang.Object
ch.martinelli.oss.vaadinjooq.repository.JooqRepository
Convenience methods using
DSLContext-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends org.jooq.Record>
intcount(org.jooq.Table<T> table, org.jooq.Condition condition) Count method similar to @see findAll<T extends org.jooq.Record>
List<T>findAll(org.jooq.Table<T> table, org.jooq.Condition condition, Map<org.jooq.Field<?>, com.vaadin.flow.data.provider.SortDirection> orderBy, int offset, int limit) Convenience findAll
-
Constructor Details
-
JooqRepository
public JooqRepository(org.jooq.DSLContext dslContext) RequiresDSLContext- Parameters:
dslContext- The DSLContext to use
-
-
Method Details
-
findAll
public <T extends org.jooq.Record> List<T> findAll(org.jooq.Table<T> table, org.jooq.Condition condition, Map<org.jooq.Field<?>, com.vaadin.flow.data.provider.SortDirection> orderBy, int offset, int limit) Convenience findAll- Type Parameters:
T- The Record type- Parameters:
table- The table to select fromcondition- A condition for the where clauseorderBy- A map fields for sortingoffset- The start offsetlimit- The number of records to return- Returns:
- List of Records
-
count
public <T extends org.jooq.Record> int count(org.jooq.Table<T> table, org.jooq.Condition condition) Count method similar to @see findAll- Type Parameters:
T- The Record type- Parameters:
table- The table to count the recordscondition- A condition for the where clause- Returns:
- Number of records
-