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