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