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.SelectorPK;
008import com.echothree.model.data.selector.common.pk.SelectorTimePK;
009import com.echothree.model.jooq.server.KeyRegistry;
010import com.echothree.model.jooq.server.tables.selector.Selectors.SelectorsPath;
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.Name;
021import org.jooq.PlainSQL;
022import org.jooq.QueryPart;
023import org.jooq.SQL;
024import org.jooq.Stringly;
025import org.jooq.Table;
026import org.jooq.TableField;
027import org.jooq.TableLike;
028import org.jooq.TableOptions;
029import org.jooq.UniqueKey;
030import org.jooq.impl.DSL;
031import org.jooq.impl.Internal;
032import org.jooq.impl.SQLDataType;
033import org.jooq.impl.TableImpl;
034
035
036/**
037 * This class is generated by jOOQ.
038 */
039@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
040public class SelectorTimes extends TableImpl<com.echothree.model.jooq.server.records.selector.SelectorTimes> {
041
042    private static final long serialVersionUID = 1L;
043
044    /**
045     * The reference instance of <code>selectortimes</code>
046     */
047    public static final SelectorTimes SelectorTimes = new SelectorTimes();
048
049    /**
050     * The class holding records for this type
051     */
052    @Override
053    public Class<com.echothree.model.jooq.server.records.selector.SelectorTimes> getRecordType() {
054        return com.echothree.model.jooq.server.records.selector.SelectorTimes.class;
055    }
056
057    /**
058     * The column <code>selectortimes.sltm_selectordetailid</code>.
059     */
060    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorTimes, SelectorTimePK> SELECTOR_DETAIL = createField(DSL.name("sltm_selectordetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SelectorTimePK.class, id -> new com.echothree.model.data.selector.common.pk.SelectorTimePK(id), primaryKey -> primaryKey.getEntityId()));
061
062    /**
063     * The column <code>selectortimes.sltm_sl_selectorid</code>.
064     */
065    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorTimes, SelectorPK> SELECTOR = createField(DSL.name("sltm_sl_selectorid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SelectorPK.class, id -> new com.echothree.model.data.selector.common.pk.SelectorPK(id), primaryKey -> primaryKey.getEntityId()));
066
067    /**
068     * The column <code>selectortimes.sltm_lastevaluationtime</code>.
069     */
070    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorTimes, Long> LAST_EVALUATION_TIME = createField(DSL.name("sltm_lastevaluationtime"), SQLDataType.BIGINT, this, "");
071
072    /**
073     * The column <code>selectortimes.sltm_maxentitycreatedtime</code>.
074     */
075    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorTimes, Long> MAX_ENTITY_CREATED_TIME = createField(DSL.name("sltm_maxentitycreatedtime"), SQLDataType.BIGINT, this, "");
076
077    /**
078     * The column <code>selectortimes.sltm_maxentitymodifiedtime</code>.
079     */
080    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorTimes, Long> MAX_ENTITY_MODIFIED_TIME = createField(DSL.name("sltm_maxentitymodifiedtime"), SQLDataType.BIGINT, this, "");
081
082    /**
083     * The column <code>selectortimes.sltm_maxentitydeletedtime</code>.
084     */
085    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorTimes, Long> MAX_ENTITY_DELETED_TIME = createField(DSL.name("sltm_maxentitydeletedtime"), SQLDataType.BIGINT, this, "");
086
087    private SelectorTimes(Name alias, Table<com.echothree.model.jooq.server.records.selector.SelectorTimes> aliased) {
088        this(alias, aliased, (Field<?>[]) null, null);
089    }
090
091    private SelectorTimes(Name alias, Table<com.echothree.model.jooq.server.records.selector.SelectorTimes> aliased, Field<?>[] parameters, Condition where) {
092        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
093    }
094
095    /**
096     * Create an aliased <code>selectortimes</code> table reference
097     */
098    public SelectorTimes(String alias) {
099        this(DSL.name(alias), SelectorTimes);
100    }
101
102    /**
103     * Create an aliased <code>selectortimes</code> table reference
104     */
105    public SelectorTimes(Name alias) {
106        this(alias, SelectorTimes);
107    }
108
109    /**
110     * Create a <code>selectortimes</code> table reference
111     */
112    public SelectorTimes() {
113        this(DSL.name("selectortimes"), null);
114    }
115
116    @Override
117    public UniqueKey<com.echothree.model.jooq.server.records.selector.SelectorTimes> getPrimaryKey() {
118        return KeyRegistry.SELECTOR_TIMES_PK;
119    }
120
121    @Override
122    public List<UniqueKey<com.echothree.model.jooq.server.records.selector.SelectorTimes>> getUniqueKeys() {
123        return Arrays.asList(KeyRegistry.SELECTOR_TIMES_SELECTOR_UK);
124    }
125
126    @Override
127    public List<ForeignKey<com.echothree.model.jooq.server.records.selector.SelectorTimes, ?>> getReferences() {
128        return Arrays.asList(KeyRegistry.SELECTOR_TIMES_SELECTOR_FK);
129    }
130
131    private transient SelectorsPath _sltm_sl_selectorid_fk;
132
133    /**
134     * Get the implicit join path to the <code>selectors</code> table.
135     */
136    public SelectorsPath sltm_sl_selectorid_fk() {
137        if (_sltm_sl_selectorid_fk == null)
138            _sltm_sl_selectorid_fk = new SelectorsPath(this, KeyRegistry.SELECTOR_TIMES_SELECTOR_FK, null);
139
140        return _sltm_sl_selectorid_fk;
141    }
142
143    @Override
144    public SelectorTimes as(String alias) {
145        return new SelectorTimes(DSL.name(alias), this);
146    }
147
148    @Override
149    public SelectorTimes as(Name alias) {
150        return new SelectorTimes(alias, this);
151    }
152
153    @Override
154    public SelectorTimes as(Table<?> alias) {
155        return new SelectorTimes(alias.getQualifiedName(), this);
156    }
157
158    /**
159     * Rename this table
160     */
161    @Override
162    public SelectorTimes rename(String name) {
163        return new SelectorTimes(DSL.name(name), null);
164    }
165
166    /**
167     * Rename this table
168     */
169    @Override
170    public SelectorTimes rename(Name name) {
171        return new SelectorTimes(name, null);
172    }
173
174    /**
175     * Rename this table
176     */
177    @Override
178    public SelectorTimes rename(Table<?> name) {
179        return new SelectorTimes(name.getQualifiedName(), null);
180    }
181
182    /**
183     * Create an inline derived table from this table
184     */
185    @Override
186    public SelectorTimes where(Condition condition) {
187        return new SelectorTimes(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
188    }
189
190    /**
191     * Create an inline derived table from this table
192     */
193    @Override
194    public SelectorTimes where(Collection<? extends Condition> conditions) {
195        return where(DSL.and(conditions));
196    }
197
198    /**
199     * Create an inline derived table from this table
200     */
201    @Override
202    public SelectorTimes where(Condition... conditions) {
203        return where(DSL.and(conditions));
204    }
205
206    /**
207     * Create an inline derived table from this table
208     */
209    @Override
210    public SelectorTimes where(Field<Boolean> condition) {
211        return where(DSL.condition(condition));
212    }
213
214    /**
215     * Create an inline derived table from this table
216     */
217    @Override
218    @PlainSQL
219    public SelectorTimes where(SQL condition) {
220        return where(DSL.condition(condition));
221    }
222
223    /**
224     * Create an inline derived table from this table
225     */
226    @Override
227    @PlainSQL
228    public SelectorTimes where(@Stringly.SQL String condition) {
229        return where(DSL.condition(condition));
230    }
231
232    /**
233     * Create an inline derived table from this table
234     */
235    @Override
236    @PlainSQL
237    public SelectorTimes where(@Stringly.SQL String condition, Object... binds) {
238        return where(DSL.condition(condition, binds));
239    }
240
241    /**
242     * Create an inline derived table from this table
243     */
244    @Override
245    @PlainSQL
246    public SelectorTimes where(@Stringly.SQL String condition, QueryPart... parts) {
247        return where(DSL.condition(condition, parts));
248    }
249
250    /**
251     * Create an inline derived table from this table
252     */
253    @Override
254    public SelectorTimes whereExists(TableLike<?> select) {
255        return where(DSL.exists(select));
256    }
257
258    /**
259     * Create an inline derived table from this table
260     */
261    @Override
262    public SelectorTimes whereNotExists(TableLike<?> select) {
263        return where(DSL.notExists(select));
264    }
265}