fr.ird.observe.dto.referential.I18nReferentialDtoJavaBeanDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-dto Show documentation
Show all versions of common-dto Show documentation
ObServe Toolkit Common Dto module
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 = "Tue May 12 13:43:41 UTC 2020")
public final class I18nReferentialDtoJavaBeanDefinition extends AbstractJavaBeanDefinition {
@Override
protected final ImmutableSet> loadAcceptedTypes() {
return ImmutableSet.>builder()
.add(I18nReferentialDto.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("label1", java.lang.String.class)
.put("label2", java.lang.String.class)
.put("label3", java.lang.String.class)
.put("label4", java.lang.String.class)
.put("label5", java.lang.String.class)
.put("label6", java.lang.String.class)
.put("label7", java.lang.String.class)
.put("label8", 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", I18nReferentialDto::getCode)
.put("createDate", I18nReferentialDto::getCreateDate)
.put("enabled", I18nReferentialDto::isEnabled)
.put("homeId", I18nReferentialDto::getHomeId)
.put("id", I18nReferentialDto::getId)
.put("label1", I18nReferentialDto::getLabel1)
.put("label2", I18nReferentialDto::getLabel2)
.put("label3", I18nReferentialDto::getLabel3)
.put("label4", I18nReferentialDto::getLabel4)
.put("label5", I18nReferentialDto::getLabel5)
.put("label6", I18nReferentialDto::getLabel6)
.put("label7", I18nReferentialDto::getLabel7)
.put("label8", I18nReferentialDto::getLabel8)
.put("lastUpdateDate", I18nReferentialDto::getLastUpdateDate)
.put("needComment", I18nReferentialDto::isNeedComment)
.put("notPersisted", I18nReferentialDto::isNotPersisted)
.put("persisted", I18nReferentialDto::isPersisted)
.put("status", I18nReferentialDto::getStatus)
.put("topiaCreateDate", I18nReferentialDto::getTopiaCreateDate)
.put("topiaId", I18nReferentialDto::getTopiaId)
.put("topiaVersion", I18nReferentialDto::getTopiaVersion)
.put("uri", I18nReferentialDto::getUri)
.put("version", I18nReferentialDto::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("label1", (e, v) -> e.setLabel1((java.lang.String) v))
.put("label2", (e, v) -> e.setLabel2((java.lang.String) v))
.put("label3", (e, v) -> e.setLabel3((java.lang.String) v))
.put("label4", (e, v) -> e.setLabel4((java.lang.String) v))
.put("label5", (e, v) -> e.setLabel5((java.lang.String) v))
.put("label6", (e, v) -> e.setLabel6((java.lang.String) v))
.put("label7", (e, v) -> e.setLabel7((java.lang.String) v))
.put("label8", (e, v) -> e.setLabel8((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 I18nReferentialDtoPredicate predicate() {
return new I18nReferentialDtoPredicate();
}
public static I18nReferentialDtoStream stream(Collection elements) {
return new I18nReferentialDtoStream(elements);
}
public static I18nReferentialDtoComparatorBuilder comparator() {
return new I18nReferentialDtoComparatorBuilder();
}
public static I18nReferentialDtoInstanceBuilder instance() {
return new I18nReferentialDtoInstanceBuilder();
}
@Override
public I18nReferentialDtoPredicate predicateBuilder() {
return new I18nReferentialDtoPredicate(this);
}
@Override
public I18nReferentialDtoComparatorBuilder comparatorBuilder() {
return new I18nReferentialDtoComparatorBuilder(this);
}
@Override
public I18nReferentialDtoInstanceBuilder instanceBuilder() {
return new I18nReferentialDtoInstanceBuilder(this);
}
public static final class I18nReferentialDtoPredicate extends AbstractJavaBeanPredicate {
protected I18nReferentialDtoPredicate() {
super(I18nReferentialDtoJavaBeanDefinition.class);
}
protected I18nReferentialDtoPredicate(I18nReferentialDtoJavaBeanDefinition 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 StringQuery whereLabel1() {
return whereString("label1");
}
public StringQuery whereLabel2() {
return whereString("label2");
}
public StringQuery whereLabel3() {
return whereString("label3");
}
public StringQuery whereLabel4() {
return whereString("label4");
}
public StringQuery whereLabel5() {
return whereString("label5");
}
public StringQuery whereLabel6() {
return whereString("label6");
}
public StringQuery whereLabel7() {
return whereString("label7");
}
public StringQuery whereLabel8() {
return whereString("label8");
}
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 I18nReferentialDtoStream extends AbstractJavaBeanStream {
protected I18nReferentialDtoStream(Collection elements) {
super(I18nReferentialDtoJavaBeanDefinition.class, elements);
}
protected I18nReferentialDtoStream(I18nReferentialDtoJavaBeanDefinition 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 StreamStringQuery whereLabel1() {
return whereString("label1");
}
public StreamStringQuery whereLabel2() {
return whereString("label2");
}
public StreamStringQuery whereLabel3() {
return whereString("label3");
}
public StreamStringQuery whereLabel4() {
return whereString("label4");
}
public StreamStringQuery whereLabel5() {
return whereString("label5");
}
public StreamStringQuery whereLabel6() {
return whereString("label6");
}
public StreamStringQuery whereLabel7() {
return whereString("label7");
}
public StreamStringQuery whereLabel8() {
return whereString("label8");
}
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 I18nReferentialDtoComparatorBuilder extends AbstractJavaBeanComparatorBuilder {
protected I18nReferentialDtoComparatorBuilder() {
super(I18nReferentialDtoJavaBeanDefinition.class);
}
protected I18nReferentialDtoComparatorBuilder(I18nReferentialDtoJavaBeanDefinition 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 whereLabel1() {
return on("label1");
}
public Query whereLabel2() {
return on("label2");
}
public Query whereLabel3() {
return on("label3");
}
public Query whereLabel4() {
return on("label4");
}
public Query whereLabel5() {
return on("label5");
}
public Query whereLabel6() {
return on("label6");
}
public Query whereLabel7() {
return on("label7");
}
public Query whereLabel8() {
return on("label8");
}
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 I18nReferentialDtoInstanceBuilder extends AbstractJavaBeanInstanceBuilder {
protected I18nReferentialDtoInstanceBuilder() {
super(I18nReferentialDtoJavaBeanDefinition.class);
}
protected I18nReferentialDtoInstanceBuilder(I18nReferentialDtoJavaBeanDefinition javaBeanDefinition) {
super(javaBeanDefinition);
}
public I18nReferentialDtoInstanceBuilder code(java.lang.String value) {
return set("code", value);
}
public I18nReferentialDtoInstanceBuilder createDate(java.util.Date value) {
return set("createDate", value);
}
public I18nReferentialDtoInstanceBuilder enabled(java.lang.Boolean value) {
return set("enabled", value);
}
public I18nReferentialDtoInstanceBuilder homeId(java.lang.String value) {
return set("homeId", value);
}
public I18nReferentialDtoInstanceBuilder id(java.lang.String value) {
return set("id", value);
}
public I18nReferentialDtoInstanceBuilder label1(java.lang.String value) {
return set("label1", value);
}
public I18nReferentialDtoInstanceBuilder label2(java.lang.String value) {
return set("label2", value);
}
public I18nReferentialDtoInstanceBuilder label3(java.lang.String value) {
return set("label3", value);
}
public I18nReferentialDtoInstanceBuilder label4(java.lang.String value) {
return set("label4", value);
}
public I18nReferentialDtoInstanceBuilder label5(java.lang.String value) {
return set("label5", value);
}
public I18nReferentialDtoInstanceBuilder label6(java.lang.String value) {
return set("label6", value);
}
public I18nReferentialDtoInstanceBuilder label7(java.lang.String value) {
return set("label7", value);
}
public I18nReferentialDtoInstanceBuilder label8(java.lang.String value) {
return set("label8", value);
}
public I18nReferentialDtoInstanceBuilder lastUpdateDate(java.util.Date value) {
return set("lastUpdateDate", value);
}
public I18nReferentialDtoInstanceBuilder needComment(java.lang.Boolean value) {
return set("needComment", value);
}
public I18nReferentialDtoInstanceBuilder status(fr.ird.observe.dto.referential.ReferenceStatus value) {
return set("status", value);
}
public I18nReferentialDtoInstanceBuilder uri(java.lang.String value) {
return set("uri", value);
}
public I18nReferentialDtoInstanceBuilder version(java.lang.Long value) {
return set("version", value);
}
}
}