001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.campaign; 005 006 007import com.echothree.model.data.campaign.common.pk.CampaignSourceDetailPK; 008import com.echothree.model.data.campaign.common.pk.CampaignSourcePK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.campaign.CampaignSources.CampaignSourcesPath; 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.InverseForeignKey; 021import org.jooq.Name; 022import org.jooq.Path; 023import org.jooq.PlainSQL; 024import org.jooq.QueryPart; 025import org.jooq.Record; 026import org.jooq.SQL; 027import org.jooq.Stringly; 028import org.jooq.Table; 029import org.jooq.TableField; 030import org.jooq.TableLike; 031import org.jooq.TableOptions; 032import org.jooq.UniqueKey; 033import org.jooq.impl.DSL; 034import org.jooq.impl.Internal; 035import org.jooq.impl.SQLDataType; 036import org.jooq.impl.TableImpl; 037 038 039/** 040 * This class is generated by jOOQ. 041 */ 042@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 043public class CampaignSourceDetails extends TableImpl<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> { 044 045 private static final long serialVersionUID = 1L; 046 047 /** 048 * The reference instance of <code>campaignsourcedetails</code> 049 */ 050 public static final CampaignSourceDetails CampaignSourceDetails = new CampaignSourceDetails(); 051 052 /** 053 * The class holding records for this type 054 */ 055 @Override 056 public Class<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> getRecordType() { 057 return com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails.class; 058 } 059 060 /** 061 * The column 062 * <code>campaignsourcedetails.cmpgnsrcdt_campaignsourcedetailid</code>. 063 */ 064 public final TableField<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails, CampaignSourceDetailPK> CAMPAIGN_SOURCE_DETAIL = createField(DSL.name("cmpgnsrcdt_campaignsourcedetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, CampaignSourceDetailPK.class, id -> new com.echothree.model.data.campaign.common.pk.CampaignSourceDetailPK(id), primaryKey -> primaryKey.getEntityId())); 065 066 /** 067 * The column 068 * <code>campaignsourcedetails.cmpgnsrcdt_cmpgnsrc_campaignsourceid</code>. 069 */ 070 public final TableField<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails, CampaignSourcePK> CAMPAIGN_SOURCE = createField(DSL.name("cmpgnsrcdt_cmpgnsrc_campaignsourceid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, CampaignSourcePK.class, id -> new com.echothree.model.data.campaign.common.pk.CampaignSourcePK(id), primaryKey -> primaryKey.getEntityId())); 071 072 /** 073 * The column 074 * <code>campaignsourcedetails.cmpgnsrcdt_campaignsourcename</code>. 075 */ 076 public final TableField<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails, String> CAMPAIGN_SOURCE_NAME = createField(DSL.name("cmpgnsrcdt_campaignsourcename"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 077 078 /** 079 * The column <code>campaignsourcedetails.cmpgnsrcdt_valuesha1hash</code>. 080 */ 081 public final TableField<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails, String> VALUE_SHA1_HASH = createField(DSL.name("cmpgnsrcdt_valuesha1hash"), SQLDataType.VARCHAR(28).nullable(false), this, ""); 082 083 /** 084 * The column <code>campaignsourcedetails.cmpgnsrcdt_value</code>. 085 */ 086 public final TableField<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails, String> VALUE = createField(DSL.name("cmpgnsrcdt_value"), SQLDataType.CLOB.nullable(false), this, ""); 087 088 /** 089 * The column <code>campaignsourcedetails.cmpgnsrcdt_isdefault</code>. 090 */ 091 public final TableField<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails, Boolean> IS_DEFAULT = createField(DSL.name("cmpgnsrcdt_isdefault"), SQLDataType.BIT.nullable(false), this, ""); 092 093 /** 094 * The column <code>campaignsourcedetails.cmpgnsrcdt_sortorder</code>. 095 */ 096 public final TableField<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails, Integer> SORT_ORDER = createField(DSL.name("cmpgnsrcdt_sortorder"), SQLDataType.INTEGER.nullable(false), this, ""); 097 098 /** 099 * The column <code>campaignsourcedetails.cmpgnsrcdt_fromtime</code>. 100 */ 101 public final TableField<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails, Long> FROM_TIME = createField(DSL.name("cmpgnsrcdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 102 103 /** 104 * The column <code>campaignsourcedetails.cmpgnsrcdt_thrutime</code>. 105 */ 106 public final TableField<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails, Long> THRU_TIME = createField(DSL.name("cmpgnsrcdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 107 108 private CampaignSourceDetails(Name alias, Table<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> aliased) { 109 this(alias, aliased, (Field<?>[]) null, null); 110 } 111 112 private CampaignSourceDetails(Name alias, Table<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> aliased, Field<?>[] parameters, Condition where) { 113 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 114 } 115 116 /** 117 * Create an aliased <code>campaignsourcedetails</code> table reference 118 */ 119 public CampaignSourceDetails(String alias) { 120 this(DSL.name(alias), CampaignSourceDetails); 121 } 122 123 /** 124 * Create an aliased <code>campaignsourcedetails</code> table reference 125 */ 126 public CampaignSourceDetails(Name alias) { 127 this(alias, CampaignSourceDetails); 128 } 129 130 /** 131 * Create a <code>campaignsourcedetails</code> table reference 132 */ 133 public CampaignSourceDetails() { 134 this(DSL.name("campaignsourcedetails"), null); 135 } 136 137 public <O extends Record> CampaignSourceDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> parentPath) { 138 super(path, childPath, parentPath, CampaignSourceDetails); 139 } 140 141 /** 142 * A subtype implementing {@link Path} for simplified path-based joins. 143 */ 144 public static class CampaignSourceDetailsPath extends CampaignSourceDetails implements Path<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> { 145 146 private static final long serialVersionUID = 1L; 147 public <O extends Record> CampaignSourceDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> parentPath) { 148 super(path, childPath, parentPath); 149 } 150 private CampaignSourceDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> aliased) { 151 super(alias, aliased); 152 } 153 154 @Override 155 public CampaignSourceDetailsPath as(String alias) { 156 return new CampaignSourceDetailsPath(DSL.name(alias), this); 157 } 158 159 @Override 160 public CampaignSourceDetailsPath as(Name alias) { 161 return new CampaignSourceDetailsPath(alias, this); 162 } 163 164 @Override 165 public CampaignSourceDetailsPath as(Table<?> alias) { 166 return new CampaignSourceDetailsPath(alias.getQualifiedName(), this); 167 } 168 } 169 170 @Override 171 public UniqueKey<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails> getPrimaryKey() { 172 return KeyRegistry.CAMPAIGN_SOURCE_DETAILS_PK; 173 } 174 175 @Override 176 public List<UniqueKey<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails>> getUniqueKeys() { 177 return Arrays.asList(KeyRegistry.CAMPAIGN_SOURCE_DETAILS_CAMPAIGN_SOURCE_AND_THRU_TIME_UK, KeyRegistry.CAMPAIGN_SOURCE_DETAILS_CAMPAIGN_SOURCE_NAME_AND_THRU_TIME_UK, KeyRegistry.CAMPAIGN_SOURCE_DETAILS_VALUE_SHA1_HASH_AND_THRU_TIME_UK); 178 } 179 180 @Override 181 public List<ForeignKey<com.echothree.model.jooq.server.records.campaign.CampaignSourceDetails, ?>> getReferences() { 182 return Arrays.asList(KeyRegistry.CAMPAIGN_SOURCE_DETAILS_CAMPAIGN_SOURCE_FK); 183 } 184 185 private transient CampaignSourcesPath _cmpgnsrcdt_cmpgnsrc_campaignsourceid_fk; 186 187 /** 188 * Get the implicit join path to the <code>campaignsources</code> table. 189 */ 190 public CampaignSourcesPath cmpgnsrcdt_cmpgnsrc_campaignsourceid_fk() { 191 if (_cmpgnsrcdt_cmpgnsrc_campaignsourceid_fk == null) 192 _cmpgnsrcdt_cmpgnsrc_campaignsourceid_fk = new CampaignSourcesPath(this, KeyRegistry.CAMPAIGN_SOURCE_DETAILS_CAMPAIGN_SOURCE_FK, null); 193 194 return _cmpgnsrcdt_cmpgnsrc_campaignsourceid_fk; 195 } 196 197 @Override 198 public CampaignSourceDetails as(String alias) { 199 return new CampaignSourceDetails(DSL.name(alias), this); 200 } 201 202 @Override 203 public CampaignSourceDetails as(Name alias) { 204 return new CampaignSourceDetails(alias, this); 205 } 206 207 @Override 208 public CampaignSourceDetails as(Table<?> alias) { 209 return new CampaignSourceDetails(alias.getQualifiedName(), this); 210 } 211 212 /** 213 * Rename this table 214 */ 215 @Override 216 public CampaignSourceDetails rename(String name) { 217 return new CampaignSourceDetails(DSL.name(name), null); 218 } 219 220 /** 221 * Rename this table 222 */ 223 @Override 224 public CampaignSourceDetails rename(Name name) { 225 return new CampaignSourceDetails(name, null); 226 } 227 228 /** 229 * Rename this table 230 */ 231 @Override 232 public CampaignSourceDetails rename(Table<?> name) { 233 return new CampaignSourceDetails(name.getQualifiedName(), null); 234 } 235 236 /** 237 * Create an inline derived table from this table 238 */ 239 @Override 240 public CampaignSourceDetails where(Condition condition) { 241 return new CampaignSourceDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 242 } 243 244 /** 245 * Create an inline derived table from this table 246 */ 247 @Override 248 public CampaignSourceDetails where(Collection<? extends Condition> conditions) { 249 return where(DSL.and(conditions)); 250 } 251 252 /** 253 * Create an inline derived table from this table 254 */ 255 @Override 256 public CampaignSourceDetails where(Condition... conditions) { 257 return where(DSL.and(conditions)); 258 } 259 260 /** 261 * Create an inline derived table from this table 262 */ 263 @Override 264 public CampaignSourceDetails where(Field<Boolean> condition) { 265 return where(DSL.condition(condition)); 266 } 267 268 /** 269 * Create an inline derived table from this table 270 */ 271 @Override 272 @PlainSQL 273 public CampaignSourceDetails where(SQL condition) { 274 return where(DSL.condition(condition)); 275 } 276 277 /** 278 * Create an inline derived table from this table 279 */ 280 @Override 281 @PlainSQL 282 public CampaignSourceDetails where(@Stringly.SQL String condition) { 283 return where(DSL.condition(condition)); 284 } 285 286 /** 287 * Create an inline derived table from this table 288 */ 289 @Override 290 @PlainSQL 291 public CampaignSourceDetails where(@Stringly.SQL String condition, Object... binds) { 292 return where(DSL.condition(condition, binds)); 293 } 294 295 /** 296 * Create an inline derived table from this table 297 */ 298 @Override 299 @PlainSQL 300 public CampaignSourceDetails where(@Stringly.SQL String condition, QueryPart... parts) { 301 return where(DSL.condition(condition, parts)); 302 } 303 304 /** 305 * Create an inline derived table from this table 306 */ 307 @Override 308 public CampaignSourceDetails whereExists(TableLike<?> select) { 309 return where(DSL.exists(select)); 310 } 311 312 /** 313 * Create an inline derived table from this table 314 */ 315 @Override 316 public CampaignSourceDetails whereNotExists(TableLike<?> select) { 317 return where(DSL.notExists(select)); 318 } 319}