001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.content; 005 006 007import com.echothree.model.data.content.common.pk.ContentCatalogItemPK; 008import com.echothree.model.data.content.common.pk.ContentCatalogItemVariablePricePK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.content.ContentCatalogItems.ContentCatalogItemsPath; 011 012import java.util.Arrays; 013import java.util.Collection; 014import java.util.List; 015 016import org.jooq.Condition; 017import org.jooq.Converter; 018import org.jooq.Field; 019import org.jooq.ForeignKey; 020import org.jooq.Name; 021import org.jooq.PlainSQL; 022import org.jooq.QueryPart; 023import org.jooq.SQL; 024import org.jooq.Stringly; 025import org.jooq.Table; 026import org.jooq.TableField; 027import org.jooq.TableLike; 028import org.jooq.TableOptions; 029import org.jooq.UniqueKey; 030import org.jooq.impl.DSL; 031import org.jooq.impl.Internal; 032import org.jooq.impl.SQLDataType; 033import org.jooq.impl.TableImpl; 034 035 036/** 037 * This class is generated by jOOQ. 038 */ 039@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 040public class ContentCatalogItemVariablePrices extends TableImpl<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices> { 041 042 private static final long serialVersionUID = 1L; 043 044 /** 045 * The reference instance of <code>contentcatalogitemvariableprices</code> 046 */ 047 public static final ContentCatalogItemVariablePrices ContentCatalogItemVariablePrices = new ContentCatalogItemVariablePrices(); 048 049 /** 050 * The class holding records for this type 051 */ 052 @Override 053 public Class<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices> getRecordType() { 054 return com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices.class; 055 } 056 057 /** 058 * The column 059 * <code>contentcatalogitemvariableprices.cntctivp_contentcatalogitemvariablepriceid</code>. 060 */ 061 public final TableField<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices, ContentCatalogItemVariablePricePK> CONTENT_CATALOG_ITEM_VARIABLE_PRICE = createField(DSL.name("cntctivp_contentcatalogitemvariablepriceid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentCatalogItemVariablePricePK.class, id -> new com.echothree.model.data.content.common.pk.ContentCatalogItemVariablePricePK(id), primaryKey -> primaryKey.getEntityId())); 062 063 /** 064 * The column 065 * <code>contentcatalogitemvariableprices.cntctivp_cntcti_contentcatalogitemid</code>. 066 */ 067 public final TableField<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices, ContentCatalogItemPK> CONTENT_CATALOG_ITEM = createField(DSL.name("cntctivp_cntcti_contentcatalogitemid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentCatalogItemPK.class, id -> new com.echothree.model.data.content.common.pk.ContentCatalogItemPK(id), primaryKey -> primaryKey.getEntityId())); 068 069 /** 070 * The column 071 * <code>contentcatalogitemvariableprices.cntctivp_minimumunitprice</code>. 072 */ 073 public final TableField<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices, Long> MINIMUM_UNIT_PRICE = createField(DSL.name("cntctivp_minimumunitprice"), SQLDataType.BIGINT.nullable(false), this, ""); 074 075 /** 076 * The column 077 * <code>contentcatalogitemvariableprices.cntctivp_maximumunitprice</code>. 078 */ 079 public final TableField<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices, Long> MAXIMUM_UNIT_PRICE = createField(DSL.name("cntctivp_maximumunitprice"), SQLDataType.BIGINT.nullable(false), this, ""); 080 081 /** 082 * The column 083 * <code>contentcatalogitemvariableprices.cntctivp_unitpriceincrement</code>. 084 */ 085 public final TableField<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices, Long> UNIT_PRICE_INCREMENT = createField(DSL.name("cntctivp_unitpriceincrement"), SQLDataType.BIGINT.nullable(false), this, ""); 086 087 /** 088 * The column 089 * <code>contentcatalogitemvariableprices.cntctivp_fromtime</code>. 090 */ 091 public final TableField<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices, Long> FROM_TIME = createField(DSL.name("cntctivp_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 092 093 /** 094 * The column 095 * <code>contentcatalogitemvariableprices.cntctivp_thrutime</code>. 096 */ 097 public final TableField<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices, Long> THRU_TIME = createField(DSL.name("cntctivp_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 098 099 private ContentCatalogItemVariablePrices(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices> aliased) { 100 this(alias, aliased, (Field<?>[]) null, null); 101 } 102 103 private ContentCatalogItemVariablePrices(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices> aliased, Field<?>[] parameters, Condition where) { 104 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 105 } 106 107 /** 108 * Create an aliased <code>contentcatalogitemvariableprices</code> table 109 * reference 110 */ 111 public ContentCatalogItemVariablePrices(String alias) { 112 this(DSL.name(alias), ContentCatalogItemVariablePrices); 113 } 114 115 /** 116 * Create an aliased <code>contentcatalogitemvariableprices</code> table 117 * reference 118 */ 119 public ContentCatalogItemVariablePrices(Name alias) { 120 this(alias, ContentCatalogItemVariablePrices); 121 } 122 123 /** 124 * Create a <code>contentcatalogitemvariableprices</code> table reference 125 */ 126 public ContentCatalogItemVariablePrices() { 127 this(DSL.name("contentcatalogitemvariableprices"), null); 128 } 129 130 @Override 131 public UniqueKey<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices> getPrimaryKey() { 132 return KeyRegistry.CONTENT_CATALOG_ITEM_VARIABLE_PRICES_PK; 133 } 134 135 @Override 136 public List<UniqueKey<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices>> getUniqueKeys() { 137 return Arrays.asList(KeyRegistry.CONTENT_CATALOG_ITEM_VARIABLE_PRICES_CONTENT_CATALOG_ITEM_AND_THRU_TIME_UK); 138 } 139 140 @Override 141 public List<ForeignKey<com.echothree.model.jooq.server.records.content.ContentCatalogItemVariablePrices, ?>> getReferences() { 142 return Arrays.asList(KeyRegistry.CONTENT_CATALOG_ITEM_VARIABLE_PRICES_CONTENT_CATALOG_ITEM_FK); 143 } 144 145 private transient ContentCatalogItemsPath _cntctivp_cntcti_contentcatalogitemid_fk; 146 147 /** 148 * Get the implicit join path to the <code>contentcatalogitems</code> table. 149 */ 150 public ContentCatalogItemsPath cntctivp_cntcti_contentcatalogitemid_fk() { 151 if (_cntctivp_cntcti_contentcatalogitemid_fk == null) 152 _cntctivp_cntcti_contentcatalogitemid_fk = new ContentCatalogItemsPath(this, KeyRegistry.CONTENT_CATALOG_ITEM_VARIABLE_PRICES_CONTENT_CATALOG_ITEM_FK, null); 153 154 return _cntctivp_cntcti_contentcatalogitemid_fk; 155 } 156 157 @Override 158 public ContentCatalogItemVariablePrices as(String alias) { 159 return new ContentCatalogItemVariablePrices(DSL.name(alias), this); 160 } 161 162 @Override 163 public ContentCatalogItemVariablePrices as(Name alias) { 164 return new ContentCatalogItemVariablePrices(alias, this); 165 } 166 167 @Override 168 public ContentCatalogItemVariablePrices as(Table<?> alias) { 169 return new ContentCatalogItemVariablePrices(alias.getQualifiedName(), this); 170 } 171 172 /** 173 * Rename this table 174 */ 175 @Override 176 public ContentCatalogItemVariablePrices rename(String name) { 177 return new ContentCatalogItemVariablePrices(DSL.name(name), null); 178 } 179 180 /** 181 * Rename this table 182 */ 183 @Override 184 public ContentCatalogItemVariablePrices rename(Name name) { 185 return new ContentCatalogItemVariablePrices(name, null); 186 } 187 188 /** 189 * Rename this table 190 */ 191 @Override 192 public ContentCatalogItemVariablePrices rename(Table<?> name) { 193 return new ContentCatalogItemVariablePrices(name.getQualifiedName(), null); 194 } 195 196 /** 197 * Create an inline derived table from this table 198 */ 199 @Override 200 public ContentCatalogItemVariablePrices where(Condition condition) { 201 return new ContentCatalogItemVariablePrices(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 202 } 203 204 /** 205 * Create an inline derived table from this table 206 */ 207 @Override 208 public ContentCatalogItemVariablePrices where(Collection<? extends Condition> conditions) { 209 return where(DSL.and(conditions)); 210 } 211 212 /** 213 * Create an inline derived table from this table 214 */ 215 @Override 216 public ContentCatalogItemVariablePrices where(Condition... conditions) { 217 return where(DSL.and(conditions)); 218 } 219 220 /** 221 * Create an inline derived table from this table 222 */ 223 @Override 224 public ContentCatalogItemVariablePrices where(Field<Boolean> condition) { 225 return where(DSL.condition(condition)); 226 } 227 228 /** 229 * Create an inline derived table from this table 230 */ 231 @Override 232 @PlainSQL 233 public ContentCatalogItemVariablePrices where(SQL condition) { 234 return where(DSL.condition(condition)); 235 } 236 237 /** 238 * Create an inline derived table from this table 239 */ 240 @Override 241 @PlainSQL 242 public ContentCatalogItemVariablePrices where(@Stringly.SQL String condition) { 243 return where(DSL.condition(condition)); 244 } 245 246 /** 247 * Create an inline derived table from this table 248 */ 249 @Override 250 @PlainSQL 251 public ContentCatalogItemVariablePrices where(@Stringly.SQL String condition, Object... binds) { 252 return where(DSL.condition(condition, binds)); 253 } 254 255 /** 256 * Create an inline derived table from this table 257 */ 258 @Override 259 @PlainSQL 260 public ContentCatalogItemVariablePrices where(@Stringly.SQL String condition, QueryPart... parts) { 261 return where(DSL.condition(condition, parts)); 262 } 263 264 /** 265 * Create an inline derived table from this table 266 */ 267 @Override 268 public ContentCatalogItemVariablePrices whereExists(TableLike<?> select) { 269 return where(DSL.exists(select)); 270 } 271 272 /** 273 * Create an inline derived table from this table 274 */ 275 @Override 276 public ContentCatalogItemVariablePrices whereNotExists(TableLike<?> select) { 277 return where(DSL.notExists(select)); 278 } 279}