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