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