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

win.doyto.query.test.role.RoleViewQuery Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
// 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.role;

import win.doyto.query.core.RelationalQuery;
import win.doyto.query.test.perm.PermissionQuery;
import win.doyto.query.test.user.UserQuery;

/**
 * RoleViewQuery
 *
 * @author f0rb on 2022/11/22
 * @since 1.0.0
 */
public class RoleViewQuery extends RoleQuery implements RelationalQuery {
    private UserQuery withUsers;
    private PermissionQuery withPerms;
    private UserQuery withCreateUser;

    @Override
    public Class getDomainClass() {
        return RoleView.class;
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static abstract class RoleViewQueryBuilder> extends RoleQuery.RoleQueryBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private UserQuery withUsers;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private PermissionQuery withPerms;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private UserQuery withCreateUser;

        @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 withUsers(final UserQuery withUsers) {
            this.withUsers = withUsers;
            return self();
        }

        /**
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B withPerms(final PermissionQuery withPerms) {
            this.withPerms = withPerms;
            return self();
        }

        /**
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B withCreateUser(final UserQuery withCreateUser) {
            this.withCreateUser = withCreateUser;
            return self();
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public java.lang.String toString() {
            return "RoleViewQuery.RoleViewQueryBuilder(super=" + super.toString() + ", withUsers=" + this.withUsers + ", withPerms=" + this.withPerms + ", withCreateUser=" + this.withCreateUser + ")";
        }
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static final class RoleViewQueryBuilderImpl extends RoleViewQuery.RoleViewQueryBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private RoleViewQueryBuilderImpl() {
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected RoleViewQuery.RoleViewQueryBuilderImpl self() {
            return this;
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public RoleViewQuery build() {
            return new RoleViewQuery(this);
        }
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected RoleViewQuery(final RoleViewQuery.RoleViewQueryBuilder b) {
        super(b);
        this.withUsers = b.withUsers;
        this.withPerms = b.withPerms;
        this.withCreateUser = b.withCreateUser;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static RoleViewQuery.RoleViewQueryBuilder builder() {
        return new RoleViewQuery.RoleViewQueryBuilderImpl();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public UserQuery getWithUsers() {
        return this.withUsers;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public PermissionQuery getWithPerms() {
        return this.withPerms;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public UserQuery getWithCreateUser() {
        return this.withCreateUser;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setWithUsers(final UserQuery withUsers) {
        this.withUsers = withUsers;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setWithPerms(final PermissionQuery withPerms) {
        this.withPerms = withPerms;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setWithCreateUser(final UserQuery withCreateUser) {
        this.withCreateUser = withCreateUser;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public RoleViewQuery() {
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public RoleViewQuery(final UserQuery withUsers, final PermissionQuery withPerms, final UserQuery withCreateUser) {
        this.withUsers = withUsers;
        this.withPerms = withPerms;
        this.withCreateUser = withCreateUser;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy