001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.wishlist;
005
006
007import com.echothree.model.data.associate.common.pk.AssociateReferralPK;
008import com.echothree.model.data.offer.common.pk.OfferUsePK;
009import com.echothree.model.data.order.common.pk.OrderLinePK;
010import com.echothree.model.data.wishlist.common.pk.WishlistLinePK;
011import com.echothree.model.data.wishlist.common.pk.WishlistPriorityPK;
012import com.echothree.model.jooq.server.KeyRegistry;
013import com.echothree.model.jooq.server.tables.associate.AssociateReferrals.AssociateReferralsPath;
014import com.echothree.model.jooq.server.tables.offer.OfferUses.OfferUsesPath;
015import com.echothree.model.jooq.server.tables.order.OrderLines.OrderLinesPath;
016import com.echothree.model.jooq.server.tables.wishlist.WishlistPriorities.WishlistPrioritiesPath;
017
018import java.util.Arrays;
019import java.util.Collection;
020import java.util.List;
021
022import org.jooq.Condition;
023import org.jooq.Converter;
024import org.jooq.Field;
025import org.jooq.ForeignKey;
026import org.jooq.Name;
027import org.jooq.PlainSQL;
028import org.jooq.QueryPart;
029import org.jooq.SQL;
030import org.jooq.Stringly;
031import org.jooq.Table;
032import org.jooq.TableField;
033import org.jooq.TableLike;
034import org.jooq.TableOptions;
035import org.jooq.UniqueKey;
036import org.jooq.impl.DSL;
037import org.jooq.impl.Internal;
038import org.jooq.impl.SQLDataType;
039import org.jooq.impl.TableImpl;
040
041
042/**
043 * This class is generated by jOOQ.
044 */
045@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
046public class WishlistLines extends TableImpl<com.echothree.model.jooq.server.records.wishlist.WishlistLines> {
047
048    private static final long serialVersionUID = 1L;
049
050    /**
051     * The reference instance of <code>wishlistlines</code>
052     */
053    public static final WishlistLines WishlistLines = new WishlistLines();
054
055    /**
056     * The class holding records for this type
057     */
058    @Override
059    public Class<com.echothree.model.jooq.server.records.wishlist.WishlistLines> getRecordType() {
060        return com.echothree.model.jooq.server.records.wishlist.WishlistLines.class;
061    }
062
063    /**
064     * The column <code>wishlistlines.wshll_wishlistlineid</code>.
065     */
066    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistLines, WishlistLinePK> WISHLIST_LINE = createField(DSL.name("wshll_wishlistlineid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, WishlistLinePK.class, id -> new com.echothree.model.data.wishlist.common.pk.WishlistLinePK(id), primaryKey -> primaryKey.getEntityId()));
067
068    /**
069     * The column <code>wishlistlines.wshll_ordl_orderlineid</code>.
070     */
071    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistLines, OrderLinePK> ORDER_LINE = createField(DSL.name("wshll_ordl_orderlineid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, OrderLinePK.class, id -> new com.echothree.model.data.order.common.pk.OrderLinePK(id), primaryKey -> primaryKey.getEntityId()));
072
073    /**
074     * The column <code>wishlistlines.wshll_ofruse_offeruseid</code>.
075     */
076    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistLines, OfferUsePK> OFFER_USE = createField(DSL.name("wshll_ofruse_offeruseid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, OfferUsePK.class, id -> new com.echothree.model.data.offer.common.pk.OfferUsePK(id), primaryKey -> primaryKey.getEntityId()));
077
078    /**
079     * The column <code>wishlistlines.wshll_wshlprty_wishlistpriorityid</code>.
080     */
081    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistLines, WishlistPriorityPK> WISHLIST_PRIORITY = createField(DSL.name("wshll_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()));
082
083    /**
084     * The column <code>wishlistlines.wshll_ascrfr_associatereferralid</code>.
085     */
086    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistLines, AssociateReferralPK> ASSOCIATE_REFERRAL = createField(DSL.name("wshll_ascrfr_associatereferralid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, AssociateReferralPK.class, id -> new com.echothree.model.data.associate.common.pk.AssociateReferralPK(id), primaryKey -> primaryKey.getEntityId()));
087
088    /**
089     * The column <code>wishlistlines.wshll_comment</code>.
090     */
091    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistLines, String> COMMENT = createField(DSL.name("wshll_comment"), SQLDataType.VARCHAR(80), this, "");
092
093    /**
094     * The column <code>wishlistlines.wshll_fromtime</code>.
095     */
096    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistLines, Long> FROM_TIME = createField(DSL.name("wshll_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
097
098    /**
099     * The column <code>wishlistlines.wshll_thrutime</code>.
100     */
101    public final TableField<com.echothree.model.jooq.server.records.wishlist.WishlistLines, Long> THRU_TIME = createField(DSL.name("wshll_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
102
103    private WishlistLines(Name alias, Table<com.echothree.model.jooq.server.records.wishlist.WishlistLines> aliased) {
104        this(alias, aliased, (Field<?>[]) null, null);
105    }
106
107    private WishlistLines(Name alias, Table<com.echothree.model.jooq.server.records.wishlist.WishlistLines> aliased, Field<?>[] parameters, Condition where) {
108        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
109    }
110
111    /**
112     * Create an aliased <code>wishlistlines</code> table reference
113     */
114    public WishlistLines(String alias) {
115        this(DSL.name(alias), WishlistLines);
116    }
117
118    /**
119     * Create an aliased <code>wishlistlines</code> table reference
120     */
121    public WishlistLines(Name alias) {
122        this(alias, WishlistLines);
123    }
124
125    /**
126     * Create a <code>wishlistlines</code> table reference
127     */
128    public WishlistLines() {
129        this(DSL.name("wishlistlines"), null);
130    }
131
132    @Override
133    public UniqueKey<com.echothree.model.jooq.server.records.wishlist.WishlistLines> getPrimaryKey() {
134        return KeyRegistry.WISHLIST_LINES_PK;
135    }
136
137    @Override
138    public List<UniqueKey<com.echothree.model.jooq.server.records.wishlist.WishlistLines>> getUniqueKeys() {
139        return Arrays.asList(KeyRegistry.WISHLIST_LINES_ORDER_LINE_AND_THRU_TIME_UK);
140    }
141
142    @Override
143    public List<ForeignKey<com.echothree.model.jooq.server.records.wishlist.WishlistLines, ?>> getReferences() {
144        return Arrays.asList(KeyRegistry.WISHLIST_LINES_ASSOCIATE_REFERRAL_FK, KeyRegistry.WISHLIST_LINES_OFFER_USE_FK, KeyRegistry.WISHLIST_LINES_ORDER_LINE_FK, KeyRegistry.WISHLIST_LINES_WISHLIST_PRIORITY_FK);
145    }
146
147    private transient AssociateReferralsPath _wshll_ascrfr_associatereferralid_fk;
148
149    /**
150     * Get the implicit join path to the <code>associatereferrals</code> table.
151     */
152    public AssociateReferralsPath wshll_ascrfr_associatereferralid_fk() {
153        if (_wshll_ascrfr_associatereferralid_fk == null)
154            _wshll_ascrfr_associatereferralid_fk = new AssociateReferralsPath(this, KeyRegistry.WISHLIST_LINES_ASSOCIATE_REFERRAL_FK, null);
155
156        return _wshll_ascrfr_associatereferralid_fk;
157    }
158
159    private transient OfferUsesPath _wshll_ofruse_offeruseid_fk;
160
161    /**
162     * Get the implicit join path to the <code>offeruses</code> table.
163     */
164    public OfferUsesPath wshll_ofruse_offeruseid_fk() {
165        if (_wshll_ofruse_offeruseid_fk == null)
166            _wshll_ofruse_offeruseid_fk = new OfferUsesPath(this, KeyRegistry.WISHLIST_LINES_OFFER_USE_FK, null);
167
168        return _wshll_ofruse_offeruseid_fk;
169    }
170
171    private transient OrderLinesPath _wshll_ordl_orderlineid_fk;
172
173    /**
174     * Get the implicit join path to the <code>orderlines</code> table.
175     */
176    public OrderLinesPath wshll_ordl_orderlineid_fk() {
177        if (_wshll_ordl_orderlineid_fk == null)
178            _wshll_ordl_orderlineid_fk = new OrderLinesPath(this, KeyRegistry.WISHLIST_LINES_ORDER_LINE_FK, null);
179
180        return _wshll_ordl_orderlineid_fk;
181    }
182
183    private transient WishlistPrioritiesPath _wshll_wshlprty_wishlistpriorityid_fk;
184
185    /**
186     * Get the implicit join path to the <code>wishlistpriorities</code> table.
187     */
188    public WishlistPrioritiesPath wshll_wshlprty_wishlistpriorityid_fk() {
189        if (_wshll_wshlprty_wishlistpriorityid_fk == null)
190            _wshll_wshlprty_wishlistpriorityid_fk = new WishlistPrioritiesPath(this, KeyRegistry.WISHLIST_LINES_WISHLIST_PRIORITY_FK, null);
191
192        return _wshll_wshlprty_wishlistpriorityid_fk;
193    }
194
195    @Override
196    public WishlistLines as(String alias) {
197        return new WishlistLines(DSL.name(alias), this);
198    }
199
200    @Override
201    public WishlistLines as(Name alias) {
202        return new WishlistLines(alias, this);
203    }
204
205    @Override
206    public WishlistLines as(Table<?> alias) {
207        return new WishlistLines(alias.getQualifiedName(), this);
208    }
209
210    /**
211     * Rename this table
212     */
213    @Override
214    public WishlistLines rename(String name) {
215        return new WishlistLines(DSL.name(name), null);
216    }
217
218    /**
219     * Rename this table
220     */
221    @Override
222    public WishlistLines rename(Name name) {
223        return new WishlistLines(name, null);
224    }
225
226    /**
227     * Rename this table
228     */
229    @Override
230    public WishlistLines rename(Table<?> name) {
231        return new WishlistLines(name.getQualifiedName(), null);
232    }
233
234    /**
235     * Create an inline derived table from this table
236     */
237    @Override
238    public WishlistLines where(Condition condition) {
239        return new WishlistLines(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
240    }
241
242    /**
243     * Create an inline derived table from this table
244     */
245    @Override
246    public WishlistLines where(Collection<? extends 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 WishlistLines where(Condition... conditions) {
255        return where(DSL.and(conditions));
256    }
257
258    /**
259     * Create an inline derived table from this table
260     */
261    @Override
262    public WishlistLines where(Field<Boolean> condition) {
263        return where(DSL.condition(condition));
264    }
265
266    /**
267     * Create an inline derived table from this table
268     */
269    @Override
270    @PlainSQL
271    public WishlistLines where(SQL condition) {
272        return where(DSL.condition(condition));
273    }
274
275    /**
276     * Create an inline derived table from this table
277     */
278    @Override
279    @PlainSQL
280    public WishlistLines where(@Stringly.SQL String condition) {
281        return where(DSL.condition(condition));
282    }
283
284    /**
285     * Create an inline derived table from this table
286     */
287    @Override
288    @PlainSQL
289    public WishlistLines where(@Stringly.SQL String condition, Object... binds) {
290        return where(DSL.condition(condition, binds));
291    }
292
293    /**
294     * Create an inline derived table from this table
295     */
296    @Override
297    @PlainSQL
298    public WishlistLines where(@Stringly.SQL String condition, QueryPart... parts) {
299        return where(DSL.condition(condition, parts));
300    }
301
302    /**
303     * Create an inline derived table from this table
304     */
305    @Override
306    public WishlistLines whereExists(TableLike<?> select) {
307        return where(DSL.exists(select));
308    }
309
310    /**
311     * Create an inline derived table from this table
312     */
313    @Override
314    public WishlistLines whereNotExists(TableLike<?> select) {
315        return where(DSL.notExists(select));
316    }
317}