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