win.doyto.query.test.DynamicQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doyto-query-test Show documentation
Show all versions of doyto-query-test Show documentation
The test package for DoytoQuery Library
// Generated by delombok at Sat Jan 27 04:38:03 UTC 2024
/*
* Copyright © 2019-2024 Forb Yuan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package win.doyto.query.test;
import win.doyto.query.annotation.Transient;
import win.doyto.query.core.PageQuery;
/**
* DynamicQuery
*
* @author f0rb on 2019-05-23
*/
public class DynamicQuery extends PageQuery {
@Transient
private String user;
@Transient
private String project;
@Transient
private String locale;
private Integer scoreLt;
@Override
public DynamicIdWrapper toIdWrapper() {
return new DynamicIdWrapper(null, user, project, locale);
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static abstract class DynamicQueryBuilder> extends PageQuery.PageQueryBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String user;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String project;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String locale;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private Integer scoreLt;
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected abstract B self();
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public abstract C build();
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B user(final String user) {
this.user = user;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B project(final String project) {
this.project = project;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B locale(final String locale) {
this.locale = locale;
return self();
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B scoreLt(final Integer scoreLt) {
this.scoreLt = scoreLt;
return self();
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "DynamicQuery.DynamicQueryBuilder(super=" + super.toString() + ", user=" + this.user + ", project=" + this.project + ", locale=" + this.locale + ", scoreLt=" + this.scoreLt + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static final class DynamicQueryBuilderImpl extends DynamicQuery.DynamicQueryBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private DynamicQueryBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected DynamicQuery.DynamicQueryBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public DynamicQuery build() {
return new DynamicQuery(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected DynamicQuery(final DynamicQuery.DynamicQueryBuilder, ?> b) {
super(b);
this.user = b.user;
this.project = b.project;
this.locale = b.locale;
this.scoreLt = b.scoreLt;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static DynamicQuery.DynamicQueryBuilder, ?> builder() {
return new DynamicQuery.DynamicQueryBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getUser() {
return this.user;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getProject() {
return this.project;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getLocale() {
return this.locale;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Integer getScoreLt() {
return this.scoreLt;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setUser(final String user) {
this.user = user;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setProject(final String project) {
this.project = project;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setLocale(final String locale) {
this.locale = locale;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setScoreLt(final Integer scoreLt) {
this.scoreLt = scoreLt;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public DynamicQuery() {
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public DynamicQuery(final String user, final String project, final String locale, final Integer scoreLt) {
this.user = user;
this.project = project;
this.locale = locale;
this.scoreLt = scoreLt;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy