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