001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.picklist;
005
006
007import com.echothree.model.data.picklist.common.pk.PicklistPK;
008import com.echothree.model.data.picklist.common.pk.PicklistStatusPK;
009import com.echothree.model.jooq.server.KeyRegistry;
010import com.echothree.model.jooq.server.tables.picklist.Picklists.PicklistsPath;
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.Name;
021import org.jooq.PlainSQL;
022import org.jooq.QueryPart;
023import org.jooq.SQL;
024import org.jooq.Stringly;
025import org.jooq.Table;
026import org.jooq.TableField;
027import org.jooq.TableLike;
028import org.jooq.TableOptions;
029import org.jooq.UniqueKey;
030import org.jooq.impl.DSL;
031import org.jooq.impl.Internal;
032import org.jooq.impl.SQLDataType;
033import org.jooq.impl.TableImpl;
034
035
036/**
037 * This class is generated by jOOQ.
038 */
039@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
040public class PicklistStatuses extends TableImpl<com.echothree.model.jooq.server.records.picklist.PicklistStatuses> {
041
042    private static final long serialVersionUID = 1L;
043
044    /**
045     * The reference instance of <code>pickliststatuses</code>
046     */
047    public static final PicklistStatuses PicklistStatuses = new PicklistStatuses();
048
049    /**
050     * The class holding records for this type
051     */
052    @Override
053    public Class<com.echothree.model.jooq.server.records.picklist.PicklistStatuses> getRecordType() {
054        return com.echothree.model.jooq.server.records.picklist.PicklistStatuses.class;
055    }
056
057    /**
058     * The column <code>pickliststatuses.pcklstst_pickliststatusid</code>.
059     */
060    public final TableField<com.echothree.model.jooq.server.records.picklist.PicklistStatuses, PicklistStatusPK> PICKLIST_STATUS = createField(DSL.name("pcklstst_pickliststatusid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PicklistStatusPK.class, id -> new com.echothree.model.data.picklist.common.pk.PicklistStatusPK(id), primaryKey -> primaryKey.getEntityId()));
061
062    /**
063     * The column <code>pickliststatuses.pcklstst_pcklst_picklistid</code>.
064     */
065    public final TableField<com.echothree.model.jooq.server.records.picklist.PicklistStatuses, PicklistPK> PICKLIST = createField(DSL.name("pcklstst_pcklst_picklistid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PicklistPK.class, id -> new com.echothree.model.data.picklist.common.pk.PicklistPK(id), primaryKey -> primaryKey.getEntityId()));
066
067    /**
068     * The column <code>pickliststatuses.pcklstst_picklistlinesequence</code>.
069     */
070    public final TableField<com.echothree.model.jooq.server.records.picklist.PicklistStatuses, Integer> PICKLIST_LINE_SEQUENCE = createField(DSL.name("pcklstst_picklistlinesequence"), SQLDataType.INTEGER.nullable(false), this, "");
071
072    private PicklistStatuses(Name alias, Table<com.echothree.model.jooq.server.records.picklist.PicklistStatuses> aliased) {
073        this(alias, aliased, (Field<?>[]) null, null);
074    }
075
076    private PicklistStatuses(Name alias, Table<com.echothree.model.jooq.server.records.picklist.PicklistStatuses> aliased, Field<?>[] parameters, Condition where) {
077        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
078    }
079
080    /**
081     * Create an aliased <code>pickliststatuses</code> table reference
082     */
083    public PicklistStatuses(String alias) {
084        this(DSL.name(alias), PicklistStatuses);
085    }
086
087    /**
088     * Create an aliased <code>pickliststatuses</code> table reference
089     */
090    public PicklistStatuses(Name alias) {
091        this(alias, PicklistStatuses);
092    }
093
094    /**
095     * Create a <code>pickliststatuses</code> table reference
096     */
097    public PicklistStatuses() {
098        this(DSL.name("pickliststatuses"), null);
099    }
100
101    @Override
102    public UniqueKey<com.echothree.model.jooq.server.records.picklist.PicklistStatuses> getPrimaryKey() {
103        return KeyRegistry.PICKLIST_STATUSES_PK;
104    }
105
106    @Override
107    public List<UniqueKey<com.echothree.model.jooq.server.records.picklist.PicklistStatuses>> getUniqueKeys() {
108        return Arrays.asList(KeyRegistry.PICKLIST_STATUSES_PICKLIST_UK);
109    }
110
111    @Override
112    public List<ForeignKey<com.echothree.model.jooq.server.records.picklist.PicklistStatuses, ?>> getReferences() {
113        return Arrays.asList(KeyRegistry.PICKLIST_STATUSES_PICKLIST_FK);
114    }
115
116    private transient PicklistsPath _pcklstst_pcklst_picklistid_fk;
117
118    /**
119     * Get the implicit join path to the <code>picklists</code> table.
120     */
121    public PicklistsPath pcklstst_pcklst_picklistid_fk() {
122        if (_pcklstst_pcklst_picklistid_fk == null)
123            _pcklstst_pcklst_picklistid_fk = new PicklistsPath(this, KeyRegistry.PICKLIST_STATUSES_PICKLIST_FK, null);
124
125        return _pcklstst_pcklst_picklistid_fk;
126    }
127
128    @Override
129    public PicklistStatuses as(String alias) {
130        return new PicklistStatuses(DSL.name(alias), this);
131    }
132
133    @Override
134    public PicklistStatuses as(Name alias) {
135        return new PicklistStatuses(alias, this);
136    }
137
138    @Override
139    public PicklistStatuses as(Table<?> alias) {
140        return new PicklistStatuses(alias.getQualifiedName(), this);
141    }
142
143    /**
144     * Rename this table
145     */
146    @Override
147    public PicklistStatuses rename(String name) {
148        return new PicklistStatuses(DSL.name(name), null);
149    }
150
151    /**
152     * Rename this table
153     */
154    @Override
155    public PicklistStatuses rename(Name name) {
156        return new PicklistStatuses(name, null);
157    }
158
159    /**
160     * Rename this table
161     */
162    @Override
163    public PicklistStatuses rename(Table<?> name) {
164        return new PicklistStatuses(name.getQualifiedName(), null);
165    }
166
167    /**
168     * Create an inline derived table from this table
169     */
170    @Override
171    public PicklistStatuses where(Condition condition) {
172        return new PicklistStatuses(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
173    }
174
175    /**
176     * Create an inline derived table from this table
177     */
178    @Override
179    public PicklistStatuses where(Collection<? extends Condition> conditions) {
180        return where(DSL.and(conditions));
181    }
182
183    /**
184     * Create an inline derived table from this table
185     */
186    @Override
187    public PicklistStatuses where(Condition... conditions) {
188        return where(DSL.and(conditions));
189    }
190
191    /**
192     * Create an inline derived table from this table
193     */
194    @Override
195    public PicklistStatuses where(Field<Boolean> condition) {
196        return where(DSL.condition(condition));
197    }
198
199    /**
200     * Create an inline derived table from this table
201     */
202    @Override
203    @PlainSQL
204    public PicklistStatuses where(SQL condition) {
205        return where(DSL.condition(condition));
206    }
207
208    /**
209     * Create an inline derived table from this table
210     */
211    @Override
212    @PlainSQL
213    public PicklistStatuses where(@Stringly.SQL String condition) {
214        return where(DSL.condition(condition));
215    }
216
217    /**
218     * Create an inline derived table from this table
219     */
220    @Override
221    @PlainSQL
222    public PicklistStatuses where(@Stringly.SQL String condition, Object... binds) {
223        return where(DSL.condition(condition, binds));
224    }
225
226    /**
227     * Create an inline derived table from this table
228     */
229    @Override
230    @PlainSQL
231    public PicklistStatuses where(@Stringly.SQL String condition, QueryPart... parts) {
232        return where(DSL.condition(condition, parts));
233    }
234
235    /**
236     * Create an inline derived table from this table
237     */
238    @Override
239    public PicklistStatuses whereExists(TableLike<?> select) {
240        return where(DSL.exists(select));
241    }
242
243    /**
244     * Create an inline derived table from this table
245     */
246    @Override
247    public PicklistStatuses whereNotExists(TableLike<?> select) {
248        return where(DSL.notExists(select));
249    }
250}