lookup
This commit is contained in:
parent
e65ac113c6
commit
42584fb0a9
|
@ -86,17 +86,17 @@ public class PlanStatusQuery extends QueryBase<PlanStatusEntity> {
|
|||
return this;
|
||||
}
|
||||
|
||||
public PlanStatusQuery statuses(org.opencdmp.commons.enums.PlanStatus value) {
|
||||
public PlanStatusQuery internalStatuses(org.opencdmp.commons.enums.PlanStatus value) {
|
||||
this.internalStatuses = List.of(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PlanStatusQuery statuses(org.opencdmp.commons.enums.PlanStatus... value) {
|
||||
public PlanStatusQuery internalStatuses(org.opencdmp.commons.enums.PlanStatus... value) {
|
||||
this.internalStatuses = Arrays.asList(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PlanStatusQuery statuses(Collection<org.opencdmp.commons.enums.PlanStatus> values) {
|
||||
public PlanStatusQuery internalStatuses(Collection<org.opencdmp.commons.enums.PlanStatus> values) {
|
||||
this.internalStatuses = values;
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ package org.opencdmp.query.lookup;
|
|||
|
||||
import gr.cite.tools.data.query.Lookup;
|
||||
import gr.cite.tools.data.query.QueryFactory;
|
||||
import org.opencdmp.commons.enums.DescriptionStatus;
|
||||
import org.opencdmp.commons.enums.IsActive;
|
||||
import org.opencdmp.query.DescriptionStatusQuery;
|
||||
|
||||
|
@ -18,6 +19,8 @@ public class DescriptionStatusLookup extends Lookup {
|
|||
|
||||
private List<IsActive> isActive;
|
||||
|
||||
private List<org.opencdmp.commons.enums.DescriptionStatus> internalStatuses;
|
||||
|
||||
public String getLike() { return like; }
|
||||
|
||||
public void setLike(String like) { this.like = like; }
|
||||
|
@ -34,12 +37,17 @@ public class DescriptionStatusLookup extends Lookup {
|
|||
|
||||
public void setIsActive(List<IsActive> isActive) { this.isActive = isActive; }
|
||||
|
||||
public List<DescriptionStatus> getInternalStatuses() { return this.internalStatuses; }
|
||||
|
||||
public void setInternalStatuses(List<DescriptionStatus> internalStatuses) { this.internalStatuses = internalStatuses; }
|
||||
|
||||
public DescriptionStatusQuery enrich(QueryFactory queryFactory) {
|
||||
DescriptionStatusQuery query = queryFactory.query(DescriptionStatusQuery.class);
|
||||
if (this.like != null) query.like(this.like);
|
||||
if (this.ids != null) query.ids(this.ids);
|
||||
if (this.excludedIds != null) query.excludeIds(this.excludedIds);
|
||||
if (this.isActive != null) query.isActive(this.isActive);
|
||||
if (this.internalStatuses != null) query.internalStatuses(this.internalStatuses);
|
||||
|
||||
this.enrichCommon(query);
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ package org.opencdmp.query.lookup;
|
|||
import gr.cite.tools.data.query.Lookup;
|
||||
import gr.cite.tools.data.query.QueryFactory;
|
||||
import org.opencdmp.commons.enums.IsActive;
|
||||
import org.opencdmp.commons.enums.PlanStatus;
|
||||
import org.opencdmp.query.PlanStatusQuery;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -18,6 +19,8 @@ public class PlanStatusLookup extends Lookup {
|
|||
|
||||
private List<IsActive> isActive;
|
||||
|
||||
private List<org.opencdmp.commons.enums.PlanStatus> internalStatuses;
|
||||
|
||||
public String getLike() {
|
||||
return like;
|
||||
}
|
||||
|
@ -50,12 +53,17 @@ public class PlanStatusLookup extends Lookup {
|
|||
this.isActive = isActive;
|
||||
}
|
||||
|
||||
public List<PlanStatus> getInternalStatuses() { return this.internalStatuses; }
|
||||
|
||||
public void setInternalStatuses(List<PlanStatus> internalStatuses) { this.internalStatuses = internalStatuses; }
|
||||
|
||||
public PlanStatusQuery enrich(QueryFactory queryFactory) {
|
||||
PlanStatusQuery query = queryFactory.query(PlanStatusQuery.class);
|
||||
if (this.like != null) query.like(this.like);
|
||||
if (this.ids != null) query.ids(this.ids);
|
||||
if (this.excludedIds != null) query.excludedIds(this.excludedIds);
|
||||
if (this.isActive != null) query.isActives(this.isActive);
|
||||
if (this.internalStatuses != null) query.internalStatuses(this.internalStatuses);
|
||||
|
||||
this.enrichCommon(query);
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
import { Lookup } from "@common/model/lookup";
|
||||
import { Guid } from "@common/types/guid";
|
||||
import { IsActive } from "../common/enum/is-active.enum";
|
||||
import { DescriptionStatusEnum } from "../common/enum/description-status";
|
||||
|
||||
export class DescriptionStatusLookup extends Lookup implements DescriptionStatusFilter {
|
||||
ids: Guid[];
|
||||
excludedIds: Guid[];
|
||||
like: string;
|
||||
isActive: IsActive[];
|
||||
internalStatuses: DescriptionStatusEnum[];
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
import { Lookup } from "@common/model/lookup";
|
||||
import { Guid } from "@common/types/guid";
|
||||
import { IsActive } from "../common/enum/is-active.enum";
|
||||
import { PlanStatusEnum } from "../common/enum/plan-status";
|
||||
|
||||
export class PlanStatusLookup extends Lookup implements PlanStatusFilter {
|
||||
ids: Guid[];
|
||||
excludedIds: Guid[];
|
||||
like: string;
|
||||
isActive: IsActive[];
|
||||
internalStatuses: PlanStatusEnum[];
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
|
Loading…
Reference in New Issue