001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.graphql;
005
006
007import com.echothree.model.data.graphql.common.pk.IdempotentResponsePK;
008import com.echothree.model.data.user.common.pk.UserVisitPK;
009import com.echothree.model.jooq.server.KeyRegistry;
010import com.echothree.model.jooq.server.tables.user.UserVisits.UserVisitsPath;
011
012import java.util.Arrays;
013import java.util.Collection;
014import java.util.List;
015
016import org.jooq.Condition;
017import org.jooq.Converter;
018import org.jooq.Field;
019import org.jooq.ForeignKey;
020import org.jooq.Name;
021import org.jooq.PlainSQL;
022import org.jooq.QueryPart;
023import org.jooq.SQL;
024import org.jooq.Stringly;
025import org.jooq.Table;
026import org.jooq.TableField;
027import org.jooq.TableLike;
028import org.jooq.TableOptions;
029import org.jooq.UniqueKey;
030import org.jooq.impl.DSL;
031import org.jooq.impl.Internal;
032import org.jooq.impl.SQLDataType;
033import org.jooq.impl.TableImpl;
034
035
036/**
037 * This class is generated by jOOQ.
038 */
039@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
040public class IdempotentResponses extends TableImpl<com.echothree.model.jooq.server.records.graphql.IdempotentResponses> {
041
042    private static final long serialVersionUID = 1L;
043
044    /**
045     * The reference instance of <code>idempotentresponses</code>
046     */
047    public static final IdempotentResponses IdempotentResponses = new IdempotentResponses();
048
049    /**
050     * The class holding records for this type
051     */
052    @Override
053    public Class<com.echothree.model.jooq.server.records.graphql.IdempotentResponses> getRecordType() {
054        return com.echothree.model.jooq.server.records.graphql.IdempotentResponses.class;
055    }
056
057    /**
058     * The column <code>idempotentresponses.idmprsp_idempotentresponseid</code>.
059     */
060    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, IdempotentResponsePK> IDEMPOTENT_RESPONSE = createField(DSL.name("idmprsp_idempotentresponseid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, IdempotentResponsePK.class, id -> new com.echothree.model.data.graphql.common.pk.IdempotentResponsePK(id), primaryKey -> primaryKey.getEntityId()));
061
062    /**
063     * The column <code>idempotentresponses.idmprsp_uvis_uservisitid</code>.
064     */
065    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, UserVisitPK> USER_VISIT = createField(DSL.name("idmprsp_uvis_uservisitid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, UserVisitPK.class, id -> new com.echothree.model.data.user.common.pk.UserVisitPK(id), primaryKey -> primaryKey.getEntityId()));
066
067    /**
068     * The column <code>idempotentresponses.idmprsp_idempotencykeyhash</code>.
069     */
070    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, String> IDEMPOTENCY_KEY_HASH = createField(DSL.name("idmprsp_idempotencykeyhash"), SQLDataType.VARCHAR(44).nullable(false), this, "");
071
072    /**
073     * The column <code>idempotentresponses.idmprsp_queryhash</code>.
074     */
075    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, String> QUERY_HASH = createField(DSL.name("idmprsp_queryhash"), SQLDataType.VARCHAR(44).nullable(false), this, "");
076
077    /**
078     * The column <code>idempotentresponses.idmprsp_variableshash</code>.
079     */
080    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, String> VARIABLES_HASH = createField(DSL.name("idmprsp_variableshash"), SQLDataType.VARCHAR(44), this, "");
081
082    /**
083     * The column <code>idempotentresponses.idmprsp_operationnamehash</code>.
084     */
085    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, String> OPERATION_NAME_HASH = createField(DSL.name("idmprsp_operationnamehash"), SQLDataType.VARCHAR(44), this, "");
086
087    /**
088     * The column <code>idempotentresponses.idmprsp_starttime</code>.
089     */
090    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, Long> START_TIME = createField(DSL.name("idmprsp_starttime"), SQLDataType.BIGINT.nullable(false), this, "");
091
092    /**
093     * The column <code>idempotentresponses.idmprsp_completedtime</code>.
094     */
095    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, Long> COMPLETED_TIME = createField(DSL.name("idmprsp_completedtime"), SQLDataType.BIGINT, this, "");
096
097    /**
098     * The column <code>idempotentresponses.idmprsp_response</code>.
099     */
100    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, String> RESPONSE = createField(DSL.name("idmprsp_response"), SQLDataType.CLOB, this, "");
101
102    /**
103     * The column <code>idempotentresponses.idmprsp_retainuntiltime</code>.
104     */
105    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, Long> RETAIN_UNTIL_TIME = createField(DSL.name("idmprsp_retainuntiltime"), SQLDataType.BIGINT, this, "");
106
107    /**
108     * The column <code>idempotentresponses.idmprsp_initializationvector</code>.
109     */
110    public final TableField<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, String> INITIALIZATION_VECTOR = createField(DSL.name("idmprsp_initializationvector"), SQLDataType.VARCHAR(200).nullable(false), this, "");
111
112    private IdempotentResponses(Name alias, Table<com.echothree.model.jooq.server.records.graphql.IdempotentResponses> aliased) {
113        this(alias, aliased, (Field<?>[]) null, null);
114    }
115
116    private IdempotentResponses(Name alias, Table<com.echothree.model.jooq.server.records.graphql.IdempotentResponses> aliased, Field<?>[] parameters, Condition where) {
117        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
118    }
119
120    /**
121     * Create an aliased <code>idempotentresponses</code> table reference
122     */
123    public IdempotentResponses(String alias) {
124        this(DSL.name(alias), IdempotentResponses);
125    }
126
127    /**
128     * Create an aliased <code>idempotentresponses</code> table reference
129     */
130    public IdempotentResponses(Name alias) {
131        this(alias, IdempotentResponses);
132    }
133
134    /**
135     * Create a <code>idempotentresponses</code> table reference
136     */
137    public IdempotentResponses() {
138        this(DSL.name("idempotentresponses"), null);
139    }
140
141    @Override
142    public UniqueKey<com.echothree.model.jooq.server.records.graphql.IdempotentResponses> getPrimaryKey() {
143        return KeyRegistry.IDEMPOTENT_RESPONSES_PK;
144    }
145
146    @Override
147    public List<UniqueKey<com.echothree.model.jooq.server.records.graphql.IdempotentResponses>> getUniqueKeys() {
148        return Arrays.asList(KeyRegistry.IDEMPOTENT_RESPONSES_USER_VISIT_AND_IDEMPOTENCY_KEY_HASH_UK);
149    }
150
151    @Override
152    public List<ForeignKey<com.echothree.model.jooq.server.records.graphql.IdempotentResponses, ?>> getReferences() {
153        return Arrays.asList(KeyRegistry.IDEMPOTENT_RESPONSES_USER_VISIT_FK);
154    }
155
156    private transient UserVisitsPath _idmprsp_uvis_uservisitid_fk;
157
158    /**
159     * Get the implicit join path to the <code>uservisits</code> table.
160     */
161    public UserVisitsPath idmprsp_uvis_uservisitid_fk() {
162        if (_idmprsp_uvis_uservisitid_fk == null)
163            _idmprsp_uvis_uservisitid_fk = new UserVisitsPath(this, KeyRegistry.IDEMPOTENT_RESPONSES_USER_VISIT_FK, null);
164
165        return _idmprsp_uvis_uservisitid_fk;
166    }
167
168    @Override
169    public IdempotentResponses as(String alias) {
170        return new IdempotentResponses(DSL.name(alias), this);
171    }
172
173    @Override
174    public IdempotentResponses as(Name alias) {
175        return new IdempotentResponses(alias, this);
176    }
177
178    @Override
179    public IdempotentResponses as(Table<?> alias) {
180        return new IdempotentResponses(alias.getQualifiedName(), this);
181    }
182
183    /**
184     * Rename this table
185     */
186    @Override
187    public IdempotentResponses rename(String name) {
188        return new IdempotentResponses(DSL.name(name), null);
189    }
190
191    /**
192     * Rename this table
193     */
194    @Override
195    public IdempotentResponses rename(Name name) {
196        return new IdempotentResponses(name, null);
197    }
198
199    /**
200     * Rename this table
201     */
202    @Override
203    public IdempotentResponses rename(Table<?> name) {
204        return new IdempotentResponses(name.getQualifiedName(), null);
205    }
206
207    /**
208     * Create an inline derived table from this table
209     */
210    @Override
211    public IdempotentResponses where(Condition condition) {
212        return new IdempotentResponses(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 IdempotentResponses 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 IdempotentResponses 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 IdempotentResponses 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 IdempotentResponses 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 IdempotentResponses 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 IdempotentResponses 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 IdempotentResponses 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 IdempotentResponses 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 IdempotentResponses whereNotExists(TableLike<?> select) {
288        return where(DSL.notExists(select));
289    }
290}