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