001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.sequence; 005 006 007import com.echothree.model.data.sequence.common.pk.SequenceDetailPK; 008import com.echothree.model.data.sequence.common.pk.SequencePK; 009import com.echothree.model.data.sequence.common.pk.SequenceTypePK; 010import com.echothree.model.jooq.server.KeyRegistry; 011import com.echothree.model.jooq.server.tables.sequence.SequenceTypes.SequenceTypesPath; 012import com.echothree.model.jooq.server.tables.sequence.Sequences.SequencesPath; 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 SequenceDetails extends TableImpl<com.echothree.model.jooq.server.records.sequence.SequenceDetails> { 046 047 private static final long serialVersionUID = 1L; 048 049 /** 050 * The reference instance of <code>sequencedetails</code> 051 */ 052 public static final SequenceDetails SequenceDetails = new SequenceDetails(); 053 054 /** 055 * The class holding records for this type 056 */ 057 @Override 058 public Class<com.echothree.model.jooq.server.records.sequence.SequenceDetails> getRecordType() { 059 return com.echothree.model.jooq.server.records.sequence.SequenceDetails.class; 060 } 061 062 /** 063 * The column <code>sequencedetails.sqdt_sequencedetailid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.sequence.SequenceDetails, SequenceDetailPK> SEQUENCE_DETAIL = createField(DSL.name("sqdt_sequencedetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SequenceDetailPK.class, id -> new com.echothree.model.data.sequence.common.pk.SequenceDetailPK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column <code>sequencedetails.sqdt_sq_sequenceid</code>. 069 */ 070 public final TableField<com.echothree.model.jooq.server.records.sequence.SequenceDetails, SequencePK> SEQUENCE = createField(DSL.name("sqdt_sq_sequenceid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SequencePK.class, id -> new com.echothree.model.data.sequence.common.pk.SequencePK(id), primaryKey -> primaryKey.getEntityId())); 071 072 /** 073 * The column <code>sequencedetails.sqdt_sqtyp_sequencetypeid</code>. 074 */ 075 public final TableField<com.echothree.model.jooq.server.records.sequence.SequenceDetails, SequenceTypePK> SEQUENCE_TYPE = createField(DSL.name("sqdt_sqtyp_sequencetypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SequenceTypePK.class, id -> new com.echothree.model.data.sequence.common.pk.SequenceTypePK(id), primaryKey -> primaryKey.getEntityId())); 076 077 /** 078 * The column <code>sequencedetails.sqdt_sequencename</code>. 079 */ 080 public final TableField<com.echothree.model.jooq.server.records.sequence.SequenceDetails, String> SEQUENCE_NAME = createField(DSL.name("sqdt_sequencename"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 081 082 /** 083 * The column <code>sequencedetails.sqdt_mask</code>. 084 */ 085 public final TableField<com.echothree.model.jooq.server.records.sequence.SequenceDetails, String> MASK = createField(DSL.name("sqdt_mask"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 086 087 /** 088 * The column <code>sequencedetails.sqdt_chunksize</code>. 089 */ 090 public final TableField<com.echothree.model.jooq.server.records.sequence.SequenceDetails, Integer> CHUNK_SIZE = createField(DSL.name("sqdt_chunksize"), SQLDataType.INTEGER, this, ""); 091 092 /** 093 * The column <code>sequencedetails.sqdt_isdefault</code>. 094 */ 095 public final TableField<com.echothree.model.jooq.server.records.sequence.SequenceDetails, Boolean> IS_DEFAULT = createField(DSL.name("sqdt_isdefault"), SQLDataType.BIT.nullable(false), this, ""); 096 097 /** 098 * The column <code>sequencedetails.sqdt_sortorder</code>. 099 */ 100 public final TableField<com.echothree.model.jooq.server.records.sequence.SequenceDetails, Integer> SORT_ORDER = createField(DSL.name("sqdt_sortorder"), SQLDataType.INTEGER.nullable(false), this, ""); 101 102 /** 103 * The column <code>sequencedetails.sqdt_fromtime</code>. 104 */ 105 public final TableField<com.echothree.model.jooq.server.records.sequence.SequenceDetails, Long> FROM_TIME = createField(DSL.name("sqdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 106 107 /** 108 * The column <code>sequencedetails.sqdt_thrutime</code>. 109 */ 110 public final TableField<com.echothree.model.jooq.server.records.sequence.SequenceDetails, Long> THRU_TIME = createField(DSL.name("sqdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 111 112 private SequenceDetails(Name alias, Table<com.echothree.model.jooq.server.records.sequence.SequenceDetails> aliased) { 113 this(alias, aliased, (Field<?>[]) null, null); 114 } 115 116 private SequenceDetails(Name alias, Table<com.echothree.model.jooq.server.records.sequence.SequenceDetails> aliased, Field<?>[] parameters, Condition where) { 117 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 118 } 119 120 /** 121 * Create an aliased <code>sequencedetails</code> table reference 122 */ 123 public SequenceDetails(String alias) { 124 this(DSL.name(alias), SequenceDetails); 125 } 126 127 /** 128 * Create an aliased <code>sequencedetails</code> table reference 129 */ 130 public SequenceDetails(Name alias) { 131 this(alias, SequenceDetails); 132 } 133 134 /** 135 * Create a <code>sequencedetails</code> table reference 136 */ 137 public SequenceDetails() { 138 this(DSL.name("sequencedetails"), null); 139 } 140 141 public <O extends Record> SequenceDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.sequence.SequenceDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.sequence.SequenceDetails> parentPath) { 142 super(path, childPath, parentPath, SequenceDetails); 143 } 144 145 /** 146 * A subtype implementing {@link Path} for simplified path-based joins. 147 */ 148 public static class SequenceDetailsPath extends SequenceDetails implements Path<com.echothree.model.jooq.server.records.sequence.SequenceDetails> { 149 150 private static final long serialVersionUID = 1L; 151 public <O extends Record> SequenceDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.sequence.SequenceDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.sequence.SequenceDetails> parentPath) { 152 super(path, childPath, parentPath); 153 } 154 private SequenceDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.sequence.SequenceDetails> aliased) { 155 super(alias, aliased); 156 } 157 158 @Override 159 public SequenceDetailsPath as(String alias) { 160 return new SequenceDetailsPath(DSL.name(alias), this); 161 } 162 163 @Override 164 public SequenceDetailsPath as(Name alias) { 165 return new SequenceDetailsPath(alias, this); 166 } 167 168 @Override 169 public SequenceDetailsPath as(Table<?> alias) { 170 return new SequenceDetailsPath(alias.getQualifiedName(), this); 171 } 172 } 173 174 @Override 175 public UniqueKey<com.echothree.model.jooq.server.records.sequence.SequenceDetails> getPrimaryKey() { 176 return KeyRegistry.SEQUENCE_DETAILS_PK; 177 } 178 179 @Override 180 public List<UniqueKey<com.echothree.model.jooq.server.records.sequence.SequenceDetails>> getUniqueKeys() { 181 return Arrays.asList(KeyRegistry.SEQUENCE_DETAILS_SEQUENCE_AND_THRU_TIME_UK, KeyRegistry.SEQUENCE_DETAILS_SEQUENCE_TYPE_AND_SEQUENCE_NAME_AND_THRU_TIME_UK); 182 } 183 184 @Override 185 public List<ForeignKey<com.echothree.model.jooq.server.records.sequence.SequenceDetails, ?>> getReferences() { 186 return Arrays.asList(KeyRegistry.SEQUENCE_DETAILS_SEQUENCE_FK, KeyRegistry.SEQUENCE_DETAILS_SEQUENCE_TYPE_FK); 187 } 188 189 private transient SequencesPath _sqdt_sq_sequenceid_fk; 190 191 /** 192 * Get the implicit join path to the <code>sequences</code> table. 193 */ 194 public SequencesPath sqdt_sq_sequenceid_fk() { 195 if (_sqdt_sq_sequenceid_fk == null) 196 _sqdt_sq_sequenceid_fk = new SequencesPath(this, KeyRegistry.SEQUENCE_DETAILS_SEQUENCE_FK, null); 197 198 return _sqdt_sq_sequenceid_fk; 199 } 200 201 private transient SequenceTypesPath _sqdt_sqtyp_sequencetypeid_fk; 202 203 /** 204 * Get the implicit join path to the <code>sequencetypes</code> table. 205 */ 206 public SequenceTypesPath sqdt_sqtyp_sequencetypeid_fk() { 207 if (_sqdt_sqtyp_sequencetypeid_fk == null) 208 _sqdt_sqtyp_sequencetypeid_fk = new SequenceTypesPath(this, KeyRegistry.SEQUENCE_DETAILS_SEQUENCE_TYPE_FK, null); 209 210 return _sqdt_sqtyp_sequencetypeid_fk; 211 } 212 213 @Override 214 public SequenceDetails as(String alias) { 215 return new SequenceDetails(DSL.name(alias), this); 216 } 217 218 @Override 219 public SequenceDetails as(Name alias) { 220 return new SequenceDetails(alias, this); 221 } 222 223 @Override 224 public SequenceDetails as(Table<?> alias) { 225 return new SequenceDetails(alias.getQualifiedName(), this); 226 } 227 228 /** 229 * Rename this table 230 */ 231 @Override 232 public SequenceDetails rename(String name) { 233 return new SequenceDetails(DSL.name(name), null); 234 } 235 236 /** 237 * Rename this table 238 */ 239 @Override 240 public SequenceDetails rename(Name name) { 241 return new SequenceDetails(name, null); 242 } 243 244 /** 245 * Rename this table 246 */ 247 @Override 248 public SequenceDetails rename(Table<?> name) { 249 return new SequenceDetails(name.getQualifiedName(), null); 250 } 251 252 /** 253 * Create an inline derived table from this table 254 */ 255 @Override 256 public SequenceDetails where(Condition condition) { 257 return new SequenceDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 258 } 259 260 /** 261 * Create an inline derived table from this table 262 */ 263 @Override 264 public SequenceDetails where(Collection<? extends Condition> conditions) { 265 return where(DSL.and(conditions)); 266 } 267 268 /** 269 * Create an inline derived table from this table 270 */ 271 @Override 272 public SequenceDetails where(Condition... conditions) { 273 return where(DSL.and(conditions)); 274 } 275 276 /** 277 * Create an inline derived table from this table 278 */ 279 @Override 280 public SequenceDetails where(Field<Boolean> condition) { 281 return where(DSL.condition(condition)); 282 } 283 284 /** 285 * Create an inline derived table from this table 286 */ 287 @Override 288 @PlainSQL 289 public SequenceDetails where(SQL condition) { 290 return where(DSL.condition(condition)); 291 } 292 293 /** 294 * Create an inline derived table from this table 295 */ 296 @Override 297 @PlainSQL 298 public SequenceDetails where(@Stringly.SQL String condition) { 299 return where(DSL.condition(condition)); 300 } 301 302 /** 303 * Create an inline derived table from this table 304 */ 305 @Override 306 @PlainSQL 307 public SequenceDetails where(@Stringly.SQL String condition, Object... binds) { 308 return where(DSL.condition(condition, binds)); 309 } 310 311 /** 312 * Create an inline derived table from this table 313 */ 314 @Override 315 @PlainSQL 316 public SequenceDetails where(@Stringly.SQL String condition, QueryPart... parts) { 317 return where(DSL.condition(condition, parts)); 318 } 319 320 /** 321 * Create an inline derived table from this table 322 */ 323 @Override 324 public SequenceDetails whereExists(TableLike<?> select) { 325 return where(DSL.exists(select)); 326 } 327 328 /** 329 * Create an inline derived table from this table 330 */ 331 @Override 332 public SequenceDetails whereNotExists(TableLike<?> select) { 333 return where(DSL.notExists(select)); 334 } 335}