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.ContentCollectionPK;
008import com.echothree.model.data.content.common.pk.ContentWebAddressDetailPK;
009import com.echothree.model.data.content.common.pk.ContentWebAddressPK;
010import com.echothree.model.jooq.server.KeyRegistry;
011import com.echothree.model.jooq.server.tables.content.ContentCollections.ContentCollectionsPath;
012import com.echothree.model.jooq.server.tables.content.ContentWebAddresses.ContentWebAddressesPath;
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.InverseForeignKey;
023import org.jooq.Name;
024import org.jooq.Path;
025import org.jooq.PlainSQL;
026import org.jooq.QueryPart;
027import org.jooq.Record;
028import org.jooq.SQL;
029import org.jooq.Stringly;
030import org.jooq.Table;
031import org.jooq.TableField;
032import org.jooq.TableLike;
033import org.jooq.TableOptions;
034import org.jooq.UniqueKey;
035import org.jooq.impl.DSL;
036import org.jooq.impl.Internal;
037import org.jooq.impl.SQLDataType;
038import org.jooq.impl.TableImpl;
039
040
041/**
042 * This class is generated by jOOQ.
043 */
044@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
045public class ContentWebAddressDetails extends TableImpl<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> {
046
047    private static final long serialVersionUID = 1L;
048
049    /**
050     * The reference instance of <code>contentwebaddressdetails</code>
051     */
052    public static final ContentWebAddressDetails ContentWebAddressDetails = new ContentWebAddressDetails();
053
054    /**
055     * The class holding records for this type
056     */
057    @Override
058    public Class<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> getRecordType() {
059        return com.echothree.model.jooq.server.records.content.ContentWebAddressDetails.class;
060    }
061
062    /**
063     * The column
064     * <code>contentwebaddressdetails.cntwadt_contentwebaddressdetailid</code>.
065     */
066    public final TableField<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails, ContentWebAddressDetailPK> CONTENT_WEB_ADDRESS_DETAIL = createField(DSL.name("cntwadt_contentwebaddressdetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentWebAddressDetailPK.class, id -> new com.echothree.model.data.content.common.pk.ContentWebAddressDetailPK(id), primaryKey -> primaryKey.getEntityId()));
067
068    /**
069     * The column
070     * <code>contentwebaddressdetails.cntwadt_cntwa_contentwebaddressid</code>.
071     */
072    public final TableField<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails, ContentWebAddressPK> CONTENT_WEB_ADDRESS = createField(DSL.name("cntwadt_cntwa_contentwebaddressid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentWebAddressPK.class, id -> new com.echothree.model.data.content.common.pk.ContentWebAddressPK(id), primaryKey -> primaryKey.getEntityId()));
073
074    /**
075     * The column
076     * <code>contentwebaddressdetails.cntwadt_contentwebaddressname</code>.
077     */
078    public final TableField<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails, String> CONTENT_WEB_ADDRESS_NAME = createField(DSL.name("cntwadt_contentwebaddressname"), SQLDataType.VARCHAR(40).nullable(false), this, "");
079
080    /**
081     * The column
082     * <code>contentwebaddressdetails.cntwadt_cntc_contentcollectionid</code>.
083     */
084    public final TableField<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails, ContentCollectionPK> CONTENT_COLLECTION = createField(DSL.name("cntwadt_cntc_contentcollectionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentCollectionPK.class, id -> new com.echothree.model.data.content.common.pk.ContentCollectionPK(id), primaryKey -> primaryKey.getEntityId()));
085
086    /**
087     * The column <code>contentwebaddressdetails.cntwadt_fromtime</code>.
088     */
089    public final TableField<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails, Long> FROM_TIME = createField(DSL.name("cntwadt_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
090
091    /**
092     * The column <code>contentwebaddressdetails.cntwadt_thrutime</code>.
093     */
094    public final TableField<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails, Long> THRU_TIME = createField(DSL.name("cntwadt_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
095
096    private ContentWebAddressDetails(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> aliased) {
097        this(alias, aliased, (Field<?>[]) null, null);
098    }
099
100    private ContentWebAddressDetails(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> aliased, Field<?>[] parameters, Condition where) {
101        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
102    }
103
104    /**
105     * Create an aliased <code>contentwebaddressdetails</code> table reference
106     */
107    public ContentWebAddressDetails(String alias) {
108        this(DSL.name(alias), ContentWebAddressDetails);
109    }
110
111    /**
112     * Create an aliased <code>contentwebaddressdetails</code> table reference
113     */
114    public ContentWebAddressDetails(Name alias) {
115        this(alias, ContentWebAddressDetails);
116    }
117
118    /**
119     * Create a <code>contentwebaddressdetails</code> table reference
120     */
121    public ContentWebAddressDetails() {
122        this(DSL.name("contentwebaddressdetails"), null);
123    }
124
125    public <O extends Record> ContentWebAddressDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> parentPath) {
126        super(path, childPath, parentPath, ContentWebAddressDetails);
127    }
128
129    /**
130     * A subtype implementing {@link Path} for simplified path-based joins.
131     */
132    public static class ContentWebAddressDetailsPath extends ContentWebAddressDetails implements Path<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> {
133
134        private static final long serialVersionUID = 1L;
135        public <O extends Record> ContentWebAddressDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> parentPath) {
136            super(path, childPath, parentPath);
137        }
138        private ContentWebAddressDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> aliased) {
139            super(alias, aliased);
140        }
141
142        @Override
143        public ContentWebAddressDetailsPath as(String alias) {
144            return new ContentWebAddressDetailsPath(DSL.name(alias), this);
145        }
146
147        @Override
148        public ContentWebAddressDetailsPath as(Name alias) {
149            return new ContentWebAddressDetailsPath(alias, this);
150        }
151
152        @Override
153        public ContentWebAddressDetailsPath as(Table<?> alias) {
154            return new ContentWebAddressDetailsPath(alias.getQualifiedName(), this);
155        }
156    }
157
158    @Override
159    public UniqueKey<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails> getPrimaryKey() {
160        return KeyRegistry.CONTENT_WEB_ADDRESS_DETAILS_PK;
161    }
162
163    @Override
164    public List<ForeignKey<com.echothree.model.jooq.server.records.content.ContentWebAddressDetails, ?>> getReferences() {
165        return Arrays.asList(KeyRegistry.CONTENT_WEB_ADDRESS_DETAILS_CONTENT_COLLECTION_FK, KeyRegistry.CONTENT_WEB_ADDRESS_DETAILS_CONTENT_WEB_ADDRESS_FK);
166    }
167
168    private transient ContentCollectionsPath _cntwadt_cntc_contentcollectionid_fk;
169
170    /**
171     * Get the implicit join path to the <code>contentcollections</code> table.
172     */
173    public ContentCollectionsPath cntwadt_cntc_contentcollectionid_fk() {
174        if (_cntwadt_cntc_contentcollectionid_fk == null)
175            _cntwadt_cntc_contentcollectionid_fk = new ContentCollectionsPath(this, KeyRegistry.CONTENT_WEB_ADDRESS_DETAILS_CONTENT_COLLECTION_FK, null);
176
177        return _cntwadt_cntc_contentcollectionid_fk;
178    }
179
180    private transient ContentWebAddressesPath _cntwadt_cntwa_contentwebaddressid_fk;
181
182    /**
183     * Get the implicit join path to the <code>contentwebaddresses</code> table.
184     */
185    public ContentWebAddressesPath cntwadt_cntwa_contentwebaddressid_fk() {
186        if (_cntwadt_cntwa_contentwebaddressid_fk == null)
187            _cntwadt_cntwa_contentwebaddressid_fk = new ContentWebAddressesPath(this, KeyRegistry.CONTENT_WEB_ADDRESS_DETAILS_CONTENT_WEB_ADDRESS_FK, null);
188
189        return _cntwadt_cntwa_contentwebaddressid_fk;
190    }
191
192    @Override
193    public ContentWebAddressDetails as(String alias) {
194        return new ContentWebAddressDetails(DSL.name(alias), this);
195    }
196
197    @Override
198    public ContentWebAddressDetails as(Name alias) {
199        return new ContentWebAddressDetails(alias, this);
200    }
201
202    @Override
203    public ContentWebAddressDetails as(Table<?> alias) {
204        return new ContentWebAddressDetails(alias.getQualifiedName(), this);
205    }
206
207    /**
208     * Rename this table
209     */
210    @Override
211    public ContentWebAddressDetails rename(String name) {
212        return new ContentWebAddressDetails(DSL.name(name), null);
213    }
214
215    /**
216     * Rename this table
217     */
218    @Override
219    public ContentWebAddressDetails rename(Name name) {
220        return new ContentWebAddressDetails(name, null);
221    }
222
223    /**
224     * Rename this table
225     */
226    @Override
227    public ContentWebAddressDetails rename(Table<?> name) {
228        return new ContentWebAddressDetails(name.getQualifiedName(), null);
229    }
230
231    /**
232     * Create an inline derived table from this table
233     */
234    @Override
235    public ContentWebAddressDetails where(Condition condition) {
236        return new ContentWebAddressDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
237    }
238
239    /**
240     * Create an inline derived table from this table
241     */
242    @Override
243    public ContentWebAddressDetails where(Collection<? extends Condition> conditions) {
244        return where(DSL.and(conditions));
245    }
246
247    /**
248     * Create an inline derived table from this table
249     */
250    @Override
251    public ContentWebAddressDetails where(Condition... conditions) {
252        return where(DSL.and(conditions));
253    }
254
255    /**
256     * Create an inline derived table from this table
257     */
258    @Override
259    public ContentWebAddressDetails where(Field<Boolean> condition) {
260        return where(DSL.condition(condition));
261    }
262
263    /**
264     * Create an inline derived table from this table
265     */
266    @Override
267    @PlainSQL
268    public ContentWebAddressDetails where(SQL condition) {
269        return where(DSL.condition(condition));
270    }
271
272    /**
273     * Create an inline derived table from this table
274     */
275    @Override
276    @PlainSQL
277    public ContentWebAddressDetails where(@Stringly.SQL String condition) {
278        return where(DSL.condition(condition));
279    }
280
281    /**
282     * Create an inline derived table from this table
283     */
284    @Override
285    @PlainSQL
286    public ContentWebAddressDetails where(@Stringly.SQL String condition, Object... binds) {
287        return where(DSL.condition(condition, binds));
288    }
289
290    /**
291     * Create an inline derived table from this table
292     */
293    @Override
294    @PlainSQL
295    public ContentWebAddressDetails where(@Stringly.SQL String condition, QueryPart... parts) {
296        return where(DSL.condition(condition, parts));
297    }
298
299    /**
300     * Create an inline derived table from this table
301     */
302    @Override
303    public ContentWebAddressDetails whereExists(TableLike<?> select) {
304        return where(DSL.exists(select));
305    }
306
307    /**
308     * Create an inline derived table from this table
309     */
310    @Override
311    public ContentWebAddressDetails whereNotExists(TableLike<?> select) {
312        return where(DSL.notExists(select));
313    }
314}