001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.contact;
005
006
007import com.echothree.model.data.contact.common.pk.ContactInet6AddressPK;
008import com.echothree.model.data.contact.common.pk.ContactMechanismPK;
009import com.echothree.model.jooq.server.KeyRegistry;
010import com.echothree.model.jooq.server.tables.contact.ContactMechanisms.ContactMechanismsPath;
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 ContactInet6Addresses extends TableImpl<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses> {
041
042    private static final long serialVersionUID = 1L;
043
044    /**
045     * The reference instance of <code>contactinet6addresses</code>
046     */
047    public static final ContactInet6Addresses ContactInet6Addresses = new ContactInet6Addresses();
048
049    /**
050     * The class holding records for this type
051     */
052    @Override
053    public Class<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses> getRecordType() {
054        return com.echothree.model.jooq.server.records.contact.ContactInet6Addresses.class;
055    }
056
057    /**
058     * The column
059     * <code>contactinet6addresses.cti6a_contactinet6addressid</code>.
060     */
061    public final TableField<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses, ContactInet6AddressPK> CONTACT_INET6_ADDRESS = createField(DSL.name("cti6a_contactinet6addressid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContactInet6AddressPK.class, id -> new com.echothree.model.data.contact.common.pk.ContactInet6AddressPK(id), primaryKey -> primaryKey.getEntityId()));
062
063    /**
064     * The column
065     * <code>contactinet6addresses.cti6a_cmch_contactmechanismid</code>.
066     */
067    public final TableField<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses, ContactMechanismPK> CONTACT_MECHANISM = createField(DSL.name("cti6a_cmch_contactmechanismid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContactMechanismPK.class, id -> new com.echothree.model.data.contact.common.pk.ContactMechanismPK(id), primaryKey -> primaryKey.getEntityId()));
068
069    /**
070     * The column <code>contactinet6addresses.cti6a_inet6addresslow</code>.
071     */
072    public final TableField<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses, Long> INET6_ADDRESS_LOW = createField(DSL.name("cti6a_inet6addresslow"), SQLDataType.BIGINT.nullable(false), this, "");
073
074    /**
075     * The column <code>contactinet6addresses.cti6a_inet6addresshigh</code>.
076     */
077    public final TableField<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses, Long> INET6_ADDRESS_HIGH = createField(DSL.name("cti6a_inet6addresshigh"), SQLDataType.BIGINT.nullable(false), this, "");
078
079    /**
080     * The column <code>contactinet6addresses.cti6a_fromtime</code>.
081     */
082    public final TableField<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses, Long> FROM_TIME = createField(DSL.name("cti6a_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
083
084    /**
085     * The column <code>contactinet6addresses.cti6a_thrutime</code>.
086     */
087    public final TableField<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses, Long> THRU_TIME = createField(DSL.name("cti6a_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
088
089    private ContactInet6Addresses(Name alias, Table<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses> aliased) {
090        this(alias, aliased, (Field<?>[]) null, null);
091    }
092
093    private ContactInet6Addresses(Name alias, Table<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses> aliased, Field<?>[] parameters, Condition where) {
094        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
095    }
096
097    /**
098     * Create an aliased <code>contactinet6addresses</code> table reference
099     */
100    public ContactInet6Addresses(String alias) {
101        this(DSL.name(alias), ContactInet6Addresses);
102    }
103
104    /**
105     * Create an aliased <code>contactinet6addresses</code> table reference
106     */
107    public ContactInet6Addresses(Name alias) {
108        this(alias, ContactInet6Addresses);
109    }
110
111    /**
112     * Create a <code>contactinet6addresses</code> table reference
113     */
114    public ContactInet6Addresses() {
115        this(DSL.name("contactinet6addresses"), null);
116    }
117
118    @Override
119    public UniqueKey<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses> getPrimaryKey() {
120        return KeyRegistry.CONTACT_INET6_ADDRESSES_PK;
121    }
122
123    @Override
124    public List<UniqueKey<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses>> getUniqueKeys() {
125        return Arrays.asList(KeyRegistry.CONTACT_INET6_ADDRESSES_CONTACT_MECHANISM_AND_THRU_TIME_UK);
126    }
127
128    @Override
129    public List<ForeignKey<com.echothree.model.jooq.server.records.contact.ContactInet6Addresses, ?>> getReferences() {
130        return Arrays.asList(KeyRegistry.CONTACT_INET6_ADDRESSES_CONTACT_MECHANISM_FK);
131    }
132
133    private transient ContactMechanismsPath _cti6a_cmch_contactmechanismid_fk;
134
135    /**
136     * Get the implicit join path to the <code>contactmechanisms</code> table.
137     */
138    public ContactMechanismsPath cti6a_cmch_contactmechanismid_fk() {
139        if (_cti6a_cmch_contactmechanismid_fk == null)
140            _cti6a_cmch_contactmechanismid_fk = new ContactMechanismsPath(this, KeyRegistry.CONTACT_INET6_ADDRESSES_CONTACT_MECHANISM_FK, null);
141
142        return _cti6a_cmch_contactmechanismid_fk;
143    }
144
145    @Override
146    public ContactInet6Addresses as(String alias) {
147        return new ContactInet6Addresses(DSL.name(alias), this);
148    }
149
150    @Override
151    public ContactInet6Addresses as(Name alias) {
152        return new ContactInet6Addresses(alias, this);
153    }
154
155    @Override
156    public ContactInet6Addresses as(Table<?> alias) {
157        return new ContactInet6Addresses(alias.getQualifiedName(), this);
158    }
159
160    /**
161     * Rename this table
162     */
163    @Override
164    public ContactInet6Addresses rename(String name) {
165        return new ContactInet6Addresses(DSL.name(name), null);
166    }
167
168    /**
169     * Rename this table
170     */
171    @Override
172    public ContactInet6Addresses rename(Name name) {
173        return new ContactInet6Addresses(name, null);
174    }
175
176    /**
177     * Rename this table
178     */
179    @Override
180    public ContactInet6Addresses rename(Table<?> name) {
181        return new ContactInet6Addresses(name.getQualifiedName(), null);
182    }
183
184    /**
185     * Create an inline derived table from this table
186     */
187    @Override
188    public ContactInet6Addresses where(Condition condition) {
189        return new ContactInet6Addresses(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
190    }
191
192    /**
193     * Create an inline derived table from this table
194     */
195    @Override
196    public ContactInet6Addresses where(Collection<? extends Condition> conditions) {
197        return where(DSL.and(conditions));
198    }
199
200    /**
201     * Create an inline derived table from this table
202     */
203    @Override
204    public ContactInet6Addresses where(Condition... conditions) {
205        return where(DSL.and(conditions));
206    }
207
208    /**
209     * Create an inline derived table from this table
210     */
211    @Override
212    public ContactInet6Addresses where(Field<Boolean> condition) {
213        return where(DSL.condition(condition));
214    }
215
216    /**
217     * Create an inline derived table from this table
218     */
219    @Override
220    @PlainSQL
221    public ContactInet6Addresses where(SQL 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 ContactInet6Addresses where(@Stringly.SQL String 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 ContactInet6Addresses where(@Stringly.SQL String condition, Object... binds) {
240        return where(DSL.condition(condition, binds));
241    }
242
243    /**
244     * Create an inline derived table from this table
245     */
246    @Override
247    @PlainSQL
248    public ContactInet6Addresses where(@Stringly.SQL String condition, QueryPart... parts) {
249        return where(DSL.condition(condition, parts));
250    }
251
252    /**
253     * Create an inline derived table from this table
254     */
255    @Override
256    public ContactInet6Addresses whereExists(TableLike<?> select) {
257        return where(DSL.exists(select));
258    }
259
260    /**
261     * Create an inline derived table from this table
262     */
263    @Override
264    public ContactInet6Addresses whereNotExists(TableLike<?> select) {
265        return where(DSL.notExists(select));
266    }
267}