001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.search;
005
006
007import com.echothree.model.data.core.common.pk.EntityInstancePK;
008import com.echothree.model.data.search.common.pk.SearchPK;
009import com.echothree.model.data.search.common.pk.SearchResultActionPK;
010import com.echothree.model.data.search.common.pk.SearchResultActionTypePK;
011import com.echothree.model.jooq.server.KeyRegistry;
012import com.echothree.model.jooq.server.tables.core.EntityInstances.EntityInstancesPath;
013import com.echothree.model.jooq.server.tables.search.SearchResultActionTypes.SearchResultActionTypesPath;
014import com.echothree.model.jooq.server.tables.search.Searches.SearchesPath;
015
016import java.util.Arrays;
017import java.util.Collection;
018import java.util.List;
019
020import org.jooq.Condition;
021import org.jooq.Converter;
022import org.jooq.Field;
023import org.jooq.ForeignKey;
024import org.jooq.Name;
025import org.jooq.PlainSQL;
026import org.jooq.QueryPart;
027import org.jooq.SQL;
028import org.jooq.Stringly;
029import org.jooq.Table;
030import org.jooq.TableField;
031import org.jooq.TableLike;
032import org.jooq.TableOptions;
033import org.jooq.UniqueKey;
034import org.jooq.impl.DSL;
035import org.jooq.impl.Internal;
036import org.jooq.impl.SQLDataType;
037import org.jooq.impl.TableImpl;
038
039
040/**
041 * This class is generated by jOOQ.
042 */
043@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
044public class SearchResultActions extends TableImpl<com.echothree.model.jooq.server.records.search.SearchResultActions> {
045
046    private static final long serialVersionUID = 1L;
047
048    /**
049     * The reference instance of <code>searchresultactions</code>
050     */
051    public static final SearchResultActions SearchResultActions = new SearchResultActions();
052
053    /**
054     * The class holding records for this type
055     */
056    @Override
057    public Class<com.echothree.model.jooq.server.records.search.SearchResultActions> getRecordType() {
058        return com.echothree.model.jooq.server.records.search.SearchResultActions.class;
059    }
060
061    /**
062     * The column
063     * <code>searchresultactions.srchract_searchresultactionid</code>.
064     */
065    public final TableField<com.echothree.model.jooq.server.records.search.SearchResultActions, SearchResultActionPK> SEARCH_RESULT_ACTION = createField(DSL.name("srchract_searchresultactionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SearchResultActionPK.class, id -> new com.echothree.model.data.search.common.pk.SearchResultActionPK(id), primaryKey -> primaryKey.getEntityId()));
066
067    /**
068     * The column <code>searchresultactions.srchract_srch_searchid</code>.
069     */
070    public final TableField<com.echothree.model.jooq.server.records.search.SearchResultActions, SearchPK> SEARCH = createField(DSL.name("srchract_srch_searchid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SearchPK.class, id -> new com.echothree.model.data.search.common.pk.SearchPK(id), primaryKey -> primaryKey.getEntityId()));
071
072    /**
073     * The column
074     * <code>searchresultactions.srchract_srchracttyp_searchresultactiontypeid</code>.
075     */
076    public final TableField<com.echothree.model.jooq.server.records.search.SearchResultActions, SearchResultActionTypePK> SEARCH_RESULT_ACTION_TYPE = createField(DSL.name("srchract_srchracttyp_searchresultactiontypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SearchResultActionTypePK.class, id -> new com.echothree.model.data.search.common.pk.SearchResultActionTypePK(id), primaryKey -> primaryKey.getEntityId()));
077
078    /**
079     * The column <code>searchresultactions.srchract_actiontime</code>.
080     */
081    public final TableField<com.echothree.model.jooq.server.records.search.SearchResultActions, Long> ACTION_TIME = createField(DSL.name("srchract_actiontime"), SQLDataType.BIGINT.nullable(false), this, "");
082
083    /**
084     * The column
085     * <code>searchresultactions.srchract_eni_entityinstanceid</code>.
086     */
087    public final TableField<com.echothree.model.jooq.server.records.search.SearchResultActions, EntityInstancePK> ENTITY_INSTANCE = createField(DSL.name("srchract_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()));
088
089    /**
090     * The column <code>searchresultactions.srchract_fromtime</code>.
091     */
092    public final TableField<com.echothree.model.jooq.server.records.search.SearchResultActions, Long> FROM_TIME = createField(DSL.name("srchract_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
093
094    /**
095     * The column <code>searchresultactions.srchract_thrutime</code>.
096     */
097    public final TableField<com.echothree.model.jooq.server.records.search.SearchResultActions, Long> THRU_TIME = createField(DSL.name("srchract_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
098
099    private SearchResultActions(Name alias, Table<com.echothree.model.jooq.server.records.search.SearchResultActions> aliased) {
100        this(alias, aliased, (Field<?>[]) null, null);
101    }
102
103    private SearchResultActions(Name alias, Table<com.echothree.model.jooq.server.records.search.SearchResultActions> aliased, Field<?>[] parameters, Condition where) {
104        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
105    }
106
107    /**
108     * Create an aliased <code>searchresultactions</code> table reference
109     */
110    public SearchResultActions(String alias) {
111        this(DSL.name(alias), SearchResultActions);
112    }
113
114    /**
115     * Create an aliased <code>searchresultactions</code> table reference
116     */
117    public SearchResultActions(Name alias) {
118        this(alias, SearchResultActions);
119    }
120
121    /**
122     * Create a <code>searchresultactions</code> table reference
123     */
124    public SearchResultActions() {
125        this(DSL.name("searchresultactions"), null);
126    }
127
128    @Override
129    public UniqueKey<com.echothree.model.jooq.server.records.search.SearchResultActions> getPrimaryKey() {
130        return KeyRegistry.SEARCH_RESULT_ACTIONS_PK;
131    }
132
133    @Override
134    public List<UniqueKey<com.echothree.model.jooq.server.records.search.SearchResultActions>> getUniqueKeys() {
135        return Arrays.asList(KeyRegistry.SEARCH_RESULT_ACTIONS_SEARCH_AND_SEARCH_RESULT_ACTION_TYPE_AND_ENTITY_INSTANCE_AND_THRU_TIME_UK);
136    }
137
138    @Override
139    public List<ForeignKey<com.echothree.model.jooq.server.records.search.SearchResultActions, ?>> getReferences() {
140        return Arrays.asList(KeyRegistry.SEARCH_RESULT_ACTIONS_ENTITY_INSTANCE_FK, KeyRegistry.SEARCH_RESULT_ACTIONS_SEARCH_FK, KeyRegistry.SEARCH_RESULT_ACTIONS_SEARCH_RESULT_ACTION_TYPE_FK);
141    }
142
143    private transient EntityInstancesPath _srchract_eni_entityinstanceid_fk;
144
145    /**
146     * Get the implicit join path to the <code>entityinstances</code> table.
147     */
148    public EntityInstancesPath srchract_eni_entityinstanceid_fk() {
149        if (_srchract_eni_entityinstanceid_fk == null)
150            _srchract_eni_entityinstanceid_fk = new EntityInstancesPath(this, KeyRegistry.SEARCH_RESULT_ACTIONS_ENTITY_INSTANCE_FK, null);
151
152        return _srchract_eni_entityinstanceid_fk;
153    }
154
155    private transient SearchesPath _srchract_srch_searchid_fk;
156
157    /**
158     * Get the implicit join path to the <code>searches</code> table.
159     */
160    public SearchesPath srchract_srch_searchid_fk() {
161        if (_srchract_srch_searchid_fk == null)
162            _srchract_srch_searchid_fk = new SearchesPath(this, KeyRegistry.SEARCH_RESULT_ACTIONS_SEARCH_FK, null);
163
164        return _srchract_srch_searchid_fk;
165    }
166
167    private transient SearchResultActionTypesPath _srchract_srchracttyp_searchresultactiontypeid_fk;
168
169    /**
170     * Get the implicit join path to the <code>searchresultactiontypes</code>
171     * table.
172     */
173    public SearchResultActionTypesPath srchract_srchracttyp_searchresultactiontypeid_fk() {
174        if (_srchract_srchracttyp_searchresultactiontypeid_fk == null)
175            _srchract_srchracttyp_searchresultactiontypeid_fk = new SearchResultActionTypesPath(this, KeyRegistry.SEARCH_RESULT_ACTIONS_SEARCH_RESULT_ACTION_TYPE_FK, null);
176
177        return _srchract_srchracttyp_searchresultactiontypeid_fk;
178    }
179
180    @Override
181    public SearchResultActions as(String alias) {
182        return new SearchResultActions(DSL.name(alias), this);
183    }
184
185    @Override
186    public SearchResultActions as(Name alias) {
187        return new SearchResultActions(alias, this);
188    }
189
190    @Override
191    public SearchResultActions as(Table<?> alias) {
192        return new SearchResultActions(alias.getQualifiedName(), this);
193    }
194
195    /**
196     * Rename this table
197     */
198    @Override
199    public SearchResultActions rename(String name) {
200        return new SearchResultActions(DSL.name(name), null);
201    }
202
203    /**
204     * Rename this table
205     */
206    @Override
207    public SearchResultActions rename(Name name) {
208        return new SearchResultActions(name, null);
209    }
210
211    /**
212     * Rename this table
213     */
214    @Override
215    public SearchResultActions rename(Table<?> name) {
216        return new SearchResultActions(name.getQualifiedName(), null);
217    }
218
219    /**
220     * Create an inline derived table from this table
221     */
222    @Override
223    public SearchResultActions where(Condition condition) {
224        return new SearchResultActions(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
225    }
226
227    /**
228     * Create an inline derived table from this table
229     */
230    @Override
231    public SearchResultActions where(Collection<? extends Condition> conditions) {
232        return where(DSL.and(conditions));
233    }
234
235    /**
236     * Create an inline derived table from this table
237     */
238    @Override
239    public SearchResultActions where(Condition... conditions) {
240        return where(DSL.and(conditions));
241    }
242
243    /**
244     * Create an inline derived table from this table
245     */
246    @Override
247    public SearchResultActions where(Field<Boolean> condition) {
248        return where(DSL.condition(condition));
249    }
250
251    /**
252     * Create an inline derived table from this table
253     */
254    @Override
255    @PlainSQL
256    public SearchResultActions where(SQL condition) {
257        return where(DSL.condition(condition));
258    }
259
260    /**
261     * Create an inline derived table from this table
262     */
263    @Override
264    @PlainSQL
265    public SearchResultActions where(@Stringly.SQL String condition) {
266        return where(DSL.condition(condition));
267    }
268
269    /**
270     * Create an inline derived table from this table
271     */
272    @Override
273    @PlainSQL
274    public SearchResultActions where(@Stringly.SQL String condition, Object... binds) {
275        return where(DSL.condition(condition, binds));
276    }
277
278    /**
279     * Create an inline derived table from this table
280     */
281    @Override
282    @PlainSQL
283    public SearchResultActions where(@Stringly.SQL String condition, QueryPart... parts) {
284        return where(DSL.condition(condition, parts));
285    }
286
287    /**
288     * Create an inline derived table from this table
289     */
290    @Override
291    public SearchResultActions whereExists(TableLike<?> select) {
292        return where(DSL.exists(select));
293    }
294
295    /**
296     * Create an inline derived table from this table
297     */
298    @Override
299    public SearchResultActions whereNotExists(TableLike<?> select) {
300        return where(DSL.notExists(select));
301    }
302}