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