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