001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.offer; 005 006 007import com.echothree.model.data.offer.common.pk.OfferPK; 008import com.echothree.model.data.offer.common.pk.OfferTimePK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.offer.Offers.OffersPath; 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 OfferTimes extends TableImpl<com.echothree.model.jooq.server.records.offer.OfferTimes> { 041 042 private static final long serialVersionUID = 1L; 043 044 /** 045 * The reference instance of <code>offertimes</code> 046 */ 047 public static final OfferTimes OfferTimes = new OfferTimes(); 048 049 /** 050 * The class holding records for this type 051 */ 052 @Override 053 public Class<com.echothree.model.jooq.server.records.offer.OfferTimes> getRecordType() { 054 return com.echothree.model.jooq.server.records.offer.OfferTimes.class; 055 } 056 057 /** 058 * The column <code>offertimes.ofrtm_offertimeid</code>. 059 */ 060 public final TableField<com.echothree.model.jooq.server.records.offer.OfferTimes, OfferTimePK> OFFER_TIME = createField(DSL.name("ofrtm_offertimeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, OfferTimePK.class, id -> new com.echothree.model.data.offer.common.pk.OfferTimePK(id), primaryKey -> primaryKey.getEntityId())); 061 062 /** 063 * The column <code>offertimes.ofrtm_ofr_offerid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.offer.OfferTimes, OfferPK> OFFER = createField(DSL.name("ofrtm_ofr_offerid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, OfferPK.class, id -> new com.echothree.model.data.offer.common.pk.OfferPK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column <code>offertimes.ofrtm_lastevaluationtime</code>. 069 */ 070 public final TableField<com.echothree.model.jooq.server.records.offer.OfferTimes, Long> LAST_EVALUATION_TIME = createField(DSL.name("ofrtm_lastevaluationtime"), SQLDataType.BIGINT, this, ""); 071 072 /** 073 * The column <code>offertimes.ofrtm_maxitemcreatedtime</code>. 074 */ 075 public final TableField<com.echothree.model.jooq.server.records.offer.OfferTimes, Long> MAX_ITEM_CREATED_TIME = createField(DSL.name("ofrtm_maxitemcreatedtime"), SQLDataType.BIGINT, this, ""); 076 077 /** 078 * The column <code>offertimes.ofrtm_maxitemmodifiedtime</code>. 079 */ 080 public final TableField<com.echothree.model.jooq.server.records.offer.OfferTimes, Long> MAX_ITEM_MODIFIED_TIME = createField(DSL.name("ofrtm_maxitemmodifiedtime"), SQLDataType.BIGINT, this, ""); 081 082 /** 083 * The column <code>offertimes.ofrtm_maxitemdeletedtime</code>. 084 */ 085 public final TableField<com.echothree.model.jooq.server.records.offer.OfferTimes, Long> MAX_ITEM_DELETED_TIME = createField(DSL.name("ofrtm_maxitemdeletedtime"), SQLDataType.BIGINT, this, ""); 086 087 private OfferTimes(Name alias, Table<com.echothree.model.jooq.server.records.offer.OfferTimes> aliased) { 088 this(alias, aliased, (Field<?>[]) null, null); 089 } 090 091 private OfferTimes(Name alias, Table<com.echothree.model.jooq.server.records.offer.OfferTimes> aliased, Field<?>[] parameters, Condition where) { 092 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 093 } 094 095 /** 096 * Create an aliased <code>offertimes</code> table reference 097 */ 098 public OfferTimes(String alias) { 099 this(DSL.name(alias), OfferTimes); 100 } 101 102 /** 103 * Create an aliased <code>offertimes</code> table reference 104 */ 105 public OfferTimes(Name alias) { 106 this(alias, OfferTimes); 107 } 108 109 /** 110 * Create a <code>offertimes</code> table reference 111 */ 112 public OfferTimes() { 113 this(DSL.name("offertimes"), null); 114 } 115 116 @Override 117 public UniqueKey<com.echothree.model.jooq.server.records.offer.OfferTimes> getPrimaryKey() { 118 return KeyRegistry.OFFER_TIMES_PK; 119 } 120 121 @Override 122 public List<UniqueKey<com.echothree.model.jooq.server.records.offer.OfferTimes>> getUniqueKeys() { 123 return Arrays.asList(KeyRegistry.OFFER_TIMES_OFFER_UK); 124 } 125 126 @Override 127 public List<ForeignKey<com.echothree.model.jooq.server.records.offer.OfferTimes, ?>> getReferences() { 128 return Arrays.asList(KeyRegistry.OFFER_TIMES_OFFER_FK); 129 } 130 131 private transient OffersPath _ofrtm_ofr_offerid_fk; 132 133 /** 134 * Get the implicit join path to the <code>offers</code> table. 135 */ 136 public OffersPath ofrtm_ofr_offerid_fk() { 137 if (_ofrtm_ofr_offerid_fk == null) 138 _ofrtm_ofr_offerid_fk = new OffersPath(this, KeyRegistry.OFFER_TIMES_OFFER_FK, null); 139 140 return _ofrtm_ofr_offerid_fk; 141 } 142 143 @Override 144 public OfferTimes as(String alias) { 145 return new OfferTimes(DSL.name(alias), this); 146 } 147 148 @Override 149 public OfferTimes as(Name alias) { 150 return new OfferTimes(alias, this); 151 } 152 153 @Override 154 public OfferTimes as(Table<?> alias) { 155 return new OfferTimes(alias.getQualifiedName(), this); 156 } 157 158 /** 159 * Rename this table 160 */ 161 @Override 162 public OfferTimes rename(String name) { 163 return new OfferTimes(DSL.name(name), null); 164 } 165 166 /** 167 * Rename this table 168 */ 169 @Override 170 public OfferTimes rename(Name name) { 171 return new OfferTimes(name, null); 172 } 173 174 /** 175 * Rename this table 176 */ 177 @Override 178 public OfferTimes rename(Table<?> name) { 179 return new OfferTimes(name.getQualifiedName(), null); 180 } 181 182 /** 183 * Create an inline derived table from this table 184 */ 185 @Override 186 public OfferTimes where(Condition condition) { 187 return new OfferTimes(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 188 } 189 190 /** 191 * Create an inline derived table from this table 192 */ 193 @Override 194 public OfferTimes where(Collection<? extends Condition> conditions) { 195 return where(DSL.and(conditions)); 196 } 197 198 /** 199 * Create an inline derived table from this table 200 */ 201 @Override 202 public OfferTimes where(Condition... conditions) { 203 return where(DSL.and(conditions)); 204 } 205 206 /** 207 * Create an inline derived table from this table 208 */ 209 @Override 210 public OfferTimes where(Field<Boolean> condition) { 211 return where(DSL.condition(condition)); 212 } 213 214 /** 215 * Create an inline derived table from this table 216 */ 217 @Override 218 @PlainSQL 219 public OfferTimes where(SQL condition) { 220 return where(DSL.condition(condition)); 221 } 222 223 /** 224 * Create an inline derived table from this table 225 */ 226 @Override 227 @PlainSQL 228 public OfferTimes where(@Stringly.SQL String condition) { 229 return where(DSL.condition(condition)); 230 } 231 232 /** 233 * Create an inline derived table from this table 234 */ 235 @Override 236 @PlainSQL 237 public OfferTimes where(@Stringly.SQL String condition, Object... binds) { 238 return where(DSL.condition(condition, binds)); 239 } 240 241 /** 242 * Create an inline derived table from this table 243 */ 244 @Override 245 @PlainSQL 246 public OfferTimes where(@Stringly.SQL String condition, QueryPart... parts) { 247 return where(DSL.condition(condition, parts)); 248 } 249 250 /** 251 * Create an inline derived table from this table 252 */ 253 @Override 254 public OfferTimes whereExists(TableLike<?> select) { 255 return where(DSL.exists(select)); 256 } 257 258 /** 259 * Create an inline derived table from this table 260 */ 261 @Override 262 public OfferTimes whereNotExists(TableLike<?> select) { 263 return where(DSL.notExists(select)); 264 } 265}