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