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.InventoryConditionPK;
008import com.echothree.model.data.inventory.common.pk.InventoryCostingPoolDetailPK;
009import com.echothree.model.data.inventory.common.pk.InventoryCostingPoolPK;
010import com.echothree.model.data.item.common.pk.ItemPK;
011import com.echothree.model.data.party.common.pk.PartyPK;
012import com.echothree.model.jooq.server.KeyRegistry;
013import com.echothree.model.jooq.server.tables.inventory.InventoryConditions.InventoryConditionsPath;
014import com.echothree.model.jooq.server.tables.inventory.InventoryCostingPools.InventoryCostingPoolsPath;
015import com.echothree.model.jooq.server.tables.item.Items.ItemsPath;
016import com.echothree.model.jooq.server.tables.party.Parties.PartiesPath;
017
018import java.util.Arrays;
019import java.util.Collection;
020import java.util.List;
021
022import org.jooq.Condition;
023import org.jooq.Converter;
024import org.jooq.Field;
025import org.jooq.ForeignKey;
026import org.jooq.InverseForeignKey;
027import org.jooq.Name;
028import org.jooq.Path;
029import org.jooq.PlainSQL;
030import org.jooq.QueryPart;
031import org.jooq.Record;
032import org.jooq.SQL;
033import org.jooq.Stringly;
034import org.jooq.Table;
035import org.jooq.TableField;
036import org.jooq.TableLike;
037import org.jooq.TableOptions;
038import org.jooq.UniqueKey;
039import org.jooq.impl.DSL;
040import org.jooq.impl.Internal;
041import org.jooq.impl.SQLDataType;
042import org.jooq.impl.TableImpl;
043
044
045/**
046 * This class is generated by jOOQ.
047 */
048@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
049public class InventoryCostingPoolDetails extends TableImpl<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> {
050
051    private static final long serialVersionUID = 1L;
052
053    /**
054     * The reference instance of <code>inventorycostingpooldetails</code>
055     */
056    public static final InventoryCostingPoolDetails InventoryCostingPoolDetails = new InventoryCostingPoolDetails();
057
058    /**
059     * The class holding records for this type
060     */
061    @Override
062    public Class<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> getRecordType() {
063        return com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails.class;
064    }
065
066    /**
067     * The column
068     * <code>inventorycostingpooldetails.invcpldt_inventorycostingpooldetailid</code>.
069     */
070    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails, InventoryCostingPoolDetailPK> INVENTORY_COSTING_POOL_DETAIL = createField(DSL.name("invcpldt_inventorycostingpooldetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryCostingPoolDetailPK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryCostingPoolDetailPK(id), primaryKey -> primaryKey.getEntityId()));
071
072    /**
073     * The column
074     * <code>inventorycostingpooldetails.invcpldt_invcpl_inventorycostingpoolid</code>.
075     */
076    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails, InventoryCostingPoolPK> INVENTORY_COSTING_POOL = createField(DSL.name("invcpldt_invcpl_inventorycostingpoolid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryCostingPoolPK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryCostingPoolPK(id), primaryKey -> primaryKey.getEntityId()));
077
078    /**
079     * The column
080     * <code>inventorycostingpooldetails.invcpldt_companypartyid</code>.
081     */
082    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails, PartyPK> COMPANY_PARTY = createField(DSL.name("invcpldt_companypartyid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyPK.class, id -> new com.echothree.model.data.party.common.pk.PartyPK(id), primaryKey -> primaryKey.getEntityId()));
083
084    /**
085     * The column <code>inventorycostingpooldetails.invcpldt_itm_itemid</code>.
086     */
087    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails, ItemPK> ITEM = createField(DSL.name("invcpldt_itm_itemid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemPK.class, id -> new com.echothree.model.data.item.common.pk.ItemPK(id), primaryKey -> primaryKey.getEntityId()));
088
089    /**
090     * The column
091     * <code>inventorycostingpooldetails.invcpldt_invcon_inventoryconditionid</code>.
092     */
093    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails, InventoryConditionPK> INVENTORY_CONDITION = createField(DSL.name("invcpldt_invcon_inventoryconditionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryConditionPK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryConditionPK(id), primaryKey -> primaryKey.getEntityId()));
094
095    /**
096     * The column <code>inventorycostingpooldetails.invcpldt_fromtime</code>.
097     */
098    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails, Long> FROM_TIME = createField(DSL.name("invcpldt_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
099
100    /**
101     * The column <code>inventorycostingpooldetails.invcpldt_thrutime</code>.
102     */
103    public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails, Long> THRU_TIME = createField(DSL.name("invcpldt_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
104
105    private InventoryCostingPoolDetails(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> aliased) {
106        this(alias, aliased, (Field<?>[]) null, null);
107    }
108
109    private InventoryCostingPoolDetails(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> aliased, Field<?>[] parameters, Condition where) {
110        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
111    }
112
113    /**
114     * Create an aliased <code>inventorycostingpooldetails</code> table
115     * reference
116     */
117    public InventoryCostingPoolDetails(String alias) {
118        this(DSL.name(alias), InventoryCostingPoolDetails);
119    }
120
121    /**
122     * Create an aliased <code>inventorycostingpooldetails</code> table
123     * reference
124     */
125    public InventoryCostingPoolDetails(Name alias) {
126        this(alias, InventoryCostingPoolDetails);
127    }
128
129    /**
130     * Create a <code>inventorycostingpooldetails</code> table reference
131     */
132    public InventoryCostingPoolDetails() {
133        this(DSL.name("inventorycostingpooldetails"), null);
134    }
135
136    public <O extends Record> InventoryCostingPoolDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> parentPath) {
137        super(path, childPath, parentPath, InventoryCostingPoolDetails);
138    }
139
140    /**
141     * A subtype implementing {@link Path} for simplified path-based joins.
142     */
143    public static class InventoryCostingPoolDetailsPath extends InventoryCostingPoolDetails implements Path<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> {
144
145        private static final long serialVersionUID = 1L;
146        public <O extends Record> InventoryCostingPoolDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> parentPath) {
147            super(path, childPath, parentPath);
148        }
149        private InventoryCostingPoolDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> aliased) {
150            super(alias, aliased);
151        }
152
153        @Override
154        public InventoryCostingPoolDetailsPath as(String alias) {
155            return new InventoryCostingPoolDetailsPath(DSL.name(alias), this);
156        }
157
158        @Override
159        public InventoryCostingPoolDetailsPath as(Name alias) {
160            return new InventoryCostingPoolDetailsPath(alias, this);
161        }
162
163        @Override
164        public InventoryCostingPoolDetailsPath as(Table<?> alias) {
165            return new InventoryCostingPoolDetailsPath(alias.getQualifiedName(), this);
166        }
167    }
168
169    @Override
170    public UniqueKey<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails> getPrimaryKey() {
171        return KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_PK;
172    }
173
174    @Override
175    public List<UniqueKey<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails>> getUniqueKeys() {
176        return Arrays.asList(KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_INVENTORY_COSTING_POOL_AND_THRU_TIME_UK, KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_COMPANY_PARTY_AND_ITEM_AND_INVENTORY_CONDITION_AND_THRU_TIME_UK);
177    }
178
179    @Override
180    public List<ForeignKey<com.echothree.model.jooq.server.records.inventory.InventoryCostingPoolDetails, ?>> getReferences() {
181        return Arrays.asList(KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_COMPANY_PARTY_FK, KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_INVENTORY_CONDITION_FK, KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_INVENTORY_COSTING_POOL_FK, KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_ITEM_FK);
182    }
183
184    private transient PartiesPath _invcpldt_companypartyid_fk;
185
186    /**
187     * Get the implicit join path to the <code>parties</code> table.
188     */
189    public PartiesPath invcpldt_companypartyid_fk() {
190        if (_invcpldt_companypartyid_fk == null)
191            _invcpldt_companypartyid_fk = new PartiesPath(this, KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_COMPANY_PARTY_FK, null);
192
193        return _invcpldt_companypartyid_fk;
194    }
195
196    private transient InventoryConditionsPath _invcpldt_invcon_inventoryconditionid_fk;
197
198    /**
199     * Get the implicit join path to the <code>inventoryconditions</code> table.
200     */
201    public InventoryConditionsPath invcpldt_invcon_inventoryconditionid_fk() {
202        if (_invcpldt_invcon_inventoryconditionid_fk == null)
203            _invcpldt_invcon_inventoryconditionid_fk = new InventoryConditionsPath(this, KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_INVENTORY_CONDITION_FK, null);
204
205        return _invcpldt_invcon_inventoryconditionid_fk;
206    }
207
208    private transient InventoryCostingPoolsPath _invcpldt_invcpl_inventorycostingpoolid_fk;
209
210    /**
211     * Get the implicit join path to the <code>inventorycostingpools</code>
212     * table.
213     */
214    public InventoryCostingPoolsPath invcpldt_invcpl_inventorycostingpoolid_fk() {
215        if (_invcpldt_invcpl_inventorycostingpoolid_fk == null)
216            _invcpldt_invcpl_inventorycostingpoolid_fk = new InventoryCostingPoolsPath(this, KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_INVENTORY_COSTING_POOL_FK, null);
217
218        return _invcpldt_invcpl_inventorycostingpoolid_fk;
219    }
220
221    private transient ItemsPath _invcpldt_itm_itemid_fk;
222
223    /**
224     * Get the implicit join path to the <code>items</code> table.
225     */
226    public ItemsPath invcpldt_itm_itemid_fk() {
227        if (_invcpldt_itm_itemid_fk == null)
228            _invcpldt_itm_itemid_fk = new ItemsPath(this, KeyRegistry.INVENTORY_COSTING_POOL_DETAILS_ITEM_FK, null);
229
230        return _invcpldt_itm_itemid_fk;
231    }
232
233    @Override
234    public InventoryCostingPoolDetails as(String alias) {
235        return new InventoryCostingPoolDetails(DSL.name(alias), this);
236    }
237
238    @Override
239    public InventoryCostingPoolDetails as(Name alias) {
240        return new InventoryCostingPoolDetails(alias, this);
241    }
242
243    @Override
244    public InventoryCostingPoolDetails as(Table<?> alias) {
245        return new InventoryCostingPoolDetails(alias.getQualifiedName(), this);
246    }
247
248    /**
249     * Rename this table
250     */
251    @Override
252    public InventoryCostingPoolDetails rename(String name) {
253        return new InventoryCostingPoolDetails(DSL.name(name), null);
254    }
255
256    /**
257     * Rename this table
258     */
259    @Override
260    public InventoryCostingPoolDetails rename(Name name) {
261        return new InventoryCostingPoolDetails(name, null);
262    }
263
264    /**
265     * Rename this table
266     */
267    @Override
268    public InventoryCostingPoolDetails rename(Table<?> name) {
269        return new InventoryCostingPoolDetails(name.getQualifiedName(), null);
270    }
271
272    /**
273     * Create an inline derived table from this table
274     */
275    @Override
276    public InventoryCostingPoolDetails where(Condition condition) {
277        return new InventoryCostingPoolDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
278    }
279
280    /**
281     * Create an inline derived table from this table
282     */
283    @Override
284    public InventoryCostingPoolDetails where(Collection<? extends Condition> conditions) {
285        return where(DSL.and(conditions));
286    }
287
288    /**
289     * Create an inline derived table from this table
290     */
291    @Override
292    public InventoryCostingPoolDetails where(Condition... conditions) {
293        return where(DSL.and(conditions));
294    }
295
296    /**
297     * Create an inline derived table from this table
298     */
299    @Override
300    public InventoryCostingPoolDetails where(Field<Boolean> condition) {
301        return where(DSL.condition(condition));
302    }
303
304    /**
305     * Create an inline derived table from this table
306     */
307    @Override
308    @PlainSQL
309    public InventoryCostingPoolDetails where(SQL condition) {
310        return where(DSL.condition(condition));
311    }
312
313    /**
314     * Create an inline derived table from this table
315     */
316    @Override
317    @PlainSQL
318    public InventoryCostingPoolDetails where(@Stringly.SQL String condition) {
319        return where(DSL.condition(condition));
320    }
321
322    /**
323     * Create an inline derived table from this table
324     */
325    @Override
326    @PlainSQL
327    public InventoryCostingPoolDetails where(@Stringly.SQL String condition, Object... binds) {
328        return where(DSL.condition(condition, binds));
329    }
330
331    /**
332     * Create an inline derived table from this table
333     */
334    @Override
335    @PlainSQL
336    public InventoryCostingPoolDetails where(@Stringly.SQL String condition, QueryPart... parts) {
337        return where(DSL.condition(condition, parts));
338    }
339
340    /**
341     * Create an inline derived table from this table
342     */
343    @Override
344    public InventoryCostingPoolDetails whereExists(TableLike<?> select) {
345        return where(DSL.exists(select));
346    }
347
348    /**
349     * Create an inline derived table from this table
350     */
351    @Override
352    public InventoryCostingPoolDetails whereNotExists(TableLike<?> select) {
353        return where(DSL.notExists(select));
354    }
355}