-
Notifications
You must be signed in to change notification settings - Fork 188
/
QCaseWorkItem.java
103 lines (88 loc) · 4.96 KB
/
QCaseWorkItem.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
* Copyright (C) 2010-2021 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.repo.sqale.qmodel.cases.workitem;
import com.evolveum.midpoint.repo.sqale.qmodel.assignment.MAssignment;
import com.evolveum.midpoint.repo.sqale.qmodel.cases.MCase;
import com.evolveum.midpoint.repo.sqale.qmodel.common.QContainer;
import com.evolveum.midpoint.repo.sqale.qmodel.object.MObject;
import com.evolveum.midpoint.repo.sqale.qmodel.object.MObjectType;
import com.evolveum.midpoint.repo.sqlbase.querydsl.JsonbPath;
import com.evolveum.midpoint.repo.sqlbase.querydsl.UuidPath;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.TimeIntervalStatusType;
import com.querydsl.core.types.dsl.*;
import com.querydsl.sql.ColumnMetadata;
import java.sql.Types;
import java.time.Instant;
import static com.evolveum.midpoint.repo.sqlbase.querydsl.JsonbPath.JSONB_TYPE;
/**
* Querydsl query type for {@value #TABLE_NAME} table.
*/
@SuppressWarnings("unused")
public class QCaseWorkItem<OR extends MCase> extends QContainer<MCaseWorkItem, OR> {
private static final long serialVersionUID = 341727922218837393L;
/**
* If `QCaseWorkItem.class` is not enough because of generics, try `QCaseWorkItem.CLASS`.
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
public static final Class<QCaseWorkItem<MCase>> CLASS = (Class) QContainer.class;
public static final String TABLE_NAME = "m_case_wi";
public static final ColumnMetadata CLOSE_TIMESTAMP =
ColumnMetadata.named("closeTimestamp").ofType(Types.TIMESTAMP_WITH_TIMEZONE);
public static final ColumnMetadata CREATE_TIMESTAMP =
ColumnMetadata.named("createTimestamp").ofType(Types.TIMESTAMP_WITH_TIMEZONE);
public static final ColumnMetadata DEADLINE =
ColumnMetadata.named("deadline").ofType(Types.TIMESTAMP_WITH_TIMEZONE);
public static final ColumnMetadata ORIGINAL_ASSIGNEE_REF_TARGET_OID =
ColumnMetadata.named("originalAssigneeRefTargetOid").ofType(UuidPath.UUID_TYPE);
public static final ColumnMetadata ORIGINAL_ASSIGNEE_REF_TARGET_TYPE =
ColumnMetadata.named("originalAssigneeRefTargetType").ofType(Types.OTHER);
public static final ColumnMetadata ORIGINAL_ASSIGNEE_REF_RELATION_ID =
ColumnMetadata.named("originalAssigneeRefRelationId").ofType(Types.INTEGER);
public static final ColumnMetadata OUTCOME =
ColumnMetadata.named("outcome").ofType(Types.VARCHAR);
public static final ColumnMetadata PERFORMER_REF_TARGET_OID =
ColumnMetadata.named("performerRefTargetOid").ofType(UuidPath.UUID_TYPE);
public static final ColumnMetadata PERFORMER_REF_TARGET_TYPE =
ColumnMetadata.named("performerRefTargetType").ofType(Types.OTHER);
public static final ColumnMetadata PERFORMER_REF_RELATION_ID =
ColumnMetadata.named("performerRefRelationId").ofType(Types.INTEGER);
public static final ColumnMetadata STAGE_NUMBER =
ColumnMetadata.named("stageNumber").ofType(Types.INTEGER);
// attributes
public final DateTimePath<Instant> closeTimestamp =
createInstant("closeTimestamp", CLOSE_TIMESTAMP);
public final DateTimePath<Instant> createTimestamp =
createInstant("createTimestamp", CREATE_TIMESTAMP);
public final DateTimePath<Instant> deadline =
createInstant("deadline", DEADLINE);
public final UuidPath originalAssigneeRefTargetOid =
createUuid("originalAssigneeRefTargetOid", ORIGINAL_ASSIGNEE_REF_TARGET_OID);
public final EnumPath<MObjectType> originalAssigneeRefTargetType =
createEnum("originalAssigneeRefTargetType", MObjectType.class, ORIGINAL_ASSIGNEE_REF_TARGET_TYPE);
public final NumberPath<Integer> originalAssigneeRefRelationId =
createInteger("originalAssigneeRefRelationId", ORIGINAL_ASSIGNEE_REF_RELATION_ID);
public final StringPath outcome = createString("outcome", OUTCOME);
public final UuidPath performerRefTargetOid =
createUuid("performerRefTargetOid", PERFORMER_REF_TARGET_OID);
public final EnumPath<MObjectType> performerRefTargetType =
createEnum("performerRefTargetType", MObjectType.class, PERFORMER_REF_TARGET_TYPE);
public final NumberPath<Integer> performerRefRelationId =
createInteger("performerRefRelationId", PERFORMER_REF_RELATION_ID);
public final NumberPath<Integer> stageNumber =
createInteger("stageNumber", STAGE_NUMBER);
public QCaseWorkItem(String variable) {
this(variable, DEFAULT_SCHEMA_NAME, TABLE_NAME);
}
public QCaseWorkItem(String variable, String schema, String table) {
super(MCaseWorkItem.class, variable, schema, table);
}
@Override
public BooleanExpression isOwnedBy(OR ownerRow) {
return ownerOid.eq(ownerRow.oid);
}
}