001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.core;
005
006
007import com.echothree.model.data.core.common.pk.EntityAttributePK;
008import com.echothree.model.data.core.common.pk.EntityGeoPointAttributePK;
009import com.echothree.model.data.core.common.pk.EntityInstancePK;
010import com.echothree.model.jooq.server.KeyRegistry;
011import com.echothree.model.jooq.server.tables.core.EntityAttributes.EntityAttributesPath;
012import com.echothree.model.jooq.server.tables.core.EntityInstances.EntityInstancesPath;
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 EntityGeoPointAttributes extends TableImpl<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes> {
043
044    private static final long serialVersionUID = 1L;
045
046    /**
047     * The reference instance of <code>entitygeopointattributes</code>
048     */
049    public static final EntityGeoPointAttributes EntityGeoPointAttributes = new EntityGeoPointAttributes();
050
051    /**
052     * The class holding records for this type
053     */
054    @Override
055    public Class<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes> getRecordType() {
056        return com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes.class;
057    }
058
059    /**
060     * The column
061     * <code>entitygeopointattributes.engeopnta_entitygeopointattributeid</code>.
062     */
063    public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes, EntityGeoPointAttributePK> ENTITY_GEO_POINT_ATTRIBUTE = createField(DSL.name("engeopnta_entitygeopointattributeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, EntityGeoPointAttributePK.class, id -> new com.echothree.model.data.core.common.pk.EntityGeoPointAttributePK(id), primaryKey -> primaryKey.getEntityId()));
064
065    /**
066     * The column
067     * <code>entitygeopointattributes.engeopnta_ena_entityattributeid</code>.
068     */
069    public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes, EntityAttributePK> ENTITY_ATTRIBUTE = createField(DSL.name("engeopnta_ena_entityattributeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, EntityAttributePK.class, id -> new com.echothree.model.data.core.common.pk.EntityAttributePK(id), primaryKey -> primaryKey.getEntityId()));
070
071    /**
072     * The column
073     * <code>entitygeopointattributes.engeopnta_eni_entityinstanceid</code>.
074     */
075    public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes, EntityInstancePK> ENTITY_INSTANCE = createField(DSL.name("engeopnta_eni_entityinstanceid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, EntityInstancePK.class, id -> new com.echothree.model.data.core.common.pk.EntityInstancePK(id), primaryKey -> primaryKey.getEntityId()));
076
077    /**
078     * The column <code>entitygeopointattributes.engeopnta_latitude</code>.
079     */
080    public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes, Integer> LATITUDE = createField(DSL.name("engeopnta_latitude"), SQLDataType.INTEGER.nullable(false), this, "");
081
082    /**
083     * The column <code>entitygeopointattributes.engeopnta_longitude</code>.
084     */
085    public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes, Integer> LONGITUDE = createField(DSL.name("engeopnta_longitude"), SQLDataType.INTEGER.nullable(false), this, "");
086
087    /**
088     * The column <code>entitygeopointattributes.engeopnta_elevation</code>.
089     */
090    public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes, Long> ELEVATION = createField(DSL.name("engeopnta_elevation"), SQLDataType.BIGINT, this, "");
091
092    /**
093     * The column <code>entitygeopointattributes.engeopnta_altitude</code>.
094     */
095    public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes, Long> ALTITUDE = createField(DSL.name("engeopnta_altitude"), SQLDataType.BIGINT, this, "");
096
097    /**
098     * The column <code>entitygeopointattributes.engeopnta_fromtime</code>.
099     */
100    public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes, Long> FROM_TIME = createField(DSL.name("engeopnta_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
101
102    /**
103     * The column <code>entitygeopointattributes.engeopnta_thrutime</code>.
104     */
105    public final TableField<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes, Long> THRU_TIME = createField(DSL.name("engeopnta_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
106
107    private EntityGeoPointAttributes(Name alias, Table<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes> aliased) {
108        this(alias, aliased, (Field<?>[]) null, null);
109    }
110
111    private EntityGeoPointAttributes(Name alias, Table<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes> aliased, Field<?>[] parameters, Condition where) {
112        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
113    }
114
115    /**
116     * Create an aliased <code>entitygeopointattributes</code> table reference
117     */
118    public EntityGeoPointAttributes(String alias) {
119        this(DSL.name(alias), EntityGeoPointAttributes);
120    }
121
122    /**
123     * Create an aliased <code>entitygeopointattributes</code> table reference
124     */
125    public EntityGeoPointAttributes(Name alias) {
126        this(alias, EntityGeoPointAttributes);
127    }
128
129    /**
130     * Create a <code>entitygeopointattributes</code> table reference
131     */
132    public EntityGeoPointAttributes() {
133        this(DSL.name("entitygeopointattributes"), null);
134    }
135
136    @Override
137    public UniqueKey<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes> getPrimaryKey() {
138        return KeyRegistry.ENTITY_GEO_POINT_ATTRIBUTES_PK;
139    }
140
141    @Override
142    public List<UniqueKey<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes>> getUniqueKeys() {
143        return Arrays.asList(KeyRegistry.ENTITY_GEO_POINT_ATTRIBUTES_ENTITY_ATTRIBUTE_AND_ENTITY_INSTANCE_AND_THRU_TIME_UK);
144    }
145
146    @Override
147    public List<ForeignKey<com.echothree.model.jooq.server.records.core.EntityGeoPointAttributes, ?>> getReferences() {
148        return Arrays.asList(KeyRegistry.ENTITY_GEO_POINT_ATTRIBUTES_ENTITY_ATTRIBUTE_FK, KeyRegistry.ENTITY_GEO_POINT_ATTRIBUTES_ENTITY_INSTANCE_FK);
149    }
150
151    private transient EntityAttributesPath _engeopnta_ena_entityattributeid_fk;
152
153    /**
154     * Get the implicit join path to the <code>entityattributes</code> table.
155     */
156    public EntityAttributesPath engeopnta_ena_entityattributeid_fk() {
157        if (_engeopnta_ena_entityattributeid_fk == null)
158            _engeopnta_ena_entityattributeid_fk = new EntityAttributesPath(this, KeyRegistry.ENTITY_GEO_POINT_ATTRIBUTES_ENTITY_ATTRIBUTE_FK, null);
159
160        return _engeopnta_ena_entityattributeid_fk;
161    }
162
163    private transient EntityInstancesPath _engeopnta_eni_entityinstanceid_fk;
164
165    /**
166     * Get the implicit join path to the <code>entityinstances</code> table.
167     */
168    public EntityInstancesPath engeopnta_eni_entityinstanceid_fk() {
169        if (_engeopnta_eni_entityinstanceid_fk == null)
170            _engeopnta_eni_entityinstanceid_fk = new EntityInstancesPath(this, KeyRegistry.ENTITY_GEO_POINT_ATTRIBUTES_ENTITY_INSTANCE_FK, null);
171
172        return _engeopnta_eni_entityinstanceid_fk;
173    }
174
175    @Override
176    public EntityGeoPointAttributes as(String alias) {
177        return new EntityGeoPointAttributes(DSL.name(alias), this);
178    }
179
180    @Override
181    public EntityGeoPointAttributes as(Name alias) {
182        return new EntityGeoPointAttributes(alias, this);
183    }
184
185    @Override
186    public EntityGeoPointAttributes as(Table<?> alias) {
187        return new EntityGeoPointAttributes(alias.getQualifiedName(), this);
188    }
189
190    /**
191     * Rename this table
192     */
193    @Override
194    public EntityGeoPointAttributes rename(String name) {
195        return new EntityGeoPointAttributes(DSL.name(name), null);
196    }
197
198    /**
199     * Rename this table
200     */
201    @Override
202    public EntityGeoPointAttributes rename(Name name) {
203        return new EntityGeoPointAttributes(name, null);
204    }
205
206    /**
207     * Rename this table
208     */
209    @Override
210    public EntityGeoPointAttributes rename(Table<?> name) {
211        return new EntityGeoPointAttributes(name.getQualifiedName(), null);
212    }
213
214    /**
215     * Create an inline derived table from this table
216     */
217    @Override
218    public EntityGeoPointAttributes where(Condition condition) {
219        return new EntityGeoPointAttributes(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
220    }
221
222    /**
223     * Create an inline derived table from this table
224     */
225    @Override
226    public EntityGeoPointAttributes where(Collection<? extends Condition> conditions) {
227        return where(DSL.and(conditions));
228    }
229
230    /**
231     * Create an inline derived table from this table
232     */
233    @Override
234    public EntityGeoPointAttributes where(Condition... conditions) {
235        return where(DSL.and(conditions));
236    }
237
238    /**
239     * Create an inline derived table from this table
240     */
241    @Override
242    public EntityGeoPointAttributes where(Field<Boolean> condition) {
243        return where(DSL.condition(condition));
244    }
245
246    /**
247     * Create an inline derived table from this table
248     */
249    @Override
250    @PlainSQL
251    public EntityGeoPointAttributes where(SQL condition) {
252        return where(DSL.condition(condition));
253    }
254
255    /**
256     * Create an inline derived table from this table
257     */
258    @Override
259    @PlainSQL
260    public EntityGeoPointAttributes where(@Stringly.SQL String condition) {
261        return where(DSL.condition(condition));
262    }
263
264    /**
265     * Create an inline derived table from this table
266     */
267    @Override
268    @PlainSQL
269    public EntityGeoPointAttributes where(@Stringly.SQL String condition, Object... binds) {
270        return where(DSL.condition(condition, binds));
271    }
272
273    /**
274     * Create an inline derived table from this table
275     */
276    @Override
277    @PlainSQL
278    public EntityGeoPointAttributes where(@Stringly.SQL String condition, QueryPart... parts) {
279        return where(DSL.condition(condition, parts));
280    }
281
282    /**
283     * Create an inline derived table from this table
284     */
285    @Override
286    public EntityGeoPointAttributes whereExists(TableLike<?> select) {
287        return where(DSL.exists(select));
288    }
289
290    /**
291     * Create an inline derived table from this table
292     */
293    @Override
294    public EntityGeoPointAttributes whereNotExists(TableLike<?> select) {
295        return where(DSL.notExists(select));
296    }
297}