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