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.ChainActionDetailPK; 008import com.echothree.model.data.chain.common.pk.ChainActionPK; 009import com.echothree.model.data.chain.common.pk.ChainActionSetPK; 010import com.echothree.model.data.chain.common.pk.ChainActionTypePK; 011import com.echothree.model.jooq.server.KeyRegistry; 012import com.echothree.model.jooq.server.tables.chain.ChainActionSets.ChainActionSetsPath; 013import com.echothree.model.jooq.server.tables.chain.ChainActionTypes.ChainActionTypesPath; 014import com.echothree.model.jooq.server.tables.chain.ChainActions.ChainActionsPath; 015 016import java.util.Arrays; 017import java.util.Collection; 018import java.util.List; 019 020import org.jooq.Condition; 021import org.jooq.Converter; 022import org.jooq.Field; 023import org.jooq.ForeignKey; 024import org.jooq.InverseForeignKey; 025import org.jooq.Name; 026import org.jooq.Path; 027import org.jooq.PlainSQL; 028import org.jooq.QueryPart; 029import org.jooq.Record; 030import org.jooq.SQL; 031import org.jooq.Stringly; 032import org.jooq.Table; 033import org.jooq.TableField; 034import org.jooq.TableLike; 035import org.jooq.TableOptions; 036import org.jooq.UniqueKey; 037import org.jooq.impl.DSL; 038import org.jooq.impl.Internal; 039import org.jooq.impl.SQLDataType; 040import org.jooq.impl.TableImpl; 041 042 043/** 044 * This class is generated by jOOQ. 045 */ 046@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 047public class ChainActionDetails extends TableImpl<com.echothree.model.jooq.server.records.chain.ChainActionDetails> { 048 049 private static final long serialVersionUID = 1L; 050 051 /** 052 * The reference instance of <code>chainactiondetails</code> 053 */ 054 public static final ChainActionDetails ChainActionDetails = new ChainActionDetails(); 055 056 /** 057 * The class holding records for this type 058 */ 059 @Override 060 public Class<com.echothree.model.jooq.server.records.chain.ChainActionDetails> getRecordType() { 061 return com.echothree.model.jooq.server.records.chain.ChainActionDetails.class; 062 } 063 064 /** 065 * The column <code>chainactiondetails.chnactdt_chainactiondetailid</code>. 066 */ 067 public final TableField<com.echothree.model.jooq.server.records.chain.ChainActionDetails, ChainActionDetailPK> CHAIN_ACTION_DETAIL = createField(DSL.name("chnactdt_chainactiondetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ChainActionDetailPK.class, id -> new com.echothree.model.data.chain.common.pk.ChainActionDetailPK(id), primaryKey -> primaryKey.getEntityId())); 068 069 /** 070 * The column <code>chainactiondetails.chnactdt_chnact_chainactionid</code>. 071 */ 072 public final TableField<com.echothree.model.jooq.server.records.chain.ChainActionDetails, ChainActionPK> CHAIN_ACTION = createField(DSL.name("chnactdt_chnact_chainactionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ChainActionPK.class, id -> new com.echothree.model.data.chain.common.pk.ChainActionPK(id), primaryKey -> primaryKey.getEntityId())); 073 074 /** 075 * The column 076 * <code>chainactiondetails.chnactdt_chnactst_chainactionsetid</code>. 077 */ 078 public final TableField<com.echothree.model.jooq.server.records.chain.ChainActionDetails, ChainActionSetPK> CHAIN_ACTION_SET = createField(DSL.name("chnactdt_chnactst_chainactionsetid"), 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())); 079 080 /** 081 * The column <code>chainactiondetails.chnactdt_chainactionname</code>. 082 */ 083 public final TableField<com.echothree.model.jooq.server.records.chain.ChainActionDetails, String> CHAIN_ACTION_NAME = createField(DSL.name("chnactdt_chainactionname"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 084 085 /** 086 * The column 087 * <code>chainactiondetails.chnactdt_chnacttyp_chainactiontypeid</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.chain.ChainActionDetails, ChainActionTypePK> CHAIN_ACTION_TYPE = createField(DSL.name("chnactdt_chnacttyp_chainactiontypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ChainActionTypePK.class, id -> new com.echothree.model.data.chain.common.pk.ChainActionTypePK(id), primaryKey -> primaryKey.getEntityId())); 090 091 /** 092 * The column <code>chainactiondetails.chnactdt_sortorder</code>. 093 */ 094 public final TableField<com.echothree.model.jooq.server.records.chain.ChainActionDetails, Integer> SORT_ORDER = createField(DSL.name("chnactdt_sortorder"), SQLDataType.INTEGER.nullable(false), this, ""); 095 096 /** 097 * The column <code>chainactiondetails.chnactdt_fromtime</code>. 098 */ 099 public final TableField<com.echothree.model.jooq.server.records.chain.ChainActionDetails, Long> FROM_TIME = createField(DSL.name("chnactdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 100 101 /** 102 * The column <code>chainactiondetails.chnactdt_thrutime</code>. 103 */ 104 public final TableField<com.echothree.model.jooq.server.records.chain.ChainActionDetails, Long> THRU_TIME = createField(DSL.name("chnactdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 105 106 private ChainActionDetails(Name alias, Table<com.echothree.model.jooq.server.records.chain.ChainActionDetails> aliased) { 107 this(alias, aliased, (Field<?>[]) null, null); 108 } 109 110 private ChainActionDetails(Name alias, Table<com.echothree.model.jooq.server.records.chain.ChainActionDetails> aliased, Field<?>[] parameters, Condition where) { 111 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 112 } 113 114 /** 115 * Create an aliased <code>chainactiondetails</code> table reference 116 */ 117 public ChainActionDetails(String alias) { 118 this(DSL.name(alias), ChainActionDetails); 119 } 120 121 /** 122 * Create an aliased <code>chainactiondetails</code> table reference 123 */ 124 public ChainActionDetails(Name alias) { 125 this(alias, ChainActionDetails); 126 } 127 128 /** 129 * Create a <code>chainactiondetails</code> table reference 130 */ 131 public ChainActionDetails() { 132 this(DSL.name("chainactiondetails"), null); 133 } 134 135 public <O extends Record> ChainActionDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.chain.ChainActionDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.chain.ChainActionDetails> parentPath) { 136 super(path, childPath, parentPath, ChainActionDetails); 137 } 138 139 /** 140 * A subtype implementing {@link Path} for simplified path-based joins. 141 */ 142 public static class ChainActionDetailsPath extends ChainActionDetails implements Path<com.echothree.model.jooq.server.records.chain.ChainActionDetails> { 143 144 private static final long serialVersionUID = 1L; 145 public <O extends Record> ChainActionDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.chain.ChainActionDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.chain.ChainActionDetails> parentPath) { 146 super(path, childPath, parentPath); 147 } 148 private ChainActionDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.chain.ChainActionDetails> aliased) { 149 super(alias, aliased); 150 } 151 152 @Override 153 public ChainActionDetailsPath as(String alias) { 154 return new ChainActionDetailsPath(DSL.name(alias), this); 155 } 156 157 @Override 158 public ChainActionDetailsPath as(Name alias) { 159 return new ChainActionDetailsPath(alias, this); 160 } 161 162 @Override 163 public ChainActionDetailsPath as(Table<?> alias) { 164 return new ChainActionDetailsPath(alias.getQualifiedName(), this); 165 } 166 } 167 168 @Override 169 public UniqueKey<com.echothree.model.jooq.server.records.chain.ChainActionDetails> getPrimaryKey() { 170 return KeyRegistry.CHAIN_ACTION_DETAILS_PK; 171 } 172 173 @Override 174 public List<UniqueKey<com.echothree.model.jooq.server.records.chain.ChainActionDetails>> getUniqueKeys() { 175 return Arrays.asList(KeyRegistry.CHAIN_ACTION_DETAILS_CHAIN_ACTION_AND_THRU_TIME_UK, KeyRegistry.CHAIN_ACTION_DETAILS_CHAIN_ACTION_SET_AND_CHAIN_ACTION_NAME_AND_THRU_TIME_UK); 176 } 177 178 @Override 179 public List<ForeignKey<com.echothree.model.jooq.server.records.chain.ChainActionDetails, ?>> getReferences() { 180 return Arrays.asList(KeyRegistry.CHAIN_ACTION_DETAILS_CHAIN_ACTION_FK, KeyRegistry.CHAIN_ACTION_DETAILS_CHAIN_ACTION_SET_FK, KeyRegistry.CHAIN_ACTION_DETAILS_CHAIN_ACTION_TYPE_FK); 181 } 182 183 private transient ChainActionsPath _chnactdt_chnact_chainactionid_fk; 184 185 /** 186 * Get the implicit join path to the <code>chainactions</code> table. 187 */ 188 public ChainActionsPath chnactdt_chnact_chainactionid_fk() { 189 if (_chnactdt_chnact_chainactionid_fk == null) 190 _chnactdt_chnact_chainactionid_fk = new ChainActionsPath(this, KeyRegistry.CHAIN_ACTION_DETAILS_CHAIN_ACTION_FK, null); 191 192 return _chnactdt_chnact_chainactionid_fk; 193 } 194 195 private transient ChainActionSetsPath _chnactdt_chnactst_chainactionsetid_fk; 196 197 /** 198 * Get the implicit join path to the <code>chainactionsets</code> table. 199 */ 200 public ChainActionSetsPath chnactdt_chnactst_chainactionsetid_fk() { 201 if (_chnactdt_chnactst_chainactionsetid_fk == null) 202 _chnactdt_chnactst_chainactionsetid_fk = new ChainActionSetsPath(this, KeyRegistry.CHAIN_ACTION_DETAILS_CHAIN_ACTION_SET_FK, null); 203 204 return _chnactdt_chnactst_chainactionsetid_fk; 205 } 206 207 private transient ChainActionTypesPath _chnactdt_chnacttyp_chainactiontypeid_fk; 208 209 /** 210 * Get the implicit join path to the <code>chainactiontypes</code> table. 211 */ 212 public ChainActionTypesPath chnactdt_chnacttyp_chainactiontypeid_fk() { 213 if (_chnactdt_chnacttyp_chainactiontypeid_fk == null) 214 _chnactdt_chnacttyp_chainactiontypeid_fk = new ChainActionTypesPath(this, KeyRegistry.CHAIN_ACTION_DETAILS_CHAIN_ACTION_TYPE_FK, null); 215 216 return _chnactdt_chnacttyp_chainactiontypeid_fk; 217 } 218 219 @Override 220 public ChainActionDetails as(String alias) { 221 return new ChainActionDetails(DSL.name(alias), this); 222 } 223 224 @Override 225 public ChainActionDetails as(Name alias) { 226 return new ChainActionDetails(alias, this); 227 } 228 229 @Override 230 public ChainActionDetails as(Table<?> alias) { 231 return new ChainActionDetails(alias.getQualifiedName(), this); 232 } 233 234 /** 235 * Rename this table 236 */ 237 @Override 238 public ChainActionDetails rename(String name) { 239 return new ChainActionDetails(DSL.name(name), null); 240 } 241 242 /** 243 * Rename this table 244 */ 245 @Override 246 public ChainActionDetails rename(Name name) { 247 return new ChainActionDetails(name, null); 248 } 249 250 /** 251 * Rename this table 252 */ 253 @Override 254 public ChainActionDetails rename(Table<?> name) { 255 return new ChainActionDetails(name.getQualifiedName(), null); 256 } 257 258 /** 259 * Create an inline derived table from this table 260 */ 261 @Override 262 public ChainActionDetails where(Condition condition) { 263 return new ChainActionDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 264 } 265 266 /** 267 * Create an inline derived table from this table 268 */ 269 @Override 270 public ChainActionDetails where(Collection<? extends Condition> conditions) { 271 return where(DSL.and(conditions)); 272 } 273 274 /** 275 * Create an inline derived table from this table 276 */ 277 @Override 278 public ChainActionDetails where(Condition... conditions) { 279 return where(DSL.and(conditions)); 280 } 281 282 /** 283 * Create an inline derived table from this table 284 */ 285 @Override 286 public ChainActionDetails where(Field<Boolean> condition) { 287 return where(DSL.condition(condition)); 288 } 289 290 /** 291 * Create an inline derived table from this table 292 */ 293 @Override 294 @PlainSQL 295 public ChainActionDetails where(SQL condition) { 296 return where(DSL.condition(condition)); 297 } 298 299 /** 300 * Create an inline derived table from this table 301 */ 302 @Override 303 @PlainSQL 304 public ChainActionDetails where(@Stringly.SQL String condition) { 305 return where(DSL.condition(condition)); 306 } 307 308 /** 309 * Create an inline derived table from this table 310 */ 311 @Override 312 @PlainSQL 313 public ChainActionDetails where(@Stringly.SQL String condition, Object... binds) { 314 return where(DSL.condition(condition, binds)); 315 } 316 317 /** 318 * Create an inline derived table from this table 319 */ 320 @Override 321 @PlainSQL 322 public ChainActionDetails where(@Stringly.SQL String condition, QueryPart... parts) { 323 return where(DSL.condition(condition, parts)); 324 } 325 326 /** 327 * Create an inline derived table from this table 328 */ 329 @Override 330 public ChainActionDetails whereExists(TableLike<?> select) { 331 return where(DSL.exists(select)); 332 } 333 334 /** 335 * Create an inline derived table from this table 336 */ 337 @Override 338 public ChainActionDetails whereNotExists(TableLike<?> select) { 339 return where(DSL.notExists(select)); 340 } 341}