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

fr.ird.observe.dto.referential.ReferentialDtoJavaBeanDefinition Maven / Gradle / Ivy

There is a newer version: 4.34
Show newest version
package fr.ird.observe.dto.referential;

import com.google.auto.service.AutoService;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import io.ultreia.java4all.bean.AbstractJavaBeanComparatorBuilder;
import io.ultreia.java4all.bean.AbstractJavaBeanInstanceBuilder;
import io.ultreia.java4all.bean.AbstractJavaBeanPredicate;
import io.ultreia.java4all.bean.AbstractJavaBeanStream;
import io.ultreia.java4all.bean.definition.AbstractJavaBeanDefinition;
import io.ultreia.java4all.bean.definition.JavaBeanDefinition;
import java.util.Collection;
import java.util.function.BiConsumer;
import java.util.function.Function;
import javax.annotation.Generated;

@AutoService(JavaBeanDefinition.class)
@Generated(value = "io.ultreia.java4all.bean.spi.GenerateJavaBeanDefinitionProcessor", date = "Mon Apr 13 17:22:32 UTC 2020")
public final class ReferentialDtoJavaBeanDefinition extends AbstractJavaBeanDefinition {

    @Override
    protected final ImmutableSet> loadAcceptedTypes() {
        return ImmutableSet.>builder()
                .add(ReferentialDto.class)
                .build();
    }

    @Override
    protected final ImmutableMap> loadTypes() {
        return ImmutableMap.>builder()
                .put("code", java.lang.String.class)
                .put("createDate", java.util.Date.class)
                .put("enabled", boolean.class)
                .put("homeId", java.lang.String.class)
                .put("id", java.lang.String.class)
                .put("lastUpdateDate", java.util.Date.class)
                .put("needComment", boolean.class)
                .put("notPersisted", boolean.class)
                .put("persisted", boolean.class)
                .put("status", fr.ird.observe.dto.referential.ReferenceStatus.class)
                .put("topiaCreateDate", java.util.Date.class)
                .put("topiaId", java.lang.String.class)
                .put("topiaVersion", long.class)
                .put("uri", java.lang.String.class)
                .put("version", long.class)
                .build();
    }

    @SuppressWarnings("unchecked")
    @Override
    protected final ImmutableMap> loadGetters() {
        return (ImmutableMap) ImmutableMap.>builder()
                .put("code", ReferentialDto::getCode)
                .put("createDate", ReferentialDto::getCreateDate)
                .put("enabled", ReferentialDto::isEnabled)
                .put("homeId", ReferentialDto::getHomeId)
                .put("id", ReferentialDto::getId)
                .put("lastUpdateDate", ReferentialDto::getLastUpdateDate)
                .put("needComment", ReferentialDto::isNeedComment)
                .put("notPersisted", ReferentialDto::isNotPersisted)
                .put("persisted", ReferentialDto::isPersisted)
                .put("status", ReferentialDto::getStatus)
                .put("topiaCreateDate", ReferentialDto::getTopiaCreateDate)
                .put("topiaId", ReferentialDto::getTopiaId)
                .put("topiaVersion", ReferentialDto::getTopiaVersion)
                .put("uri", ReferentialDto::getUri)
                .put("version", ReferentialDto::getVersion)
                .build();
    }

    @SuppressWarnings("unchecked")
    @Override
    protected final ImmutableMap> loadSetters() {
        return (ImmutableMap) ImmutableMap.>builder()
                .put("code", (e, v) -> e.setCode((java.lang.String) v))
                .put("createDate", (e, v) -> e.setCreateDate((java.util.Date) v))
                .put("enabled", (e, v) -> e.setEnabled((boolean) v))
                .put("homeId", (e, v) -> e.setHomeId((java.lang.String) v))
                .put("id", (e, v) -> e.setId((java.lang.String) v))
                .put("lastUpdateDate", (e, v) -> e.setLastUpdateDate((java.util.Date) v))
                .put("needComment", (e, v) -> e.setNeedComment((boolean) v))
                .put("status", (e, v) -> e.setStatus((fr.ird.observe.dto.referential.ReferenceStatus) v))
                .put("uri", (e, v) -> e.setUri((java.lang.String) v))
                .put("version", (e, v) -> e.setVersion((long) v))
                .build();
    }

    public static ReferentialDtoPredicate predicate() {
        return new ReferentialDtoPredicate();
    }

    public static ReferentialDtoStream stream(Collection elements) {
        return new ReferentialDtoStream(elements);
    }

    public static ReferentialDtoComparatorBuilder comparator() {
        return new ReferentialDtoComparatorBuilder();
    }

    public static ReferentialDtoInstanceBuilder instance() {
        return new ReferentialDtoInstanceBuilder();
    }

    @Override
    public ReferentialDtoPredicate predicateBuilder() {
        return new ReferentialDtoPredicate(this);
    }

    @Override
    public ReferentialDtoComparatorBuilder comparatorBuilder() {
        return new ReferentialDtoComparatorBuilder(this);
    }

    @Override
    public ReferentialDtoInstanceBuilder instanceBuilder() {
        return new ReferentialDtoInstanceBuilder(this);
    }

    public static final class ReferentialDtoPredicate extends AbstractJavaBeanPredicate {

        protected ReferentialDtoPredicate() {
            super(ReferentialDtoJavaBeanDefinition.class);
        }

        protected ReferentialDtoPredicate(ReferentialDtoJavaBeanDefinition javaBeanDefinition) {
            super(javaBeanDefinition);
        }

        public StringQuery whereCode() {
            return whereString("code");
        }

        public ComparableQuery whereCreateDate() {
            return whereComparable("createDate");
        }

        public PrimitiveBooleanQuery whereEnabled() {
            return wherePrimitiveBoolean("enabled");
        }

        public StringQuery whereHomeId() {
            return whereString("homeId");
        }

        public StringQuery whereId() {
            return whereString("id");
        }

        public ComparableQuery whereLastUpdateDate() {
            return whereComparable("lastUpdateDate");
        }

        public PrimitiveBooleanQuery whereNeedComment() {
            return wherePrimitiveBoolean("needComment");
        }

        public PrimitiveBooleanQuery whereNotPersisted() {
            return wherePrimitiveBoolean("notPersisted");
        }

        public PrimitiveBooleanQuery wherePersisted() {
            return wherePrimitiveBoolean("persisted");
        }

        public ObjectQuery whereStatus() {
            return where("status");
        }

        public ComparableQuery whereTopiaCreateDate() {
            return whereComparable("topiaCreateDate");
        }

        public StringQuery whereTopiaId() {
            return whereString("topiaId");
        }

        public PrimitiveObjectQuery whereTopiaVersion() {
            return wherePrimitive("topiaVersion");
        }

        public StringQuery whereUri() {
            return whereString("uri");
        }

        public PrimitiveObjectQuery whereVersion() {
            return wherePrimitive("version");
        }
    }

    public static final class ReferentialDtoStream extends AbstractJavaBeanStream {

        protected ReferentialDtoStream(Collection elements) {
            super(ReferentialDtoJavaBeanDefinition.class, elements);
        }

        protected ReferentialDtoStream(ReferentialDtoJavaBeanDefinition javaBeanDefinition, Collection elements) {
            super(javaBeanDefinition, elements);
        }

        public StreamStringQuery whereCode() {
            return whereString("code");
        }

        public StreamComparableQuery whereCreateDate() {
            return whereComparable("createDate");
        }

        public StreamPrimitiveBooleanQuery whereEnabled() {
            return wherePrimitiveBoolean("enabled");
        }

        public StreamStringQuery whereHomeId() {
            return whereString("homeId");
        }

        public StreamStringQuery whereId() {
            return whereString("id");
        }

        public StreamComparableQuery whereLastUpdateDate() {
            return whereComparable("lastUpdateDate");
        }

        public StreamPrimitiveBooleanQuery whereNeedComment() {
            return wherePrimitiveBoolean("needComment");
        }

        public StreamPrimitiveBooleanQuery whereNotPersisted() {
            return wherePrimitiveBoolean("notPersisted");
        }

        public StreamPrimitiveBooleanQuery wherePersisted() {
            return wherePrimitiveBoolean("persisted");
        }

        public StreamObjectQuery whereStatus() {
            return where("status");
        }

        public StreamComparableQuery whereTopiaCreateDate() {
            return whereComparable("topiaCreateDate");
        }

        public StreamStringQuery whereTopiaId() {
            return whereString("topiaId");
        }

        public StreamPrimitiveObjectQuery whereTopiaVersion() {
            return wherePrimitive("topiaVersion");
        }

        public StreamStringQuery whereUri() {
            return whereString("uri");
        }

        public StreamPrimitiveObjectQuery whereVersion() {
            return wherePrimitive("version");
        }
    }

    public static final class ReferentialDtoComparatorBuilder extends AbstractJavaBeanComparatorBuilder {

        protected ReferentialDtoComparatorBuilder() {
            super(ReferentialDtoJavaBeanDefinition.class);
        }

        protected ReferentialDtoComparatorBuilder(ReferentialDtoJavaBeanDefinition javaBeanDefinition) {
            super(javaBeanDefinition);
        }

        public Query whereCode() {
            return on("code");
        }

        public Query whereCreateDate() {
            return on("createDate");
        }

        public Query whereEnabled() {
            return on("enabled");
        }

        public Query whereHomeId() {
            return on("homeId");
        }

        public Query whereId() {
            return on("id");
        }

        public Query whereLastUpdateDate() {
            return on("lastUpdateDate");
        }

        public Query whereNeedComment() {
            return on("needComment");
        }

        public Query whereNotPersisted() {
            return on("notPersisted");
        }

        public Query wherePersisted() {
            return on("persisted");
        }

        public Query whereTopiaCreateDate() {
            return on("topiaCreateDate");
        }

        public Query whereTopiaId() {
            return on("topiaId");
        }

        public Query whereTopiaVersion() {
            return on("topiaVersion");
        }

        public Query whereUri() {
            return on("uri");
        }

        public Query whereVersion() {
            return on("version");
        }
    }

    public static final class ReferentialDtoInstanceBuilder extends AbstractJavaBeanInstanceBuilder {

        protected ReferentialDtoInstanceBuilder() {
            super(ReferentialDtoJavaBeanDefinition.class);
        }

        protected ReferentialDtoInstanceBuilder(ReferentialDtoJavaBeanDefinition javaBeanDefinition) {
            super(javaBeanDefinition);
        }

        public ReferentialDtoInstanceBuilder code(java.lang.String value) {
            return set("code", value);
        }

        public ReferentialDtoInstanceBuilder createDate(java.util.Date value) {
            return set("createDate", value);
        }

        public ReferentialDtoInstanceBuilder enabled(java.lang.Boolean value) {
            return set("enabled", value);
        }

        public ReferentialDtoInstanceBuilder homeId(java.lang.String value) {
            return set("homeId", value);
        }

        public ReferentialDtoInstanceBuilder id(java.lang.String value) {
            return set("id", value);
        }

        public ReferentialDtoInstanceBuilder lastUpdateDate(java.util.Date value) {
            return set("lastUpdateDate", value);
        }

        public ReferentialDtoInstanceBuilder needComment(java.lang.Boolean value) {
            return set("needComment", value);
        }

        public ReferentialDtoInstanceBuilder status(fr.ird.observe.dto.referential.ReferenceStatus value) {
            return set("status", value);
        }

        public ReferentialDtoInstanceBuilder uri(java.lang.String value) {
            return set("uri", value);
        }

        public ReferentialDtoInstanceBuilder version(java.lang.Long value) {
            return set("version", value);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy