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