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.InventoryDispositionDetailPK;
008import com.echothree.model.data.inventory.common.pk.InventoryDispositionPK;
009import com.echothree.model.data.inventory.common.pk.InventoryTransactionTypePK;
010import com.echothree.model.jooq.server.KeyRegistry;
011import com.echothree.model.jooq.server.tables.inventory.InventoryDispositions.InventoryDispositionsPath;
012import com.echothree.model.jooq.server.tables.inventory.InventoryTransactionTypes.InventoryTransactionTypesPath;
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.InverseForeignKey;
023import org.jooq.Name;
024import org.jooq.Path;
025import org.jooq.PlainSQL;
026import org.jooq.QueryPart;
027import org.jooq.Record;
028import org.jooq.SQL;
029import org.jooq.Stringly;
030import org.jooq.Table;
031import org.jooq.TableField;
032import org.jooq.TableLike;
033import org.jooq.TableOptions;
034import org.jooq.UniqueKey;
035import org.jooq.impl.DSL;
036import org.jooq.impl.Internal;
037import org.jooq.impl.SQLDataType;
038import org.jooq.impl.TableImpl;
039
040
041/**
042 * This class is generated by jOOQ.
043 */
044@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
045public class InventoryDispositionDetails extends TableImpl<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> {
046
047    private static final long serialVersionUID = 1L;
048
049    /**
050     * The reference instance of <code>inventorydispositiondetails</code>
051     */
052    public static final InventoryDispositionDetails InventoryDispositionDetails = new InventoryDispositionDetails();
053
054    /**
055     * The class holding records for this type
056     */
057    @Override
058    public Class<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> getRecordType() {
059        return com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails.class;
060    }
061
062    /**
063     * The column
064     * <code>inventorydispositiondetails.invdspdt_inventorydispositiondetailid</code>.
065     */
066    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails, InventoryDispositionDetailPK> INVENTORY_DISPOSITION_DETAIL = createField(DSL.name("invdspdt_inventorydispositiondetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryDispositionDetailPK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryDispositionDetailPK(id), primaryKey -> primaryKey.getEntityId()));
067
068    /**
069     * The column
070     * <code>inventorydispositiondetails.invdspdt_invdsp_inventorydispositionid</code>.
071     */
072    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails, InventoryDispositionPK> INVENTORY_DISPOSITION = createField(DSL.name("invdspdt_invdsp_inventorydispositionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryDispositionPK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryDispositionPK(id), primaryKey -> primaryKey.getEntityId()));
073
074    /**
075     * The column
076     * <code>inventorydispositiondetails.invdspdt_invtrxtyp_inventorytransactiontypeid</code>.
077     */
078    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails, InventoryTransactionTypePK> INVENTORY_TRANSACTION_TYPE = createField(DSL.name("invdspdt_invtrxtyp_inventorytransactiontypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryTransactionTypePK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryTransactionTypePK(id), primaryKey -> primaryKey.getEntityId()));
079
080    /**
081     * The column
082     * <code>inventorydispositiondetails.invdspdt_inventorydispositionname</code>.
083     */
084    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails, String> INVENTORY_DISPOSITION_NAME = createField(DSL.name("invdspdt_inventorydispositionname"), SQLDataType.VARCHAR(40).nullable(false), this, "");
085
086    /**
087     * The column <code>inventorydispositiondetails.invdspdt_isdefault</code>.
088     */
089    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails, Boolean> IS_DEFAULT = createField(DSL.name("invdspdt_isdefault"), SQLDataType.BIT.nullable(false), this, "");
090
091    /**
092     * The column <code>inventorydispositiondetails.invdspdt_sortorder</code>.
093     */
094    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails, Integer> SORT_ORDER = createField(DSL.name("invdspdt_sortorder"), SQLDataType.INTEGER.nullable(false), this, "");
095
096    /**
097     * The column <code>inventorydispositiondetails.invdspdt_fromtime</code>.
098     */
099    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails, Long> FROM_TIME = createField(DSL.name("invdspdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
100
101    /**
102     * The column <code>inventorydispositiondetails.invdspdt_thrutime</code>.
103     */
104    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails, Long> THRU_TIME = createField(DSL.name("invdspdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
105
106    private InventoryDispositionDetails(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> aliased) {
107        this(alias, aliased, (Field<?>[]) null, null);
108    }
109
110    private InventoryDispositionDetails(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> aliased, Field<?>[] parameters, Condition where) {
111        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
112    }
113
114    /**
115     * Create an aliased <code>inventorydispositiondetails</code> table
116     * reference
117     */
118    public InventoryDispositionDetails(String alias) {
119        this(DSL.name(alias), InventoryDispositionDetails);
120    }
121
122    /**
123     * Create an aliased <code>inventorydispositiondetails</code> table
124     * reference
125     */
126    public InventoryDispositionDetails(Name alias) {
127        this(alias, InventoryDispositionDetails);
128    }
129
130    /**
131     * Create a <code>inventorydispositiondetails</code> table reference
132     */
133    public InventoryDispositionDetails() {
134        this(DSL.name("inventorydispositiondetails"), null);
135    }
136
137    public <O extends Record> InventoryDispositionDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> parentPath) {
138        super(path, childPath, parentPath, InventoryDispositionDetails);
139    }
140
141    /**
142     * A subtype implementing {@link Path} for simplified path-based joins.
143     */
144    public static class InventoryDispositionDetailsPath extends InventoryDispositionDetails implements Path<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> {
145
146        private static final long serialVersionUID = 1L;
147        public <O extends Record> InventoryDispositionDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> parentPath) {
148            super(path, childPath, parentPath);
149        }
150        private InventoryDispositionDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> aliased) {
151            super(alias, aliased);
152        }
153
154        @Override
155        public InventoryDispositionDetailsPath as(String alias) {
156            return new InventoryDispositionDetailsPath(DSL.name(alias), this);
157        }
158
159        @Override
160        public InventoryDispositionDetailsPath as(Name alias) {
161            return new InventoryDispositionDetailsPath(alias, this);
162        }
163
164        @Override
165        public InventoryDispositionDetailsPath as(Table<?> alias) {
166            return new InventoryDispositionDetailsPath(alias.getQualifiedName(), this);
167        }
168    }
169
170    @Override
171    public UniqueKey<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails> getPrimaryKey() {
172        return KeyRegistry.INVENTORY_DISPOSITION_DETAILS_PK;
173    }
174
175    @Override
176    public List<UniqueKey<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails>> getUniqueKeys() {
177        return Arrays.asList(KeyRegistry.INVENTORY_DISPOSITION_DETAILS_INVENTORY_DISPOSITION_AND_THRU_TIME_UK, KeyRegistry.INVENTORY_DISPOSITION_DETAILS_INVENTORY_TRANSACTION_TYPE_AND_INVENTORY_DISPOSITION_NAME_AND_THRU_TIME_UK);
178    }
179
180    @Override
181    public List<ForeignKey<com.echothree.model.jooq.server.records.inventory.InventoryDispositionDetails, ?>> getReferences() {
182        return Arrays.asList(KeyRegistry.INVENTORY_DISPOSITION_DETAILS_INVENTORY_DISPOSITION_FK, KeyRegistry.INVENTORY_DISPOSITION_DETAILS_INVENTORY_TRANSACTION_TYPE_FK);
183    }
184
185    private transient InventoryDispositionsPath _invdspdt_invdsp_inventorydispositionid_fk;
186
187    /**
188     * Get the implicit join path to the <code>inventorydispositions</code>
189     * table.
190     */
191    public InventoryDispositionsPath invdspdt_invdsp_inventorydispositionid_fk() {
192        if (_invdspdt_invdsp_inventorydispositionid_fk == null)
193            _invdspdt_invdsp_inventorydispositionid_fk = new InventoryDispositionsPath(this, KeyRegistry.INVENTORY_DISPOSITION_DETAILS_INVENTORY_DISPOSITION_FK, null);
194
195        return _invdspdt_invdsp_inventorydispositionid_fk;
196    }
197
198    private transient InventoryTransactionTypesPath _invdspdt_invtrxtyp_inventorytransactiontypeid_fk;
199
200    /**
201     * Get the implicit join path to the <code>inventorytransactiontypes</code>
202     * table.
203     */
204    public InventoryTransactionTypesPath invdspdt_invtrxtyp_inventorytransactiontypeid_fk() {
205        if (_invdspdt_invtrxtyp_inventorytransactiontypeid_fk == null)
206            _invdspdt_invtrxtyp_inventorytransactiontypeid_fk = new InventoryTransactionTypesPath(this, KeyRegistry.INVENTORY_DISPOSITION_DETAILS_INVENTORY_TRANSACTION_TYPE_FK, null);
207
208        return _invdspdt_invtrxtyp_inventorytransactiontypeid_fk;
209    }
210
211    @Override
212    public InventoryDispositionDetails as(String alias) {
213        return new InventoryDispositionDetails(DSL.name(alias), this);
214    }
215
216    @Override
217    public InventoryDispositionDetails as(Name alias) {
218        return new InventoryDispositionDetails(alias, this);
219    }
220
221    @Override
222    public InventoryDispositionDetails as(Table<?> alias) {
223        return new InventoryDispositionDetails(alias.getQualifiedName(), this);
224    }
225
226    /**
227     * Rename this table
228     */
229    @Override
230    public InventoryDispositionDetails rename(String name) {
231        return new InventoryDispositionDetails(DSL.name(name), null);
232    }
233
234    /**
235     * Rename this table
236     */
237    @Override
238    public InventoryDispositionDetails rename(Name name) {
239        return new InventoryDispositionDetails(name, null);
240    }
241
242    /**
243     * Rename this table
244     */
245    @Override
246    public InventoryDispositionDetails rename(Table<?> name) {
247        return new InventoryDispositionDetails(name.getQualifiedName(), null);
248    }
249
250    /**
251     * Create an inline derived table from this table
252     */
253    @Override
254    public InventoryDispositionDetails where(Condition condition) {
255        return new InventoryDispositionDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
256    }
257
258    /**
259     * Create an inline derived table from this table
260     */
261    @Override
262    public InventoryDispositionDetails where(Collection<? extends Condition> conditions) {
263        return where(DSL.and(conditions));
264    }
265
266    /**
267     * Create an inline derived table from this table
268     */
269    @Override
270    public InventoryDispositionDetails where(Condition... conditions) {
271        return where(DSL.and(conditions));
272    }
273
274    /**
275     * Create an inline derived table from this table
276     */
277    @Override
278    public InventoryDispositionDetails where(Field<Boolean> condition) {
279        return where(DSL.condition(condition));
280    }
281
282    /**
283     * Create an inline derived table from this table
284     */
285    @Override
286    @PlainSQL
287    public InventoryDispositionDetails where(SQL condition) {
288        return where(DSL.condition(condition));
289    }
290
291    /**
292     * Create an inline derived table from this table
293     */
294    @Override
295    @PlainSQL
296    public InventoryDispositionDetails where(@Stringly.SQL String condition) {
297        return where(DSL.condition(condition));
298    }
299
300    /**
301     * Create an inline derived table from this table
302     */
303    @Override
304    @PlainSQL
305    public InventoryDispositionDetails where(@Stringly.SQL String condition, Object... binds) {
306        return where(DSL.condition(condition, binds));
307    }
308
309    /**
310     * Create an inline derived table from this table
311     */
312    @Override
313    @PlainSQL
314    public InventoryDispositionDetails where(@Stringly.SQL String condition, QueryPart... parts) {
315        return where(DSL.condition(condition, parts));
316    }
317
318    /**
319     * Create an inline derived table from this table
320     */
321    @Override
322    public InventoryDispositionDetails whereExists(TableLike<?> select) {
323        return where(DSL.exists(select));
324    }
325
326    /**
327     * Create an inline derived table from this table
328     */
329    @Override
330    public InventoryDispositionDetails whereNotExists(TableLike<?> select) {
331        return where(DSL.notExists(select));
332    }
333}