001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.records.item; 005 006 007import com.echothree.model.data.accounting.common.pk.CurrencyPK; 008import com.echothree.model.data.inventory.common.pk.InventoryConditionPK; 009import com.echothree.model.data.item.common.pk.ItemPK; 010import com.echothree.model.data.item.common.pk.ItemPricePK; 011import com.echothree.model.data.uom.common.pk.UnitOfMeasureTypePK; 012 013import org.jooq.Record1; 014import org.jooq.impl.UpdatableRecordImpl; 015 016 017/** 018 * This class is generated by jOOQ. 019 */ 020@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 021public class ItemPrices extends UpdatableRecordImpl<ItemPrices> { 022 023 private static final long serialVersionUID = 1L; 024 025 /** 026 * Setter for <code>itemprices.itmp_itempriceid</code>. 027 */ 028 public void ItemPrice(ItemPricePK value) { 029 set(0, value); 030 } 031 032 /** 033 * Getter for <code>itemprices.itmp_itempriceid</code>. 034 */ 035 public ItemPricePK ItemPrice() { 036 return (ItemPricePK) get(0); 037 } 038 039 /** 040 * Setter for <code>itemprices.itmp_itm_itemid</code>. 041 */ 042 public void Item(ItemPK value) { 043 set(1, value); 044 } 045 046 /** 047 * Getter for <code>itemprices.itmp_itm_itemid</code>. 048 */ 049 public ItemPK Item() { 050 return (ItemPK) get(1); 051 } 052 053 /** 054 * Setter for <code>itemprices.itmp_invcon_inventoryconditionid</code>. 055 */ 056 public void InventoryCondition(InventoryConditionPK value) { 057 set(2, value); 058 } 059 060 /** 061 * Getter for <code>itemprices.itmp_invcon_inventoryconditionid</code>. 062 */ 063 public InventoryConditionPK InventoryCondition() { 064 return (InventoryConditionPK) get(2); 065 } 066 067 /** 068 * Setter for <code>itemprices.itmp_uomt_unitofmeasuretypeid</code>. 069 */ 070 public void UnitOfMeasureType(UnitOfMeasureTypePK value) { 071 set(3, value); 072 } 073 074 /** 075 * Getter for <code>itemprices.itmp_uomt_unitofmeasuretypeid</code>. 076 */ 077 public UnitOfMeasureTypePK UnitOfMeasureType() { 078 return (UnitOfMeasureTypePK) get(3); 079 } 080 081 /** 082 * Setter for <code>itemprices.itmp_cur_currencyid</code>. 083 */ 084 public void Currency(CurrencyPK value) { 085 set(4, value); 086 } 087 088 /** 089 * Getter for <code>itemprices.itmp_cur_currencyid</code>. 090 */ 091 public CurrencyPK Currency() { 092 return (CurrencyPK) get(4); 093 } 094 095 /** 096 * Setter for <code>itemprices.itmp_fromtime</code>. 097 */ 098 public void FromTime(Long value) { 099 set(5, value); 100 } 101 102 /** 103 * Getter for <code>itemprices.itmp_fromtime</code>. 104 */ 105 public Long FromTime() { 106 return (Long) get(5); 107 } 108 109 /** 110 * Setter for <code>itemprices.itmp_thrutime</code>. 111 */ 112 public void ThruTime(Long value) { 113 set(6, value); 114 } 115 116 /** 117 * Getter for <code>itemprices.itmp_thrutime</code>. 118 */ 119 public Long ThruTime() { 120 return (Long) get(6); 121 } 122 123 // ------------------------------------------------------------------------- 124 // Primary key information 125 // ------------------------------------------------------------------------- 126 127 @Override 128 public Record1<ItemPricePK> key() { 129 return (Record1) super.key(); 130 } 131 132 // ------------------------------------------------------------------------- 133 // Constructors 134 // ------------------------------------------------------------------------- 135 136 /** 137 * Create a detached ItemPrices 138 */ 139 public ItemPrices() { 140 super(com.echothree.model.jooq.server.tables.item.ItemPrices.ItemPrices); 141 } 142 143 /** 144 * Create a detached, initialised ItemPrices 145 */ 146 public ItemPrices(ItemPricePK ItemPrice, ItemPK Item, InventoryConditionPK InventoryCondition, UnitOfMeasureTypePK UnitOfMeasureType, CurrencyPK Currency, Long FromTime, Long ThruTime) { 147 super(com.echothree.model.jooq.server.tables.item.ItemPrices.ItemPrices); 148 149 ItemPrice(ItemPrice); 150 Item(Item); 151 InventoryCondition(InventoryCondition); 152 UnitOfMeasureType(UnitOfMeasureType); 153 Currency(Currency); 154 FromTime(FromTime); 155 ThruTime(ThruTime); 156 resetTouchedOnNotNull(); 157 } 158}