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