001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.item;
005
006
007import com.echothree.model.data.core.common.pk.MimeTypePK;
008import com.echothree.model.data.item.common.pk.HarmonizedTariffScheduleCodePK;
009import com.echothree.model.data.item.common.pk.HarmonizedTariffScheduleCodeTranslationPK;
010import com.echothree.model.data.party.common.pk.LanguagePK;
011import com.echothree.model.jooq.server.KeyRegistry;
012import com.echothree.model.jooq.server.tables.core.MimeTypes.MimeTypesPath;
013import com.echothree.model.jooq.server.tables.item.HarmonizedTariffScheduleCodes.HarmonizedTariffScheduleCodesPath;
014import com.echothree.model.jooq.server.tables.party.Languages.LanguagesPath;
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 HarmonizedTariffScheduleCodeTranslations extends TableImpl<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations> {
045
046    private static final long serialVersionUID = 1L;
047
048    /**
049     * The reference instance of
050     * <code>harmonizedtariffschedulecodetranslations</code>
051     */
052    public static final HarmonizedTariffScheduleCodeTranslations HarmonizedTariffScheduleCodeTranslations = new HarmonizedTariffScheduleCodeTranslations();
053
054    /**
055     * The class holding records for this type
056     */
057    @Override
058    public Class<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations> getRecordType() {
059        return com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations.class;
060    }
061
062    /**
063     * The column
064     * <code>harmonizedtariffschedulecodetranslations.hztsctr_harmonizedtariffschedulecodetranslationid</code>.
065     */
066    public final TableField<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations, HarmonizedTariffScheduleCodeTranslationPK> HARMONIZED_TARIFF_SCHEDULE_CODE_TRANSLATION = createField(DSL.name("hztsctr_harmonizedtariffschedulecodetranslationid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, HarmonizedTariffScheduleCodeTranslationPK.class, id -> new com.echothree.model.data.item.common.pk.HarmonizedTariffScheduleCodeTranslationPK(id), primaryKey -> primaryKey.getEntityId()));
067
068    /**
069     * The column
070     * <code>harmonizedtariffschedulecodetranslations.hztsctr_hztsc_harmonizedtariffschedulecodeid</code>.
071     */
072    public final TableField<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations, HarmonizedTariffScheduleCodePK> HARMONIZED_TARIFF_SCHEDULE_CODE = createField(DSL.name("hztsctr_hztsc_harmonizedtariffschedulecodeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, HarmonizedTariffScheduleCodePK.class, id -> new com.echothree.model.data.item.common.pk.HarmonizedTariffScheduleCodePK(id), primaryKey -> primaryKey.getEntityId()));
073
074    /**
075     * The column
076     * <code>harmonizedtariffschedulecodetranslations.hztsctr_lang_languageid</code>.
077     */
078    public final TableField<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations, LanguagePK> LANGUAGE = createField(DSL.name("hztsctr_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()));
079
080    /**
081     * The column
082     * <code>harmonizedtariffschedulecodetranslations.hztsctr_description</code>.
083     */
084    public final TableField<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations, String> DESCRIPTION = createField(DSL.name("hztsctr_description"), SQLDataType.VARCHAR(132).nullable(false), this, "");
085
086    /**
087     * The column
088     * <code>harmonizedtariffschedulecodetranslations.hztsctr_overviewmimetypeid</code>.
089     */
090    public final TableField<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations, MimeTypePK> OVERVIEW_MIME_TYPE = createField(DSL.name("hztsctr_overviewmimetypeid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, MimeTypePK.class, id -> new com.echothree.model.data.core.common.pk.MimeTypePK(id), primaryKey -> primaryKey.getEntityId()));
091
092    /**
093     * The column
094     * <code>harmonizedtariffschedulecodetranslations.hztsctr_overview</code>.
095     */
096    public final TableField<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations, String> OVERVIEW = createField(DSL.name("hztsctr_overview"), SQLDataType.CLOB, this, "");
097
098    /**
099     * The column
100     * <code>harmonizedtariffschedulecodetranslations.hztsctr_fromtime</code>.
101     */
102    public final TableField<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations, Long> FROM_TIME = createField(DSL.name("hztsctr_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
103
104    /**
105     * The column
106     * <code>harmonizedtariffschedulecodetranslations.hztsctr_thrutime</code>.
107     */
108    public final TableField<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations, Long> THRU_TIME = createField(DSL.name("hztsctr_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
109
110    private HarmonizedTariffScheduleCodeTranslations(Name alias, Table<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations> aliased) {
111        this(alias, aliased, (Field<?>[]) null, null);
112    }
113
114    private HarmonizedTariffScheduleCodeTranslations(Name alias, Table<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations> aliased, Field<?>[] parameters, Condition where) {
115        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
116    }
117
118    /**
119     * Create an aliased <code>harmonizedtariffschedulecodetranslations</code>
120     * table reference
121     */
122    public HarmonizedTariffScheduleCodeTranslations(String alias) {
123        this(DSL.name(alias), HarmonizedTariffScheduleCodeTranslations);
124    }
125
126    /**
127     * Create an aliased <code>harmonizedtariffschedulecodetranslations</code>
128     * table reference
129     */
130    public HarmonizedTariffScheduleCodeTranslations(Name alias) {
131        this(alias, HarmonizedTariffScheduleCodeTranslations);
132    }
133
134    /**
135     * Create a <code>harmonizedtariffschedulecodetranslations</code> table
136     * reference
137     */
138    public HarmonizedTariffScheduleCodeTranslations() {
139        this(DSL.name("harmonizedtariffschedulecodetranslations"), null);
140    }
141
142    @Override
143    public UniqueKey<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations> getPrimaryKey() {
144        return KeyRegistry.HARMONIZED_TARIFF_SCHEDULE_CODE_TRANSLATIONS_PK;
145    }
146
147    @Override
148    public List<UniqueKey<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations>> getUniqueKeys() {
149        return Arrays.asList(KeyRegistry.HARMONIZED_TARIFF_SCHEDULE_CODE_TRANSLATIONS_HARMONIZED_TARIFF_SCHEDULE_CODE_AND_LANGUAGE_AND_THRU_TIME_UK);
150    }
151
152    @Override
153    public List<ForeignKey<com.echothree.model.jooq.server.records.item.HarmonizedTariffScheduleCodeTranslations, ?>> getReferences() {
154        return Arrays.asList(KeyRegistry.HARMONIZED_TARIFF_SCHEDULE_CODE_TRANSLATIONS_HARMONIZED_TARIFF_SCHEDULE_CODE_FK, KeyRegistry.HARMONIZED_TARIFF_SCHEDULE_CODE_TRANSLATIONS_LANGUAGE_FK, KeyRegistry.HARMONIZED_TARIFF_SCHEDULE_CODE_TRANSLATIONS_OVERVIEW_MIME_TYPE_FK);
155    }
156
157    private transient HarmonizedTariffScheduleCodesPath _hztsctr_hztsc_harmonizedtariffschedulecodeid_fk;
158
159    /**
160     * Get the implicit join path to the
161     * <code>harmonizedtariffschedulecodes</code> table.
162     */
163    public HarmonizedTariffScheduleCodesPath hztsctr_hztsc_harmonizedtariffschedulecodeid_fk() {
164        if (_hztsctr_hztsc_harmonizedtariffschedulecodeid_fk == null)
165            _hztsctr_hztsc_harmonizedtariffschedulecodeid_fk = new HarmonizedTariffScheduleCodesPath(this, KeyRegistry.HARMONIZED_TARIFF_SCHEDULE_CODE_TRANSLATIONS_HARMONIZED_TARIFF_SCHEDULE_CODE_FK, null);
166
167        return _hztsctr_hztsc_harmonizedtariffschedulecodeid_fk;
168    }
169
170    private transient LanguagesPath _hztsctr_lang_languageid_fk;
171
172    /**
173     * Get the implicit join path to the <code>languages</code> table.
174     */
175    public LanguagesPath hztsctr_lang_languageid_fk() {
176        if (_hztsctr_lang_languageid_fk == null)
177            _hztsctr_lang_languageid_fk = new LanguagesPath(this, KeyRegistry.HARMONIZED_TARIFF_SCHEDULE_CODE_TRANSLATIONS_LANGUAGE_FK, null);
178
179        return _hztsctr_lang_languageid_fk;
180    }
181
182    private transient MimeTypesPath _hztsctr_overviewmimetypeid_fk;
183
184    /**
185     * Get the implicit join path to the <code>mimetypes</code> table.
186     */
187    public MimeTypesPath hztsctr_overviewmimetypeid_fk() {
188        if (_hztsctr_overviewmimetypeid_fk == null)
189            _hztsctr_overviewmimetypeid_fk = new MimeTypesPath(this, KeyRegistry.HARMONIZED_TARIFF_SCHEDULE_CODE_TRANSLATIONS_OVERVIEW_MIME_TYPE_FK, null);
190
191        return _hztsctr_overviewmimetypeid_fk;
192    }
193
194    @Override
195    public HarmonizedTariffScheduleCodeTranslations as(String alias) {
196        return new HarmonizedTariffScheduleCodeTranslations(DSL.name(alias), this);
197    }
198
199    @Override
200    public HarmonizedTariffScheduleCodeTranslations as(Name alias) {
201        return new HarmonizedTariffScheduleCodeTranslations(alias, this);
202    }
203
204    @Override
205    public HarmonizedTariffScheduleCodeTranslations as(Table<?> alias) {
206        return new HarmonizedTariffScheduleCodeTranslations(alias.getQualifiedName(), this);
207    }
208
209    /**
210     * Rename this table
211     */
212    @Override
213    public HarmonizedTariffScheduleCodeTranslations rename(String name) {
214        return new HarmonizedTariffScheduleCodeTranslations(DSL.name(name), null);
215    }
216
217    /**
218     * Rename this table
219     */
220    @Override
221    public HarmonizedTariffScheduleCodeTranslations rename(Name name) {
222        return new HarmonizedTariffScheduleCodeTranslations(name, null);
223    }
224
225    /**
226     * Rename this table
227     */
228    @Override
229    public HarmonizedTariffScheduleCodeTranslations rename(Table<?> name) {
230        return new HarmonizedTariffScheduleCodeTranslations(name.getQualifiedName(), null);
231    }
232
233    /**
234     * Create an inline derived table from this table
235     */
236    @Override
237    public HarmonizedTariffScheduleCodeTranslations where(Condition condition) {
238        return new HarmonizedTariffScheduleCodeTranslations(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 HarmonizedTariffScheduleCodeTranslations 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 HarmonizedTariffScheduleCodeTranslations 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 HarmonizedTariffScheduleCodeTranslations 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 HarmonizedTariffScheduleCodeTranslations 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 HarmonizedTariffScheduleCodeTranslations 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 HarmonizedTariffScheduleCodeTranslations 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 HarmonizedTariffScheduleCodeTranslations 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 HarmonizedTariffScheduleCodeTranslations 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 HarmonizedTariffScheduleCodeTranslations whereNotExists(TableLike<?> select) {
314        return where(DSL.notExists(select));
315    }
316}