001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.uom; 005 006 007import com.echothree.model.data.uom.common.pk.UnitOfMeasureEquivalentPK; 008import com.echothree.model.data.uom.common.pk.UnitOfMeasureTypePK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.uom.UnitOfMeasureTypes.UnitOfMeasureTypesPath; 011 012import java.util.Arrays; 013import java.util.Collection; 014import java.util.List; 015 016import org.jooq.Condition; 017import org.jooq.Converter; 018import org.jooq.Field; 019import org.jooq.ForeignKey; 020import org.jooq.Name; 021import org.jooq.PlainSQL; 022import org.jooq.QueryPart; 023import org.jooq.SQL; 024import org.jooq.Stringly; 025import org.jooq.Table; 026import org.jooq.TableField; 027import org.jooq.TableLike; 028import org.jooq.TableOptions; 029import org.jooq.UniqueKey; 030import org.jooq.impl.DSL; 031import org.jooq.impl.Internal; 032import org.jooq.impl.SQLDataType; 033import org.jooq.impl.TableImpl; 034 035 036/** 037 * This class is generated by jOOQ. 038 */ 039@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 040public class UnitOfMeasureEquivalents extends TableImpl<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents> { 041 042 private static final long serialVersionUID = 1L; 043 044 /** 045 * The reference instance of <code>unitofmeasureequivalents</code> 046 */ 047 public static final UnitOfMeasureEquivalents UnitOfMeasureEquivalents = new UnitOfMeasureEquivalents(); 048 049 /** 050 * The class holding records for this type 051 */ 052 @Override 053 public Class<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents> getRecordType() { 054 return com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents.class; 055 } 056 057 /** 058 * The column 059 * <code>unitofmeasureequivalents.uomeq_unitofmeasureequivalentid</code>. 060 */ 061 public final TableField<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents, UnitOfMeasureEquivalentPK> UNIT_OF_MEASURE_EQUIVALENT = createField(DSL.name("uomeq_unitofmeasureequivalentid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, UnitOfMeasureEquivalentPK.class, id -> new com.echothree.model.data.uom.common.pk.UnitOfMeasureEquivalentPK(id), primaryKey -> primaryKey.getEntityId())); 062 063 /** 064 * The column 065 * <code>unitofmeasureequivalents.uomeq_fromunitofmeasuretypeid</code>. 066 */ 067 public final TableField<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents, UnitOfMeasureTypePK> FROM_UNIT_OF_MEASURE_TYPE = createField(DSL.name("uomeq_fromunitofmeasuretypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, UnitOfMeasureTypePK.class, id -> new com.echothree.model.data.uom.common.pk.UnitOfMeasureTypePK(id), primaryKey -> primaryKey.getEntityId())); 068 069 /** 070 * The column 071 * <code>unitofmeasureequivalents.uomeq_tounitofmeasuretypeid</code>. 072 */ 073 public final TableField<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents, UnitOfMeasureTypePK> TO_UNIT_OF_MEASURE_TYPE = createField(DSL.name("uomeq_tounitofmeasuretypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, UnitOfMeasureTypePK.class, id -> new com.echothree.model.data.uom.common.pk.UnitOfMeasureTypePK(id), primaryKey -> primaryKey.getEntityId())); 074 075 /** 076 * The column <code>unitofmeasureequivalents.uomeq_toquantity</code>. 077 */ 078 public final TableField<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents, Long> TO_QUANTITY = createField(DSL.name("uomeq_toquantity"), SQLDataType.BIGINT.nullable(false), this, ""); 079 080 /** 081 * The column <code>unitofmeasureequivalents.uomeq_fromtime</code>. 082 */ 083 public final TableField<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents, Long> FROM_TIME = createField(DSL.name("uomeq_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 084 085 /** 086 * The column <code>unitofmeasureequivalents.uomeq_thrutime</code>. 087 */ 088 public final TableField<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents, Long> THRU_TIME = createField(DSL.name("uomeq_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 089 090 private UnitOfMeasureEquivalents(Name alias, Table<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents> aliased) { 091 this(alias, aliased, (Field<?>[]) null, null); 092 } 093 094 private UnitOfMeasureEquivalents(Name alias, Table<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents> aliased, Field<?>[] parameters, Condition where) { 095 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 096 } 097 098 /** 099 * Create an aliased <code>unitofmeasureequivalents</code> table reference 100 */ 101 public UnitOfMeasureEquivalents(String alias) { 102 this(DSL.name(alias), UnitOfMeasureEquivalents); 103 } 104 105 /** 106 * Create an aliased <code>unitofmeasureequivalents</code> table reference 107 */ 108 public UnitOfMeasureEquivalents(Name alias) { 109 this(alias, UnitOfMeasureEquivalents); 110 } 111 112 /** 113 * Create a <code>unitofmeasureequivalents</code> table reference 114 */ 115 public UnitOfMeasureEquivalents() { 116 this(DSL.name("unitofmeasureequivalents"), null); 117 } 118 119 @Override 120 public UniqueKey<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents> getPrimaryKey() { 121 return KeyRegistry.UNIT_OF_MEASURE_EQUIVALENTS_PK; 122 } 123 124 @Override 125 public List<UniqueKey<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents>> getUniqueKeys() { 126 return Arrays.asList(KeyRegistry.UNIT_OF_MEASURE_EQUIVALENTS_FROM_UNIT_OF_MEASURE_TYPE_AND_TO_UNIT_OF_MEASURE_TYPE_AND_THRU_TIME_UK); 127 } 128 129 @Override 130 public List<ForeignKey<com.echothree.model.jooq.server.records.uom.UnitOfMeasureEquivalents, ?>> getReferences() { 131 return Arrays.asList(KeyRegistry.UNIT_OF_MEASURE_EQUIVALENTS_FROM_UNIT_OF_MEASURE_TYPE_FK, KeyRegistry.UNIT_OF_MEASURE_EQUIVALENTS_TO_UNIT_OF_MEASURE_TYPE_FK); 132 } 133 134 private transient UnitOfMeasureTypesPath _uomeq_fromunitofmeasuretypeid_fk; 135 136 /** 137 * Get the implicit join path to the <code>unitofmeasuretypes</code> table, 138 * via the <code>uomeq_fromunitofmeasuretypeid_fk</code> key. 139 */ 140 public UnitOfMeasureTypesPath uomeq_fromunitofmeasuretypeid_fk() { 141 if (_uomeq_fromunitofmeasuretypeid_fk == null) 142 _uomeq_fromunitofmeasuretypeid_fk = new UnitOfMeasureTypesPath(this, KeyRegistry.UNIT_OF_MEASURE_EQUIVALENTS_FROM_UNIT_OF_MEASURE_TYPE_FK, null); 143 144 return _uomeq_fromunitofmeasuretypeid_fk; 145 } 146 147 private transient UnitOfMeasureTypesPath _uomeq_tounitofmeasuretypeid_fk; 148 149 /** 150 * Get the implicit join path to the <code>unitofmeasuretypes</code> table, 151 * via the <code>uomeq_tounitofmeasuretypeid_fk</code> key. 152 */ 153 public UnitOfMeasureTypesPath uomeq_tounitofmeasuretypeid_fk() { 154 if (_uomeq_tounitofmeasuretypeid_fk == null) 155 _uomeq_tounitofmeasuretypeid_fk = new UnitOfMeasureTypesPath(this, KeyRegistry.UNIT_OF_MEASURE_EQUIVALENTS_TO_UNIT_OF_MEASURE_TYPE_FK, null); 156 157 return _uomeq_tounitofmeasuretypeid_fk; 158 } 159 160 @Override 161 public UnitOfMeasureEquivalents as(String alias) { 162 return new UnitOfMeasureEquivalents(DSL.name(alias), this); 163 } 164 165 @Override 166 public UnitOfMeasureEquivalents as(Name alias) { 167 return new UnitOfMeasureEquivalents(alias, this); 168 } 169 170 @Override 171 public UnitOfMeasureEquivalents as(Table<?> alias) { 172 return new UnitOfMeasureEquivalents(alias.getQualifiedName(), this); 173 } 174 175 /** 176 * Rename this table 177 */ 178 @Override 179 public UnitOfMeasureEquivalents rename(String name) { 180 return new UnitOfMeasureEquivalents(DSL.name(name), null); 181 } 182 183 /** 184 * Rename this table 185 */ 186 @Override 187 public UnitOfMeasureEquivalents rename(Name name) { 188 return new UnitOfMeasureEquivalents(name, null); 189 } 190 191 /** 192 * Rename this table 193 */ 194 @Override 195 public UnitOfMeasureEquivalents rename(Table<?> name) { 196 return new UnitOfMeasureEquivalents(name.getQualifiedName(), null); 197 } 198 199 /** 200 * Create an inline derived table from this table 201 */ 202 @Override 203 public UnitOfMeasureEquivalents where(Condition condition) { 204 return new UnitOfMeasureEquivalents(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 205 } 206 207 /** 208 * Create an inline derived table from this table 209 */ 210 @Override 211 public UnitOfMeasureEquivalents where(Collection<? extends 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 UnitOfMeasureEquivalents where(Condition... conditions) { 220 return where(DSL.and(conditions)); 221 } 222 223 /** 224 * Create an inline derived table from this table 225 */ 226 @Override 227 public UnitOfMeasureEquivalents where(Field<Boolean> condition) { 228 return where(DSL.condition(condition)); 229 } 230 231 /** 232 * Create an inline derived table from this table 233 */ 234 @Override 235 @PlainSQL 236 public UnitOfMeasureEquivalents where(SQL condition) { 237 return where(DSL.condition(condition)); 238 } 239 240 /** 241 * Create an inline derived table from this table 242 */ 243 @Override 244 @PlainSQL 245 public UnitOfMeasureEquivalents where(@Stringly.SQL String condition) { 246 return where(DSL.condition(condition)); 247 } 248 249 /** 250 * Create an inline derived table from this table 251 */ 252 @Override 253 @PlainSQL 254 public UnitOfMeasureEquivalents where(@Stringly.SQL String condition, Object... binds) { 255 return where(DSL.condition(condition, binds)); 256 } 257 258 /** 259 * Create an inline derived table from this table 260 */ 261 @Override 262 @PlainSQL 263 public UnitOfMeasureEquivalents where(@Stringly.SQL String condition, QueryPart... parts) { 264 return where(DSL.condition(condition, parts)); 265 } 266 267 /** 268 * Create an inline derived table from this table 269 */ 270 @Override 271 public UnitOfMeasureEquivalents whereExists(TableLike<?> select) { 272 return where(DSL.exists(select)); 273 } 274 275 /** 276 * Create an inline derived table from this table 277 */ 278 @Override 279 public UnitOfMeasureEquivalents whereNotExists(TableLike<?> select) { 280 return where(DSL.notExists(select)); 281 } 282}