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