001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.content;
005
006
007import com.echothree.model.data.content.common.pk.ContentPageLayoutAreaDescriptionPK;
008import com.echothree.model.data.content.common.pk.ContentPageLayoutAreaPK;
009import com.echothree.model.data.party.common.pk.LanguagePK;
010import com.echothree.model.jooq.server.KeyRegistry;
011import com.echothree.model.jooq.server.tables.content.ContentPageLayoutAreas.ContentPageLayoutAreasPath;
012import com.echothree.model.jooq.server.tables.party.Languages.LanguagesPath;
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 ContentPageLayoutAreaDescriptions extends TableImpl<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions> {
043
044    private static final long serialVersionUID = 1L;
045
046    /**
047     * The reference instance of <code>contentpagelayoutareadescriptions</code>
048     */
049    public static final ContentPageLayoutAreaDescriptions ContentPageLayoutAreaDescriptions = new ContentPageLayoutAreaDescriptions();
050
051    /**
052     * The class holding records for this type
053     */
054    @Override
055    public Class<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions> getRecordType() {
056        return com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions.class;
057    }
058
059    /**
060     * The column
061     * <code>contentpagelayoutareadescriptions.cntplad_contentpagelayoutareadescriptionid</code>.
062     */
063    public final TableField<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions, ContentPageLayoutAreaDescriptionPK> CONTENT_PAGE_LAYOUT_AREA_DESCRIPTION = createField(DSL.name("cntplad_contentpagelayoutareadescriptionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentPageLayoutAreaDescriptionPK.class, id -> new com.echothree.model.data.content.common.pk.ContentPageLayoutAreaDescriptionPK(id), primaryKey -> primaryKey.getEntityId()));
064
065    /**
066     * The column
067     * <code>contentpagelayoutareadescriptions.cntplad_cntpla_contentpagelayoutareaid</code>.
068     */
069    public final TableField<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions, ContentPageLayoutAreaPK> CONTENT_PAGE_LAYOUT_AREA = createField(DSL.name("cntplad_cntpla_contentpagelayoutareaid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentPageLayoutAreaPK.class, id -> new com.echothree.model.data.content.common.pk.ContentPageLayoutAreaPK(id), primaryKey -> primaryKey.getEntityId()));
070
071    /**
072     * The column
073     * <code>contentpagelayoutareadescriptions.cntplad_lang_languageid</code>.
074     */
075    public final TableField<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions, LanguagePK> LANGUAGE = createField(DSL.name("cntplad_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>contentpagelayoutareadescriptions.cntplad_description</code>.
080     */
081    public final TableField<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions, String> DESCRIPTION = createField(DSL.name("cntplad_description"), SQLDataType.VARCHAR(132).nullable(false), this, "");
082
083    private ContentPageLayoutAreaDescriptions(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions> aliased) {
084        this(alias, aliased, (Field<?>[]) null, null);
085    }
086
087    private ContentPageLayoutAreaDescriptions(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions> aliased, Field<?>[] parameters, Condition where) {
088        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
089    }
090
091    /**
092     * Create an aliased <code>contentpagelayoutareadescriptions</code> table
093     * reference
094     */
095    public ContentPageLayoutAreaDescriptions(String alias) {
096        this(DSL.name(alias), ContentPageLayoutAreaDescriptions);
097    }
098
099    /**
100     * Create an aliased <code>contentpagelayoutareadescriptions</code> table
101     * reference
102     */
103    public ContentPageLayoutAreaDescriptions(Name alias) {
104        this(alias, ContentPageLayoutAreaDescriptions);
105    }
106
107    /**
108     * Create a <code>contentpagelayoutareadescriptions</code> table reference
109     */
110    public ContentPageLayoutAreaDescriptions() {
111        this(DSL.name("contentpagelayoutareadescriptions"), null);
112    }
113
114    @Override
115    public UniqueKey<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions> getPrimaryKey() {
116        return KeyRegistry.CONTENT_PAGE_LAYOUT_AREA_DESCRIPTIONS_PK;
117    }
118
119    @Override
120    public List<UniqueKey<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions>> getUniqueKeys() {
121        return Arrays.asList(KeyRegistry.CONTENT_PAGE_LAYOUT_AREA_DESCRIPTIONS_CONTENT_PAGE_LAYOUT_AREA_AND_LANGUAGE_UK);
122    }
123
124    @Override
125    public List<ForeignKey<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreaDescriptions, ?>> getReferences() {
126        return Arrays.asList(KeyRegistry.CONTENT_PAGE_LAYOUT_AREA_DESCRIPTIONS_CONTENT_PAGE_LAYOUT_AREA_FK, KeyRegistry.CONTENT_PAGE_LAYOUT_AREA_DESCRIPTIONS_LANGUAGE_FK);
127    }
128
129    private transient ContentPageLayoutAreasPath _cntplad_cntpla_contentpagelayoutareaid_fk;
130
131    /**
132     * Get the implicit join path to the <code>contentpagelayoutareas</code>
133     * table.
134     */
135    public ContentPageLayoutAreasPath cntplad_cntpla_contentpagelayoutareaid_fk() {
136        if (_cntplad_cntpla_contentpagelayoutareaid_fk == null)
137            _cntplad_cntpla_contentpagelayoutareaid_fk = new ContentPageLayoutAreasPath(this, KeyRegistry.CONTENT_PAGE_LAYOUT_AREA_DESCRIPTIONS_CONTENT_PAGE_LAYOUT_AREA_FK, null);
138
139        return _cntplad_cntpla_contentpagelayoutareaid_fk;
140    }
141
142    private transient LanguagesPath _cntplad_lang_languageid_fk;
143
144    /**
145     * Get the implicit join path to the <code>languages</code> table.
146     */
147    public LanguagesPath cntplad_lang_languageid_fk() {
148        if (_cntplad_lang_languageid_fk == null)
149            _cntplad_lang_languageid_fk = new LanguagesPath(this, KeyRegistry.CONTENT_PAGE_LAYOUT_AREA_DESCRIPTIONS_LANGUAGE_FK, null);
150
151        return _cntplad_lang_languageid_fk;
152    }
153
154    @Override
155    public ContentPageLayoutAreaDescriptions as(String alias) {
156        return new ContentPageLayoutAreaDescriptions(DSL.name(alias), this);
157    }
158
159    @Override
160    public ContentPageLayoutAreaDescriptions as(Name alias) {
161        return new ContentPageLayoutAreaDescriptions(alias, this);
162    }
163
164    @Override
165    public ContentPageLayoutAreaDescriptions as(Table<?> alias) {
166        return new ContentPageLayoutAreaDescriptions(alias.getQualifiedName(), this);
167    }
168
169    /**
170     * Rename this table
171     */
172    @Override
173    public ContentPageLayoutAreaDescriptions rename(String name) {
174        return new ContentPageLayoutAreaDescriptions(DSL.name(name), null);
175    }
176
177    /**
178     * Rename this table
179     */
180    @Override
181    public ContentPageLayoutAreaDescriptions rename(Name name) {
182        return new ContentPageLayoutAreaDescriptions(name, null);
183    }
184
185    /**
186     * Rename this table
187     */
188    @Override
189    public ContentPageLayoutAreaDescriptions rename(Table<?> name) {
190        return new ContentPageLayoutAreaDescriptions(name.getQualifiedName(), null);
191    }
192
193    /**
194     * Create an inline derived table from this table
195     */
196    @Override
197    public ContentPageLayoutAreaDescriptions where(Condition condition) {
198        return new ContentPageLayoutAreaDescriptions(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
199    }
200
201    /**
202     * Create an inline derived table from this table
203     */
204    @Override
205    public ContentPageLayoutAreaDescriptions where(Collection<? extends Condition> conditions) {
206        return where(DSL.and(conditions));
207    }
208
209    /**
210     * Create an inline derived table from this table
211     */
212    @Override
213    public ContentPageLayoutAreaDescriptions where(Condition... conditions) {
214        return where(DSL.and(conditions));
215    }
216
217    /**
218     * Create an inline derived table from this table
219     */
220    @Override
221    public ContentPageLayoutAreaDescriptions where(Field<Boolean> condition) {
222        return where(DSL.condition(condition));
223    }
224
225    /**
226     * Create an inline derived table from this table
227     */
228    @Override
229    @PlainSQL
230    public ContentPageLayoutAreaDescriptions where(SQL 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 ContentPageLayoutAreaDescriptions where(@Stringly.SQL String 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 ContentPageLayoutAreaDescriptions where(@Stringly.SQL String condition, Object... binds) {
249        return where(DSL.condition(condition, binds));
250    }
251
252    /**
253     * Create an inline derived table from this table
254     */
255    @Override
256    @PlainSQL
257    public ContentPageLayoutAreaDescriptions where(@Stringly.SQL String condition, QueryPart... parts) {
258        return where(DSL.condition(condition, parts));
259    }
260
261    /**
262     * Create an inline derived table from this table
263     */
264    @Override
265    public ContentPageLayoutAreaDescriptions whereExists(TableLike<?> select) {
266        return where(DSL.exists(select));
267    }
268
269    /**
270     * Create an inline derived table from this table
271     */
272    @Override
273    public ContentPageLayoutAreaDescriptions whereNotExists(TableLike<?> select) {
274        return where(DSL.notExists(select));
275    }
276}