001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.workflow;
005
006
007import com.echothree.model.data.workflow.common.pk.WorkflowDestinationDetailPK;
008import com.echothree.model.data.workflow.common.pk.WorkflowDestinationPK;
009import com.echothree.model.data.workflow.common.pk.WorkflowStepPK;
010import com.echothree.model.jooq.server.KeyRegistry;
011import com.echothree.model.jooq.server.tables.workflow.WorkflowDestinations.WorkflowDestinationsPath;
012import com.echothree.model.jooq.server.tables.workflow.WorkflowSteps.WorkflowStepsPath;
013
014import java.util.Arrays;
015import java.util.Collection;
016import java.util.List;
017
018import org.jooq.Condition;
019import org.jooq.Converter;
020import org.jooq.Field;
021import org.jooq.ForeignKey;
022import org.jooq.InverseForeignKey;
023import org.jooq.Name;
024import org.jooq.Path;
025import org.jooq.PlainSQL;
026import org.jooq.QueryPart;
027import org.jooq.Record;
028import org.jooq.SQL;
029import org.jooq.Stringly;
030import org.jooq.Table;
031import org.jooq.TableField;
032import org.jooq.TableLike;
033import org.jooq.TableOptions;
034import org.jooq.UniqueKey;
035import org.jooq.impl.DSL;
036import org.jooq.impl.Internal;
037import org.jooq.impl.SQLDataType;
038import org.jooq.impl.TableImpl;
039
040
041/**
042 * This class is generated by jOOQ.
043 */
044@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
045public class WorkflowDestinationDetails extends TableImpl<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> {
046
047    private static final long serialVersionUID = 1L;
048
049    /**
050     * The reference instance of <code>workflowdestinationdetails</code>
051     */
052    public static final WorkflowDestinationDetails WorkflowDestinationDetails = new WorkflowDestinationDetails();
053
054    /**
055     * The class holding records for this type
056     */
057    @Override
058    public Class<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> getRecordType() {
059        return com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails.class;
060    }
061
062    /**
063     * The column
064     * <code>workflowdestinationdetails.wkfldndt_workflowdestinationdetailid</code>.
065     */
066    public final TableField<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails, WorkflowDestinationDetailPK> WORKFLOW_DESTINATION_DETAIL = createField(DSL.name("wkfldndt_workflowdestinationdetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, WorkflowDestinationDetailPK.class, id -> new com.echothree.model.data.workflow.common.pk.WorkflowDestinationDetailPK(id), primaryKey -> primaryKey.getEntityId()));
067
068    /**
069     * The column
070     * <code>workflowdestinationdetails.wkfldndt_wkfldn_workflowdestinationid</code>.
071     */
072    public final TableField<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails, WorkflowDestinationPK> WORKFLOW_DESTINATION = createField(DSL.name("wkfldndt_wkfldn_workflowdestinationid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, WorkflowDestinationPK.class, id -> new com.echothree.model.data.workflow.common.pk.WorkflowDestinationPK(id), primaryKey -> primaryKey.getEntityId()));
073
074    /**
075     * The column
076     * <code>workflowdestinationdetails.wkfldndt_wkfls_workflowstepid</code>.
077     */
078    public final TableField<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails, WorkflowStepPK> WORKFLOW_STEP = createField(DSL.name("wkfldndt_wkfls_workflowstepid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, WorkflowStepPK.class, id -> new com.echothree.model.data.workflow.common.pk.WorkflowStepPK(id), primaryKey -> primaryKey.getEntityId()));
079
080    /**
081     * The column
082     * <code>workflowdestinationdetails.wkfldndt_workflowdestinationname</code>.
083     */
084    public final TableField<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails, String> WORKFLOW_DESTINATION_NAME = createField(DSL.name("wkfldndt_workflowdestinationname"), SQLDataType.VARCHAR(40).nullable(false), this, "");
085
086    /**
087     * The column <code>workflowdestinationdetails.wkfldndt_isdefault</code>.
088     */
089    public final TableField<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails, Boolean> IS_DEFAULT = createField(DSL.name("wkfldndt_isdefault"), SQLDataType.BIT.nullable(false), this, "");
090
091    /**
092     * The column <code>workflowdestinationdetails.wkfldndt_sortorder</code>.
093     */
094    public final TableField<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails, Integer> SORT_ORDER = createField(DSL.name("wkfldndt_sortorder"), SQLDataType.INTEGER.nullable(false), this, "");
095
096    /**
097     * The column <code>workflowdestinationdetails.wkfldndt_fromtime</code>.
098     */
099    public final TableField<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails, Long> FROM_TIME = createField(DSL.name("wkfldndt_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
100
101    /**
102     * The column <code>workflowdestinationdetails.wkfldndt_thrutime</code>.
103     */
104    public final TableField<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails, Long> THRU_TIME = createField(DSL.name("wkfldndt_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
105
106    private WorkflowDestinationDetails(Name alias, Table<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> aliased) {
107        this(alias, aliased, (Field<?>[]) null, null);
108    }
109
110    private WorkflowDestinationDetails(Name alias, Table<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> aliased, Field<?>[] parameters, Condition where) {
111        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
112    }
113
114    /**
115     * Create an aliased <code>workflowdestinationdetails</code> table reference
116     */
117    public WorkflowDestinationDetails(String alias) {
118        this(DSL.name(alias), WorkflowDestinationDetails);
119    }
120
121    /**
122     * Create an aliased <code>workflowdestinationdetails</code> table reference
123     */
124    public WorkflowDestinationDetails(Name alias) {
125        this(alias, WorkflowDestinationDetails);
126    }
127
128    /**
129     * Create a <code>workflowdestinationdetails</code> table reference
130     */
131    public WorkflowDestinationDetails() {
132        this(DSL.name("workflowdestinationdetails"), null);
133    }
134
135    public <O extends Record> WorkflowDestinationDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> parentPath) {
136        super(path, childPath, parentPath, WorkflowDestinationDetails);
137    }
138
139    /**
140     * A subtype implementing {@link Path} for simplified path-based joins.
141     */
142    public static class WorkflowDestinationDetailsPath extends WorkflowDestinationDetails implements Path<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> {
143
144        private static final long serialVersionUID = 1L;
145        public <O extends Record> WorkflowDestinationDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> parentPath) {
146            super(path, childPath, parentPath);
147        }
148        private WorkflowDestinationDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> aliased) {
149            super(alias, aliased);
150        }
151
152        @Override
153        public WorkflowDestinationDetailsPath as(String alias) {
154            return new WorkflowDestinationDetailsPath(DSL.name(alias), this);
155        }
156
157        @Override
158        public WorkflowDestinationDetailsPath as(Name alias) {
159            return new WorkflowDestinationDetailsPath(alias, this);
160        }
161
162        @Override
163        public WorkflowDestinationDetailsPath as(Table<?> alias) {
164            return new WorkflowDestinationDetailsPath(alias.getQualifiedName(), this);
165        }
166    }
167
168    @Override
169    public UniqueKey<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails> getPrimaryKey() {
170        return KeyRegistry.WORKFLOW_DESTINATION_DETAILS_PK;
171    }
172
173    @Override
174    public List<UniqueKey<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails>> getUniqueKeys() {
175        return Arrays.asList(KeyRegistry.WORKFLOW_DESTINATION_DETAILS_WORKFLOW_DESTINATION_AND_THRU_TIME_UK, KeyRegistry.WORKFLOW_DESTINATION_DETAILS_WORKFLOW_STEP_AND_WORKFLOW_DESTINATION_NAME_AND_THRU_TIME_UK);
176    }
177
178    @Override
179    public List<ForeignKey<com.echothree.model.jooq.server.records.workflow.WorkflowDestinationDetails, ?>> getReferences() {
180        return Arrays.asList(KeyRegistry.WORKFLOW_DESTINATION_DETAILS_WORKFLOW_DESTINATION_FK, KeyRegistry.WORKFLOW_DESTINATION_DETAILS_WORKFLOW_STEP_FK);
181    }
182
183    private transient WorkflowDestinationsPath _wkfldndt_wkfldn_workflowdestinationid_fk;
184
185    /**
186     * Get the implicit join path to the <code>workflowdestinations</code>
187     * table.
188     */
189    public WorkflowDestinationsPath wkfldndt_wkfldn_workflowdestinationid_fk() {
190        if (_wkfldndt_wkfldn_workflowdestinationid_fk == null)
191            _wkfldndt_wkfldn_workflowdestinationid_fk = new WorkflowDestinationsPath(this, KeyRegistry.WORKFLOW_DESTINATION_DETAILS_WORKFLOW_DESTINATION_FK, null);
192
193        return _wkfldndt_wkfldn_workflowdestinationid_fk;
194    }
195
196    private transient WorkflowStepsPath _wkfldndt_wkfls_workflowstepid_fk;
197
198    /**
199     * Get the implicit join path to the <code>workflowsteps</code> table.
200     */
201    public WorkflowStepsPath wkfldndt_wkfls_workflowstepid_fk() {
202        if (_wkfldndt_wkfls_workflowstepid_fk == null)
203            _wkfldndt_wkfls_workflowstepid_fk = new WorkflowStepsPath(this, KeyRegistry.WORKFLOW_DESTINATION_DETAILS_WORKFLOW_STEP_FK, null);
204
205        return _wkfldndt_wkfls_workflowstepid_fk;
206    }
207
208    @Override
209    public WorkflowDestinationDetails as(String alias) {
210        return new WorkflowDestinationDetails(DSL.name(alias), this);
211    }
212
213    @Override
214    public WorkflowDestinationDetails as(Name alias) {
215        return new WorkflowDestinationDetails(alias, this);
216    }
217
218    @Override
219    public WorkflowDestinationDetails as(Table<?> alias) {
220        return new WorkflowDestinationDetails(alias.getQualifiedName(), this);
221    }
222
223    /**
224     * Rename this table
225     */
226    @Override
227    public WorkflowDestinationDetails rename(String name) {
228        return new WorkflowDestinationDetails(DSL.name(name), null);
229    }
230
231    /**
232     * Rename this table
233     */
234    @Override
235    public WorkflowDestinationDetails rename(Name name) {
236        return new WorkflowDestinationDetails(name, null);
237    }
238
239    /**
240     * Rename this table
241     */
242    @Override
243    public WorkflowDestinationDetails rename(Table<?> name) {
244        return new WorkflowDestinationDetails(name.getQualifiedName(), null);
245    }
246
247    /**
248     * Create an inline derived table from this table
249     */
250    @Override
251    public WorkflowDestinationDetails where(Condition condition) {
252        return new WorkflowDestinationDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
253    }
254
255    /**
256     * Create an inline derived table from this table
257     */
258    @Override
259    public WorkflowDestinationDetails where(Collection<? extends Condition> conditions) {
260        return where(DSL.and(conditions));
261    }
262
263    /**
264     * Create an inline derived table from this table
265     */
266    @Override
267    public WorkflowDestinationDetails where(Condition... conditions) {
268        return where(DSL.and(conditions));
269    }
270
271    /**
272     * Create an inline derived table from this table
273     */
274    @Override
275    public WorkflowDestinationDetails where(Field<Boolean> condition) {
276        return where(DSL.condition(condition));
277    }
278
279    /**
280     * Create an inline derived table from this table
281     */
282    @Override
283    @PlainSQL
284    public WorkflowDestinationDetails where(SQL condition) {
285        return where(DSL.condition(condition));
286    }
287
288    /**
289     * Create an inline derived table from this table
290     */
291    @Override
292    @PlainSQL
293    public WorkflowDestinationDetails where(@Stringly.SQL String condition) {
294        return where(DSL.condition(condition));
295    }
296
297    /**
298     * Create an inline derived table from this table
299     */
300    @Override
301    @PlainSQL
302    public WorkflowDestinationDetails where(@Stringly.SQL String condition, Object... binds) {
303        return where(DSL.condition(condition, binds));
304    }
305
306    /**
307     * Create an inline derived table from this table
308     */
309    @Override
310    @PlainSQL
311    public WorkflowDestinationDetails where(@Stringly.SQL String condition, QueryPart... parts) {
312        return where(DSL.condition(condition, parts));
313    }
314
315    /**
316     * Create an inline derived table from this table
317     */
318    @Override
319    public WorkflowDestinationDetails whereExists(TableLike<?> select) {
320        return where(DSL.exists(select));
321    }
322
323    /**
324     * Create an inline derived table from this table
325     */
326    @Override
327    public WorkflowDestinationDetails whereNotExists(TableLike<?> select) {
328        return where(DSL.notExists(select));
329    }
330}