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