release-0.2.0
This commit is contained in:
parent
548720fbdc
commit
cb8dcd8fa4
4
pom.xml
4
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>dev.struchkov.haiti.filter</groupId>
|
||||
<artifactId>haiti-filter-quarkus-reactive</artifactId>
|
||||
<version>0.1.0</version>
|
||||
<version>0.2.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Haiti Filter Reactive Quarkus</name>
|
||||
@ -24,7 +24,7 @@
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
|
||||
<quarkus.platform.version>2.5.1.Final</quarkus.platform.version>
|
||||
<haiti.filter.jooq.version>0.1.0</haiti.filter.jooq.version>
|
||||
<haiti.filter.jooq.version>0.2.0</haiti.filter.jooq.version>
|
||||
|
||||
<plugin.nexus.staging.ver>1.6.8</plugin.nexus.staging.ver>
|
||||
<plugin.maven.source.ver>3.2.1</plugin.maven.source.ver>
|
||||
|
@ -4,6 +4,10 @@ import dev.struchkov.haiti.filter.Filter;
|
||||
import dev.struchkov.haiti.filter.FilterQuery;
|
||||
import dev.struchkov.haiti.filter.jooq.CriteriaJooqFilter;
|
||||
import dev.struchkov.haiti.filter.jooq.JoinTable;
|
||||
import dev.struchkov.haiti.filter.jooq.SortContainer;
|
||||
import dev.struchkov.haiti.filter.jooq.SortType;
|
||||
import dev.struchkov.haiti.filter.jooq.page.PageableOffset;
|
||||
import dev.struchkov.haiti.filter.jooq.page.PageableSeek;
|
||||
import io.smallrye.mutiny.Multi;
|
||||
import io.vertx.mutiny.pgclient.PgPool;
|
||||
import io.vertx.mutiny.sqlclient.Row;
|
||||
@ -69,8 +73,13 @@ public class CriteriaFilter<T> implements Filter {
|
||||
return this;
|
||||
}
|
||||
|
||||
public CriteriaFilter<T> page(@NonNull String fieldOrder, Object id, int pageSize) {
|
||||
jooqFilter.page(fieldOrder, id, pageSize);
|
||||
public CriteriaFilter<T> page(@NonNull PageableOffset offset) {
|
||||
jooqFilter.page(offset);
|
||||
return this;
|
||||
}
|
||||
|
||||
public CriteriaFilter<T> page(@NonNull PageableSeek seek) {
|
||||
jooqFilter.page(seek);
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -79,6 +88,21 @@ public class CriteriaFilter<T> implements Filter {
|
||||
return this;
|
||||
}
|
||||
|
||||
public CriteriaFilter<T> sort(@NonNull SortContainer container) {
|
||||
jooqFilter.sort(container);
|
||||
return this;
|
||||
}
|
||||
|
||||
public CriteriaFilter<T> sort(@NonNull String field, SortType sortType) {
|
||||
jooqFilter.sort(field, sortType);
|
||||
return this;
|
||||
}
|
||||
|
||||
public CriteriaFilter<T> sort(@NonNull String field) {
|
||||
jooqFilter.sort(field);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Multi<T> build() {
|
||||
final Query query = jooqFilter.build();
|
||||
|
Loading…
Reference in New Issue
Block a user