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