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