001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.wishlist;
005
006
007import com.echothree.model.data.party.common.pk.LanguagePK;
008import com.echothree.model.data.wishlist.common.pk.WishlistPriorityDescriptionPK;
009import com.echothree.model.data.wishlist.common.pk.WishlistPriorityPK;
010import com.echothree.model.jooq.server.KeyRegistry;
011import com.echothree.model.jooq.server.tables.party.Languages.LanguagesPath;
012import com.echothree.model.jooq.server.tables.wishlist.WishlistPriorities.WishlistPrioritiesPath;
013
014import java.util.Arrays;
015import java.util.Collection;
016import java.util.List;
017
018import org.jooq.Condition;
019import org.jooq.Converter;
020import org.jooq.Field;
021import org.jooq.ForeignKey;
022import org.jooq.Name;
023import org.jooq.PlainSQL;
024import org.jooq.QueryPart;
025import org.jooq.SQL;
026import org.jooq.Stringly;
027import org.jooq.Table;
028import org.jooq.TableField;
029import org.jooq.TableLike;
030import org.jooq.TableOptions;
031import org.jooq.UniqueKey;
032import org.jooq.impl.DSL;
033import org.jooq.impl.Internal;
034import org.jooq.impl.SQLDataType;
035import org.jooq.impl.TableImpl;
036
037
038/**
039 * This class is generated by jOOQ.
040 */
041@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
042public class WishlistPriorityDescriptions extends TableImpl<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions> {
043
044    private static final long serialVersionUID = 1L;
045
046    /**
047     * The reference instance of <code>wishlistprioritydescriptions</code>
048     */
049    public static final WishlistPriorityDescriptions WishlistPriorityDescriptions = new WishlistPriorityDescriptions();
050
051    /**
052     * The class holding records for this type
053     */
054    @Override
055    public Class<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions> getRecordType() {
056        return com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions.class;
057    }
058
059    /**
060     * The column
061     * <code>wishlistprioritydescriptions.wshlprtyd_wishlistprioritydescriptionid</code>.
062     */
063    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions, WishlistPriorityDescriptionPK> WISHLIST_PRIORITY_DESCRIPTION = createField(DSL.name("wshlprtyd_wishlistprioritydescriptionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, WishlistPriorityDescriptionPK.class, id -> new com.echothree.model.data.wishlist.common.pk.WishlistPriorityDescriptionPK(id), primaryKey -> primaryKey.getEntityId()));
064
065    /**
066     * The column
067     * <code>wishlistprioritydescriptions.wshlprtyd_wshlprty_wishlistpriorityid</code>.
068     */
069    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions, WishlistPriorityPK> WISHLIST_PRIORITY = createField(DSL.name("wshlprtyd_wshlprty_wishlistpriorityid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, WishlistPriorityPK.class, id -> new com.echothree.model.data.wishlist.common.pk.WishlistPriorityPK(id), primaryKey -> primaryKey.getEntityId()));
070
071    /**
072     * The column
073     * <code>wishlistprioritydescriptions.wshlprtyd_lang_languageid</code>.
074     */
075    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions, LanguagePK> LANGUAGE = createField(DSL.name("wshlprtyd_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()));
076
077    /**
078     * The column
079     * <code>wishlistprioritydescriptions.wshlprtyd_description</code>.
080     */
081    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions, String> DESCRIPTION = createField(DSL.name("wshlprtyd_description"), SQLDataType.VARCHAR(132).nullable(false), this, "");
082
083    /**
084     * The column <code>wishlistprioritydescriptions.wshlprtyd_fromtime</code>.
085     */
086    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions, Long> FROM_TIME = createField(DSL.name("wshlprtyd_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
087
088    /**
089     * The column <code>wishlistprioritydescriptions.wshlprtyd_thrutime</code>.
090     */
091    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions, Long> THRU_TIME = createField(DSL.name("wshlprtyd_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
092
093    private WishlistPriorityDescriptions(Name alias, Table<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions> aliased) {
094        this(alias, aliased, (Field<?>[]) null, null);
095    }
096
097    private WishlistPriorityDescriptions(Name alias, Table<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions> aliased, Field<?>[] parameters, Condition where) {
098        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
099    }
100
101    /**
102     * Create an aliased <code>wishlistprioritydescriptions</code> table
103     * reference
104     */
105    public WishlistPriorityDescriptions(String alias) {
106        this(DSL.name(alias), WishlistPriorityDescriptions);
107    }
108
109    /**
110     * Create an aliased <code>wishlistprioritydescriptions</code> table
111     * reference
112     */
113    public WishlistPriorityDescriptions(Name alias) {
114        this(alias, WishlistPriorityDescriptions);
115    }
116
117    /**
118     * Create a <code>wishlistprioritydescriptions</code> table reference
119     */
120    public WishlistPriorityDescriptions() {
121        this(DSL.name("wishlistprioritydescriptions"), null);
122    }
123
124    @Override
125    public UniqueKey<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions> getPrimaryKey() {
126        return KeyRegistry.WISHLIST_PRIORITY_DESCRIPTIONS_PK;
127    }
128
129    @Override
130    public List<UniqueKey<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions>> getUniqueKeys() {
131        return Arrays.asList(KeyRegistry.WISHLIST_PRIORITY_DESCRIPTIONS_WISHLIST_PRIORITY_AND_LANGUAGE_AND_THRU_TIME_UK);
132    }
133
134    @Override
135    public List<ForeignKey<com.echothree.model.jooq.server.records.wishlist.WishlistPriorityDescriptions, ?>> getReferences() {
136        return Arrays.asList(KeyRegistry.WISHLIST_PRIORITY_DESCRIPTIONS_LANGUAGE_FK, KeyRegistry.WISHLIST_PRIORITY_DESCRIPTIONS_WISHLIST_PRIORITY_FK);
137    }
138
139    private transient LanguagesPath _wshlprtyd_lang_languageid_fk;
140
141    /**
142     * Get the implicit join path to the <code>languages</code> table.
143     */
144    public LanguagesPath wshlprtyd_lang_languageid_fk() {
145        if (_wshlprtyd_lang_languageid_fk == null)
146            _wshlprtyd_lang_languageid_fk = new LanguagesPath(this, KeyRegistry.WISHLIST_PRIORITY_DESCRIPTIONS_LANGUAGE_FK, null);
147
148        return _wshlprtyd_lang_languageid_fk;
149    }
150
151    private transient WishlistPrioritiesPath _wshlprtyd_wshlprty_wishlistpriorityid_fk;
152
153    /**
154     * Get the implicit join path to the <code>wishlistpriorities</code> table.
155     */
156    public WishlistPrioritiesPath wshlprtyd_wshlprty_wishlistpriorityid_fk() {
157        if (_wshlprtyd_wshlprty_wishlistpriorityid_fk == null)
158            _wshlprtyd_wshlprty_wishlistpriorityid_fk = new WishlistPrioritiesPath(this, KeyRegistry.WISHLIST_PRIORITY_DESCRIPTIONS_WISHLIST_PRIORITY_FK, null);
159
160        return _wshlprtyd_wshlprty_wishlistpriorityid_fk;
161    }
162
163    @Override
164    public WishlistPriorityDescriptions as(String alias) {
165        return new WishlistPriorityDescriptions(DSL.name(alias), this);
166    }
167
168    @Override
169    public WishlistPriorityDescriptions as(Name alias) {
170        return new WishlistPriorityDescriptions(alias, this);
171    }
172
173    @Override
174    public WishlistPriorityDescriptions as(Table<?> alias) {
175        return new WishlistPriorityDescriptions(alias.getQualifiedName(), this);
176    }
177
178    /**
179     * Rename this table
180     */
181    @Override
182    public WishlistPriorityDescriptions rename(String name) {
183        return new WishlistPriorityDescriptions(DSL.name(name), null);
184    }
185
186    /**
187     * Rename this table
188     */
189    @Override
190    public WishlistPriorityDescriptions rename(Name name) {
191        return new WishlistPriorityDescriptions(name, null);
192    }
193
194    /**
195     * Rename this table
196     */
197    @Override
198    public WishlistPriorityDescriptions rename(Table<?> name) {
199        return new WishlistPriorityDescriptions(name.getQualifiedName(), null);
200    }
201
202    /**
203     * Create an inline derived table from this table
204     */
205    @Override
206    public WishlistPriorityDescriptions where(Condition condition) {
207        return new WishlistPriorityDescriptions(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
208    }
209
210    /**
211     * Create an inline derived table from this table
212     */
213    @Override
214    public WishlistPriorityDescriptions where(Collection<? extends Condition> conditions) {
215        return where(DSL.and(conditions));
216    }
217
218    /**
219     * Create an inline derived table from this table
220     */
221    @Override
222    public WishlistPriorityDescriptions where(Condition... conditions) {
223        return where(DSL.and(conditions));
224    }
225
226    /**
227     * Create an inline derived table from this table
228     */
229    @Override
230    public WishlistPriorityDescriptions where(Field<Boolean> condition) {
231        return where(DSL.condition(condition));
232    }
233
234    /**
235     * Create an inline derived table from this table
236     */
237    @Override
238    @PlainSQL
239    public WishlistPriorityDescriptions where(SQL condition) {
240        return where(DSL.condition(condition));
241    }
242
243    /**
244     * Create an inline derived table from this table
245     */
246    @Override
247    @PlainSQL
248    public WishlistPriorityDescriptions where(@Stringly.SQL String condition) {
249        return where(DSL.condition(condition));
250    }
251
252    /**
253     * Create an inline derived table from this table
254     */
255    @Override
256    @PlainSQL
257    public WishlistPriorityDescriptions where(@Stringly.SQL String condition, Object... binds) {
258        return where(DSL.condition(condition, binds));
259    }
260
261    /**
262     * Create an inline derived table from this table
263     */
264    @Override
265    @PlainSQL
266    public WishlistPriorityDescriptions where(@Stringly.SQL String condition, QueryPart... parts) {
267        return where(DSL.condition(condition, parts));
268    }
269
270    /**
271     * Create an inline derived table from this table
272     */
273    @Override
274    public WishlistPriorityDescriptions whereExists(TableLike<?> select) {
275        return where(DSL.exists(select));
276    }
277
278    /**
279     * Create an inline derived table from this table
280     */
281    @Override
282    public WishlistPriorityDescriptions whereNotExists(TableLike<?> select) {
283        return where(DSL.notExists(select));
284    }
285}