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