001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.item;
005
006
007import com.echothree.model.data.item.common.pk.ItemDescriptionPK;
008import com.echothree.model.data.item.common.pk.ItemImageDescriptionPK;
009import com.echothree.model.data.item.common.pk.ItemImageTypePK;
010import com.echothree.model.jooq.server.KeyRegistry;
011import com.echothree.model.jooq.server.tables.item.ItemDescriptions.ItemDescriptionsPath;
012import com.echothree.model.jooq.server.tables.item.ItemImageTypes.ItemImageTypesPath;
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 ItemImageDescriptions extends TableImpl<com.echothree.model.jooq.server.records.item.ItemImageDescriptions> {
043
044    private static final long serialVersionUID = 1L;
045
046    /**
047     * The reference instance of <code>itemimagedescriptions</code>
048     */
049    public static final ItemImageDescriptions ItemImageDescriptions = new ItemImageDescriptions();
050
051    /**
052     * The class holding records for this type
053     */
054    @Override
055    public Class<com.echothree.model.jooq.server.records.item.ItemImageDescriptions> getRecordType() {
056        return com.echothree.model.jooq.server.records.item.ItemImageDescriptions.class;
057    }
058
059    /**
060     * The column
061     * <code>itemimagedescriptions.iimgdesc_itemimagedescriptionid</code>.
062     */
063    public final TableField<com.echothree.model.jooq.server.records.item.ItemImageDescriptions, ItemImageDescriptionPK> ITEM_IMAGE_DESCRIPTION = createField(DSL.name("iimgdesc_itemimagedescriptionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemImageDescriptionPK.class, id -> new com.echothree.model.data.item.common.pk.ItemImageDescriptionPK(id), primaryKey -> primaryKey.getEntityId()));
064
065    /**
066     * The column
067     * <code>itemimagedescriptions.iimgdesc_idesc_itemdescriptionid</code>.
068     */
069    public final TableField<com.echothree.model.jooq.server.records.item.ItemImageDescriptions, ItemDescriptionPK> ITEM_DESCRIPTION = createField(DSL.name("iimgdesc_idesc_itemdescriptionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemDescriptionPK.class, id -> new com.echothree.model.data.item.common.pk.ItemDescriptionPK(id), primaryKey -> primaryKey.getEntityId()));
070
071    /**
072     * The column
073     * <code>itemimagedescriptions.iimgdesc_iimgt_itemimagetypeid</code>.
074     */
075    public final TableField<com.echothree.model.jooq.server.records.item.ItemImageDescriptions, ItemImageTypePK> ITEM_IMAGE_TYPE = createField(DSL.name("iimgdesc_iimgt_itemimagetypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemImageTypePK.class, id -> new com.echothree.model.data.item.common.pk.ItemImageTypePK(id), primaryKey -> primaryKey.getEntityId()));
076
077    /**
078     * The column <code>itemimagedescriptions.iimgdesc_height</code>.
079     */
080    public final TableField<com.echothree.model.jooq.server.records.item.ItemImageDescriptions, Integer> HEIGHT = createField(DSL.name("iimgdesc_height"), SQLDataType.INTEGER, this, "");
081
082    /**
083     * The column <code>itemimagedescriptions.iimgdesc_width</code>.
084     */
085    public final TableField<com.echothree.model.jooq.server.records.item.ItemImageDescriptions, Integer> WIDTH = createField(DSL.name("iimgdesc_width"), SQLDataType.INTEGER, this, "");
086
087    /**
088     * The column <code>itemimagedescriptions.iimgdesc_scaledfromparent</code>.
089     */
090    public final TableField<com.echothree.model.jooq.server.records.item.ItemImageDescriptions, Boolean> SCALED_FROM_PARENT = createField(DSL.name("iimgdesc_scaledfromparent"), SQLDataType.BIT.nullable(false), this, "");
091
092    /**
093     * The column <code>itemimagedescriptions.iimgdesc_fromtime</code>.
094     */
095    public final TableField<com.echothree.model.jooq.server.records.item.ItemImageDescriptions, Long> FROM_TIME = createField(DSL.name("iimgdesc_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
096
097    /**
098     * The column <code>itemimagedescriptions.iimgdesc_thrutime</code>.
099     */
100    public final TableField<com.echothree.model.jooq.server.records.item.ItemImageDescriptions, Long> THRU_TIME = createField(DSL.name("iimgdesc_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
101
102    private ItemImageDescriptions(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemImageDescriptions> aliased) {
103        this(alias, aliased, (Field<?>[]) null, null);
104    }
105
106    private ItemImageDescriptions(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemImageDescriptions> aliased, Field<?>[] parameters, Condition where) {
107        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
108    }
109
110    /**
111     * Create an aliased <code>itemimagedescriptions</code> table reference
112     */
113    public ItemImageDescriptions(String alias) {
114        this(DSL.name(alias), ItemImageDescriptions);
115    }
116
117    /**
118     * Create an aliased <code>itemimagedescriptions</code> table reference
119     */
120    public ItemImageDescriptions(Name alias) {
121        this(alias, ItemImageDescriptions);
122    }
123
124    /**
125     * Create a <code>itemimagedescriptions</code> table reference
126     */
127    public ItemImageDescriptions() {
128        this(DSL.name("itemimagedescriptions"), null);
129    }
130
131    @Override
132    public UniqueKey<com.echothree.model.jooq.server.records.item.ItemImageDescriptions> getPrimaryKey() {
133        return KeyRegistry.ITEM_IMAGE_DESCRIPTIONS_PK;
134    }
135
136    @Override
137    public List<UniqueKey<com.echothree.model.jooq.server.records.item.ItemImageDescriptions>> getUniqueKeys() {
138        return Arrays.asList(KeyRegistry.ITEM_IMAGE_DESCRIPTIONS_ITEM_DESCRIPTION_AND_THRU_TIME_UK);
139    }
140
141    @Override
142    public List<ForeignKey<com.echothree.model.jooq.server.records.item.ItemImageDescriptions, ?>> getReferences() {
143        return Arrays.asList(KeyRegistry.ITEM_IMAGE_DESCRIPTIONS_ITEM_DESCRIPTION_FK, KeyRegistry.ITEM_IMAGE_DESCRIPTIONS_ITEM_IMAGE_TYPE_FK);
144    }
145
146    private transient ItemDescriptionsPath _iimgdesc_idesc_itemdescriptionid_fk;
147
148    /**
149     * Get the implicit join path to the <code>itemdescriptions</code> table.
150     */
151    public ItemDescriptionsPath iimgdesc_idesc_itemdescriptionid_fk() {
152        if (_iimgdesc_idesc_itemdescriptionid_fk == null)
153            _iimgdesc_idesc_itemdescriptionid_fk = new ItemDescriptionsPath(this, KeyRegistry.ITEM_IMAGE_DESCRIPTIONS_ITEM_DESCRIPTION_FK, null);
154
155        return _iimgdesc_idesc_itemdescriptionid_fk;
156    }
157
158    private transient ItemImageTypesPath _iimgdesc_iimgt_itemimagetypeid_fk;
159
160    /**
161     * Get the implicit join path to the <code>itemimagetypes</code> table.
162     */
163    public ItemImageTypesPath iimgdesc_iimgt_itemimagetypeid_fk() {
164        if (_iimgdesc_iimgt_itemimagetypeid_fk == null)
165            _iimgdesc_iimgt_itemimagetypeid_fk = new ItemImageTypesPath(this, KeyRegistry.ITEM_IMAGE_DESCRIPTIONS_ITEM_IMAGE_TYPE_FK, null);
166
167        return _iimgdesc_iimgt_itemimagetypeid_fk;
168    }
169
170    @Override
171    public ItemImageDescriptions as(String alias) {
172        return new ItemImageDescriptions(DSL.name(alias), this);
173    }
174
175    @Override
176    public ItemImageDescriptions as(Name alias) {
177        return new ItemImageDescriptions(alias, this);
178    }
179
180    @Override
181    public ItemImageDescriptions as(Table<?> alias) {
182        return new ItemImageDescriptions(alias.getQualifiedName(), this);
183    }
184
185    /**
186     * Rename this table
187     */
188    @Override
189    public ItemImageDescriptions rename(String name) {
190        return new ItemImageDescriptions(DSL.name(name), null);
191    }
192
193    /**
194     * Rename this table
195     */
196    @Override
197    public ItemImageDescriptions rename(Name name) {
198        return new ItemImageDescriptions(name, null);
199    }
200
201    /**
202     * Rename this table
203     */
204    @Override
205    public ItemImageDescriptions rename(Table<?> name) {
206        return new ItemImageDescriptions(name.getQualifiedName(), null);
207    }
208
209    /**
210     * Create an inline derived table from this table
211     */
212    @Override
213    public ItemImageDescriptions where(Condition condition) {
214        return new ItemImageDescriptions(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
215    }
216
217    /**
218     * Create an inline derived table from this table
219     */
220    @Override
221    public ItemImageDescriptions where(Collection<? extends Condition> conditions) {
222        return where(DSL.and(conditions));
223    }
224
225    /**
226     * Create an inline derived table from this table
227     */
228    @Override
229    public ItemImageDescriptions where(Condition... conditions) {
230        return where(DSL.and(conditions));
231    }
232
233    /**
234     * Create an inline derived table from this table
235     */
236    @Override
237    public ItemImageDescriptions where(Field<Boolean> condition) {
238        return where(DSL.condition(condition));
239    }
240
241    /**
242     * Create an inline derived table from this table
243     */
244    @Override
245    @PlainSQL
246    public ItemImageDescriptions where(SQL condition) {
247        return where(DSL.condition(condition));
248    }
249
250    /**
251     * Create an inline derived table from this table
252     */
253    @Override
254    @PlainSQL
255    public ItemImageDescriptions where(@Stringly.SQL String condition) {
256        return where(DSL.condition(condition));
257    }
258
259    /**
260     * Create an inline derived table from this table
261     */
262    @Override
263    @PlainSQL
264    public ItemImageDescriptions where(@Stringly.SQL String condition, Object... binds) {
265        return where(DSL.condition(condition, binds));
266    }
267
268    /**
269     * Create an inline derived table from this table
270     */
271    @Override
272    @PlainSQL
273    public ItemImageDescriptions where(@Stringly.SQL String condition, QueryPart... parts) {
274        return where(DSL.condition(condition, parts));
275    }
276
277    /**
278     * Create an inline derived table from this table
279     */
280    @Override
281    public ItemImageDescriptions whereExists(TableLike<?> select) {
282        return where(DSL.exists(select));
283    }
284
285    /**
286     * Create an inline derived table from this table
287     */
288    @Override
289    public ItemImageDescriptions whereNotExists(TableLike<?> select) {
290        return where(DSL.notExists(select));
291    }
292}