001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.core;
005
006
007import com.echothree.model.jooq.server.KeyRegistry;
008
009import java.util.Collection;
010
011import org.jooq.Condition;
012import org.jooq.Field;
013import org.jooq.Name;
014import org.jooq.PlainSQL;
015import org.jooq.QueryPart;
016import org.jooq.SQL;
017import org.jooq.Stringly;
018import org.jooq.Table;
019import org.jooq.TableField;
020import org.jooq.TableLike;
021import org.jooq.TableOptions;
022import org.jooq.UniqueKey;
023import org.jooq.impl.DSL;
024import org.jooq.impl.Internal;
025import org.jooq.impl.SQLDataType;
026import org.jooq.impl.TableImpl;
027
028
029/**
030 * This class is generated by jOOQ.
031 */
032@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
033public class EntityIds extends TableImpl<com.echothree.model.jooq.server.records.core.EntityIds> {
034
035    private static final long serialVersionUID = 1L;
036
037    /**
038     * The reference instance of <code>entityids</code>
039     */
040    public static final EntityIds EntityIds = new EntityIds();
041
042    /**
043     * The class holding records for this type
044     */
045    @Override
046    public Class<com.echothree.model.jooq.server.records.core.EntityIds> getRecordType() {
047        return com.echothree.model.jooq.server.records.core.EntityIds.class;
048    }
049
050    /**
051     * The column <code>entityids.eid_componentvendorname</code>.
052     */
053    public final TableField<com.echothree.model.jooq.server.records.core.EntityIds, String> COMPONENT_VENDOR_NAME = createField(DSL.name("eid_componentvendorname"), SQLDataType.VARCHAR(40).nullable(false), this, "");
054
055    /**
056     * The column <code>entityids.eid_entitytypename</code>.
057     */
058    public final TableField<com.echothree.model.jooq.server.records.core.EntityIds, String> ENTITY_TYPE_NAME = createField(DSL.name("eid_entitytypename"), SQLDataType.VARCHAR(64).nullable(false), this, "");
059
060    /**
061     * The column <code>entityids.eid_lastentityid</code>.
062     */
063    public final TableField<com.echothree.model.jooq.server.records.core.EntityIds, Long> LAST_ENTITY = createField(DSL.name("eid_lastentityid"), SQLDataType.BIGINT.nullable(false), this, "");
064
065    private EntityIds(Name alias, Table<com.echothree.model.jooq.server.records.core.EntityIds> aliased) {
066        this(alias, aliased, (Field<?>[]) null, null);
067    }
068
069    private EntityIds(Name alias, Table<com.echothree.model.jooq.server.records.core.EntityIds> aliased, Field<?>[] parameters, Condition where) {
070        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
071    }
072
073    /**
074     * Create an aliased <code>entityids</code> table reference
075     */
076    public EntityIds(String alias) {
077        this(DSL.name(alias), EntityIds);
078    }
079
080    /**
081     * Create an aliased <code>entityids</code> table reference
082     */
083    public EntityIds(Name alias) {
084        this(alias, EntityIds);
085    }
086
087    /**
088     * Create a <code>entityids</code> table reference
089     */
090    public EntityIds() {
091        this(DSL.name("entityids"), null);
092    }
093
094    @Override
095    public UniqueKey<com.echothree.model.jooq.server.records.core.EntityIds> getPrimaryKey() {
096        return KeyRegistry.ENTITY_IDS_PK;
097    }
098
099    @Override
100    public EntityIds as(String alias) {
101        return new EntityIds(DSL.name(alias), this);
102    }
103
104    @Override
105    public EntityIds as(Name alias) {
106        return new EntityIds(alias, this);
107    }
108
109    @Override
110    public EntityIds as(Table<?> alias) {
111        return new EntityIds(alias.getQualifiedName(), this);
112    }
113
114    /**
115     * Rename this table
116     */
117    @Override
118    public EntityIds rename(String name) {
119        return new EntityIds(DSL.name(name), null);
120    }
121
122    /**
123     * Rename this table
124     */
125    @Override
126    public EntityIds rename(Name name) {
127        return new EntityIds(name, null);
128    }
129
130    /**
131     * Rename this table
132     */
133    @Override
134    public EntityIds rename(Table<?> name) {
135        return new EntityIds(name.getQualifiedName(), null);
136    }
137
138    /**
139     * Create an inline derived table from this table
140     */
141    @Override
142    public EntityIds where(Condition condition) {
143        return new EntityIds(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
144    }
145
146    /**
147     * Create an inline derived table from this table
148     */
149    @Override
150    public EntityIds where(Collection<? extends Condition> conditions) {
151        return where(DSL.and(conditions));
152    }
153
154    /**
155     * Create an inline derived table from this table
156     */
157    @Override
158    public EntityIds where(Condition... conditions) {
159        return where(DSL.and(conditions));
160    }
161
162    /**
163     * Create an inline derived table from this table
164     */
165    @Override
166    public EntityIds where(Field<Boolean> condition) {
167        return where(DSL.condition(condition));
168    }
169
170    /**
171     * Create an inline derived table from this table
172     */
173    @Override
174    @PlainSQL
175    public EntityIds where(SQL condition) {
176        return where(DSL.condition(condition));
177    }
178
179    /**
180     * Create an inline derived table from this table
181     */
182    @Override
183    @PlainSQL
184    public EntityIds where(@Stringly.SQL String condition) {
185        return where(DSL.condition(condition));
186    }
187
188    /**
189     * Create an inline derived table from this table
190     */
191    @Override
192    @PlainSQL
193    public EntityIds where(@Stringly.SQL String condition, Object... binds) {
194        return where(DSL.condition(condition, binds));
195    }
196
197    /**
198     * Create an inline derived table from this table
199     */
200    @Override
201    @PlainSQL
202    public EntityIds where(@Stringly.SQL String condition, QueryPart... parts) {
203        return where(DSL.condition(condition, parts));
204    }
205
206    /**
207     * Create an inline derived table from this table
208     */
209    @Override
210    public EntityIds whereExists(TableLike<?> select) {
211        return where(DSL.exists(select));
212    }
213
214    /**
215     * Create an inline derived table from this table
216     */
217    @Override
218    public EntityIds whereNotExists(TableLike<?> select) {
219        return where(DSL.notExists(select));
220    }
221}