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