001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.item; 005 006 007import com.echothree.model.data.item.common.pk.ItemCategoryDetailPK; 008import com.echothree.model.data.item.common.pk.ItemCategoryPK; 009import com.echothree.model.data.sequence.common.pk.SequencePK; 010import com.echothree.model.jooq.server.KeyRegistry; 011import com.echothree.model.jooq.server.tables.item.ItemCategories.ItemCategoriesPath; 012import com.echothree.model.jooq.server.tables.sequence.Sequences.SequencesPath; 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 ItemCategoryDetails extends TableImpl<com.echothree.model.jooq.server.records.item.ItemCategoryDetails> { 046 047 private static final long serialVersionUID = 1L; 048 049 /** 050 * The reference instance of <code>itemcategorydetails</code> 051 */ 052 public static final ItemCategoryDetails ItemCategoryDetails = new ItemCategoryDetails(); 053 054 /** 055 * The class holding records for this type 056 */ 057 @Override 058 public Class<com.echothree.model.jooq.server.records.item.ItemCategoryDetails> getRecordType() { 059 return com.echothree.model.jooq.server.records.item.ItemCategoryDetails.class; 060 } 061 062 /** 063 * The column <code>itemcategorydetails.icdt_itemcategorydetailid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.item.ItemCategoryDetails, ItemCategoryDetailPK> ITEM_CATEGORY_DETAIL = createField(DSL.name("icdt_itemcategorydetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemCategoryDetailPK.class, id -> new com.echothree.model.data.item.common.pk.ItemCategoryDetailPK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column <code>itemcategorydetails.icdt_ic_itemcategoryid</code>. 069 */ 070 public final TableField<com.echothree.model.jooq.server.records.item.ItemCategoryDetails, ItemCategoryPK> ITEM_CATEGORY = createField(DSL.name("icdt_ic_itemcategoryid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemCategoryPK.class, id -> new com.echothree.model.data.item.common.pk.ItemCategoryPK(id), primaryKey -> primaryKey.getEntityId())); 071 072 /** 073 * The column <code>itemcategorydetails.icdt_itemcategoryname</code>. 074 */ 075 public final TableField<com.echothree.model.jooq.server.records.item.ItemCategoryDetails, String> ITEM_CATEGORY_NAME = createField(DSL.name("icdt_itemcategoryname"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 076 077 /** 078 * The column <code>itemcategorydetails.icdt_parentitemcategoryid</code>. 079 */ 080 public final TableField<com.echothree.model.jooq.server.records.item.ItemCategoryDetails, ItemCategoryPK> PARENT_ITEM_CATEGORY = createField(DSL.name("icdt_parentitemcategoryid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, ItemCategoryPK.class, id -> new com.echothree.model.data.item.common.pk.ItemCategoryPK(id), primaryKey -> primaryKey.getEntityId())); 081 082 /** 083 * The column <code>itemcategorydetails.icdt_itemsequenceid</code>. 084 */ 085 public final TableField<com.echothree.model.jooq.server.records.item.ItemCategoryDetails, SequencePK> ITEM_SEQUENCE = createField(DSL.name("icdt_itemsequenceid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, SequencePK.class, id -> new com.echothree.model.data.sequence.common.pk.SequencePK(id), primaryKey -> primaryKey.getEntityId())); 086 087 /** 088 * The column <code>itemcategorydetails.icdt_isdefault</code>. 089 */ 090 public final TableField<com.echothree.model.jooq.server.records.item.ItemCategoryDetails, Boolean> IS_DEFAULT = createField(DSL.name("icdt_isdefault"), SQLDataType.BIT.nullable(false), this, ""); 091 092 /** 093 * The column <code>itemcategorydetails.icdt_sortorder</code>. 094 */ 095 public final TableField<com.echothree.model.jooq.server.records.item.ItemCategoryDetails, Integer> SORT_ORDER = createField(DSL.name("icdt_sortorder"), SQLDataType.INTEGER.nullable(false), this, ""); 096 097 /** 098 * The column <code>itemcategorydetails.icdt_fromtime</code>. 099 */ 100 public final TableField<com.echothree.model.jooq.server.records.item.ItemCategoryDetails, Long> FROM_TIME = createField(DSL.name("icdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 101 102 /** 103 * The column <code>itemcategorydetails.icdt_thrutime</code>. 104 */ 105 public final TableField<com.echothree.model.jooq.server.records.item.ItemCategoryDetails, Long> THRU_TIME = createField(DSL.name("icdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 106 107 private ItemCategoryDetails(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemCategoryDetails> aliased) { 108 this(alias, aliased, (Field<?>[]) null, null); 109 } 110 111 private ItemCategoryDetails(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemCategoryDetails> aliased, Field<?>[] parameters, Condition where) { 112 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 113 } 114 115 /** 116 * Create an aliased <code>itemcategorydetails</code> table reference 117 */ 118 public ItemCategoryDetails(String alias) { 119 this(DSL.name(alias), ItemCategoryDetails); 120 } 121 122 /** 123 * Create an aliased <code>itemcategorydetails</code> table reference 124 */ 125 public ItemCategoryDetails(Name alias) { 126 this(alias, ItemCategoryDetails); 127 } 128 129 /** 130 * Create a <code>itemcategorydetails</code> table reference 131 */ 132 public ItemCategoryDetails() { 133 this(DSL.name("itemcategorydetails"), null); 134 } 135 136 public <O extends Record> ItemCategoryDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.item.ItemCategoryDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.item.ItemCategoryDetails> parentPath) { 137 super(path, childPath, parentPath, ItemCategoryDetails); 138 } 139 140 /** 141 * A subtype implementing {@link Path} for simplified path-based joins. 142 */ 143 public static class ItemCategoryDetailsPath extends ItemCategoryDetails implements Path<com.echothree.model.jooq.server.records.item.ItemCategoryDetails> { 144 145 private static final long serialVersionUID = 1L; 146 public <O extends Record> ItemCategoryDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.item.ItemCategoryDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.item.ItemCategoryDetails> parentPath) { 147 super(path, childPath, parentPath); 148 } 149 private ItemCategoryDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemCategoryDetails> aliased) { 150 super(alias, aliased); 151 } 152 153 @Override 154 public ItemCategoryDetailsPath as(String alias) { 155 return new ItemCategoryDetailsPath(DSL.name(alias), this); 156 } 157 158 @Override 159 public ItemCategoryDetailsPath as(Name alias) { 160 return new ItemCategoryDetailsPath(alias, this); 161 } 162 163 @Override 164 public ItemCategoryDetailsPath as(Table<?> alias) { 165 return new ItemCategoryDetailsPath(alias.getQualifiedName(), this); 166 } 167 } 168 169 @Override 170 public UniqueKey<com.echothree.model.jooq.server.records.item.ItemCategoryDetails> getPrimaryKey() { 171 return KeyRegistry.ITEM_CATEGORY_DETAILS_PK; 172 } 173 174 @Override 175 public List<UniqueKey<com.echothree.model.jooq.server.records.item.ItemCategoryDetails>> getUniqueKeys() { 176 return Arrays.asList(KeyRegistry.ITEM_CATEGORY_DETAILS_ITEM_CATEGORY_AND_THRU_TIME_UK, KeyRegistry.ITEM_CATEGORY_DETAILS_ITEM_CATEGORY_NAME_AND_THRU_TIME_UK); 177 } 178 179 @Override 180 public List<ForeignKey<com.echothree.model.jooq.server.records.item.ItemCategoryDetails, ?>> getReferences() { 181 return Arrays.asList(KeyRegistry.ITEM_CATEGORY_DETAILS_ITEM_CATEGORY_FK, KeyRegistry.ITEM_CATEGORY_DETAILS_ITEM_SEQUENCE_FK, KeyRegistry.ITEM_CATEGORY_DETAILS_PARENT_ITEM_CATEGORY_FK); 182 } 183 184 private transient ItemCategoriesPath _icdt_ic_itemcategoryid_fk; 185 186 /** 187 * Get the implicit join path to the <code>itemcategories</code> table, via 188 * the <code>icdt_ic_itemcategoryid_fk</code> key. 189 */ 190 public ItemCategoriesPath icdt_ic_itemcategoryid_fk() { 191 if (_icdt_ic_itemcategoryid_fk == null) 192 _icdt_ic_itemcategoryid_fk = new ItemCategoriesPath(this, KeyRegistry.ITEM_CATEGORY_DETAILS_ITEM_CATEGORY_FK, null); 193 194 return _icdt_ic_itemcategoryid_fk; 195 } 196 197 private transient SequencesPath _icdt_itemsequenceid_fk; 198 199 /** 200 * Get the implicit join path to the <code>sequences</code> table. 201 */ 202 public SequencesPath icdt_itemsequenceid_fk() { 203 if (_icdt_itemsequenceid_fk == null) 204 _icdt_itemsequenceid_fk = new SequencesPath(this, KeyRegistry.ITEM_CATEGORY_DETAILS_ITEM_SEQUENCE_FK, null); 205 206 return _icdt_itemsequenceid_fk; 207 } 208 209 private transient ItemCategoriesPath _icdt_parentitemcategoryid_fk; 210 211 /** 212 * Get the implicit join path to the <code>itemcategories</code> table, via 213 * the <code>icdt_parentitemcategoryid_fk</code> key. 214 */ 215 public ItemCategoriesPath icdt_parentitemcategoryid_fk() { 216 if (_icdt_parentitemcategoryid_fk == null) 217 _icdt_parentitemcategoryid_fk = new ItemCategoriesPath(this, KeyRegistry.ITEM_CATEGORY_DETAILS_PARENT_ITEM_CATEGORY_FK, null); 218 219 return _icdt_parentitemcategoryid_fk; 220 } 221 222 @Override 223 public ItemCategoryDetails as(String alias) { 224 return new ItemCategoryDetails(DSL.name(alias), this); 225 } 226 227 @Override 228 public ItemCategoryDetails as(Name alias) { 229 return new ItemCategoryDetails(alias, this); 230 } 231 232 @Override 233 public ItemCategoryDetails as(Table<?> alias) { 234 return new ItemCategoryDetails(alias.getQualifiedName(), this); 235 } 236 237 /** 238 * Rename this table 239 */ 240 @Override 241 public ItemCategoryDetails rename(String name) { 242 return new ItemCategoryDetails(DSL.name(name), null); 243 } 244 245 /** 246 * Rename this table 247 */ 248 @Override 249 public ItemCategoryDetails rename(Name name) { 250 return new ItemCategoryDetails(name, null); 251 } 252 253 /** 254 * Rename this table 255 */ 256 @Override 257 public ItemCategoryDetails rename(Table<?> name) { 258 return new ItemCategoryDetails(name.getQualifiedName(), null); 259 } 260 261 /** 262 * Create an inline derived table from this table 263 */ 264 @Override 265 public ItemCategoryDetails where(Condition condition) { 266 return new ItemCategoryDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 267 } 268 269 /** 270 * Create an inline derived table from this table 271 */ 272 @Override 273 public ItemCategoryDetails where(Collection<? extends Condition> conditions) { 274 return where(DSL.and(conditions)); 275 } 276 277 /** 278 * Create an inline derived table from this table 279 */ 280 @Override 281 public ItemCategoryDetails where(Condition... conditions) { 282 return where(DSL.and(conditions)); 283 } 284 285 /** 286 * Create an inline derived table from this table 287 */ 288 @Override 289 public ItemCategoryDetails where(Field<Boolean> condition) { 290 return where(DSL.condition(condition)); 291 } 292 293 /** 294 * Create an inline derived table from this table 295 */ 296 @Override 297 @PlainSQL 298 public ItemCategoryDetails where(SQL condition) { 299 return where(DSL.condition(condition)); 300 } 301 302 /** 303 * Create an inline derived table from this table 304 */ 305 @Override 306 @PlainSQL 307 public ItemCategoryDetails where(@Stringly.SQL String condition) { 308 return where(DSL.condition(condition)); 309 } 310 311 /** 312 * Create an inline derived table from this table 313 */ 314 @Override 315 @PlainSQL 316 public ItemCategoryDetails where(@Stringly.SQL String condition, Object... binds) { 317 return where(DSL.condition(condition, binds)); 318 } 319 320 /** 321 * Create an inline derived table from this table 322 */ 323 @Override 324 @PlainSQL 325 public ItemCategoryDetails where(@Stringly.SQL String condition, QueryPart... parts) { 326 return where(DSL.condition(condition, parts)); 327 } 328 329 /** 330 * Create an inline derived table from this table 331 */ 332 @Override 333 public ItemCategoryDetails whereExists(TableLike<?> select) { 334 return where(DSL.exists(select)); 335 } 336 337 /** 338 * Create an inline derived table from this table 339 */ 340 @Override 341 public ItemCategoryDetails whereNotExists(TableLike<?> select) { 342 return where(DSL.notExists(select)); 343 } 344}