001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.training; 005 006 007import com.echothree.model.data.core.common.pk.MimeTypePK; 008import com.echothree.model.data.party.common.pk.LanguagePK; 009import com.echothree.model.data.training.common.pk.TrainingClassPK; 010import com.echothree.model.data.training.common.pk.TrainingClassTranslationPK; 011import com.echothree.model.jooq.server.KeyRegistry; 012import com.echothree.model.jooq.server.tables.core.MimeTypes.MimeTypesPath; 013import com.echothree.model.jooq.server.tables.party.Languages.LanguagesPath; 014import com.echothree.model.jooq.server.tables.training.TrainingClasses.TrainingClassesPath; 015 016import java.util.Arrays; 017import java.util.Collection; 018import java.util.List; 019 020import org.jooq.Condition; 021import org.jooq.Converter; 022import org.jooq.Field; 023import org.jooq.ForeignKey; 024import org.jooq.Name; 025import org.jooq.PlainSQL; 026import org.jooq.QueryPart; 027import org.jooq.SQL; 028import org.jooq.Stringly; 029import org.jooq.Table; 030import org.jooq.TableField; 031import org.jooq.TableLike; 032import org.jooq.TableOptions; 033import org.jooq.UniqueKey; 034import org.jooq.impl.DSL; 035import org.jooq.impl.Internal; 036import org.jooq.impl.SQLDataType; 037import org.jooq.impl.TableImpl; 038 039 040/** 041 * This class is generated by jOOQ. 042 */ 043@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 044public class TrainingClassTranslations extends TableImpl<com.echothree.model.jooq.server.records.training.TrainingClassTranslations> { 045 046 private static final long serialVersionUID = 1L; 047 048 /** 049 * The reference instance of <code>trainingclasstranslations</code> 050 */ 051 public static final TrainingClassTranslations TrainingClassTranslations = new TrainingClassTranslations(); 052 053 /** 054 * The class holding records for this type 055 */ 056 @Override 057 public Class<com.echothree.model.jooq.server.records.training.TrainingClassTranslations> getRecordType() { 058 return com.echothree.model.jooq.server.records.training.TrainingClassTranslations.class; 059 } 060 061 /** 062 * The column 063 * <code>trainingclasstranslations.trnclstr_trainingclasstranslationid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, TrainingClassTranslationPK> TRAINING_CLASS_TRANSLATION = createField(DSL.name("trnclstr_trainingclasstranslationid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, TrainingClassTranslationPK.class, id -> new com.echothree.model.data.training.common.pk.TrainingClassTranslationPK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column 069 * <code>trainingclasstranslations.trnclstr_trncls_trainingclassid</code>. 070 */ 071 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, TrainingClassPK> TRAINING_CLASS = createField(DSL.name("trnclstr_trncls_trainingclassid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, TrainingClassPK.class, id -> new com.echothree.model.data.training.common.pk.TrainingClassPK(id), primaryKey -> primaryKey.getEntityId())); 072 073 /** 074 * The column 075 * <code>trainingclasstranslations.trnclstr_lang_languageid</code>. 076 */ 077 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, LanguagePK> LANGUAGE = createField(DSL.name("trnclstr_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())); 078 079 /** 080 * The column <code>trainingclasstranslations.trnclstr_description</code>. 081 */ 082 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, String> DESCRIPTION = createField(DSL.name("trnclstr_description"), SQLDataType.VARCHAR(132).nullable(false), this, ""); 083 084 /** 085 * The column 086 * <code>trainingclasstranslations.trnclstr_overviewmimetypeid</code>. 087 */ 088 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, MimeTypePK> OVERVIEW_MIME_TYPE = createField(DSL.name("trnclstr_overviewmimetypeid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, MimeTypePK.class, id -> new com.echothree.model.data.core.common.pk.MimeTypePK(id), primaryKey -> primaryKey.getEntityId())); 089 090 /** 091 * The column <code>trainingclasstranslations.trnclstr_overview</code>. 092 */ 093 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, String> OVERVIEW = createField(DSL.name("trnclstr_overview"), SQLDataType.CLOB, this, ""); 094 095 /** 096 * The column 097 * <code>trainingclasstranslations.trnclstr_introductionmimetypeid</code>. 098 */ 099 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, MimeTypePK> INTRODUCTION_MIME_TYPE = createField(DSL.name("trnclstr_introductionmimetypeid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, MimeTypePK.class, id -> new com.echothree.model.data.core.common.pk.MimeTypePK(id), primaryKey -> primaryKey.getEntityId())); 100 101 /** 102 * The column <code>trainingclasstranslations.trnclstr_introduction</code>. 103 */ 104 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, String> INTRODUCTION = createField(DSL.name("trnclstr_introduction"), SQLDataType.CLOB, this, ""); 105 106 /** 107 * The column <code>trainingclasstranslations.trnclstr_fromtime</code>. 108 */ 109 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, Long> FROM_TIME = createField(DSL.name("trnclstr_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 110 111 /** 112 * The column <code>trainingclasstranslations.trnclstr_thrutime</code>. 113 */ 114 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, Long> THRU_TIME = createField(DSL.name("trnclstr_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 115 116 private TrainingClassTranslations(Name alias, Table<com.echothree.model.jooq.server.records.training.TrainingClassTranslations> aliased) { 117 this(alias, aliased, (Field<?>[]) null, null); 118 } 119 120 private TrainingClassTranslations(Name alias, Table<com.echothree.model.jooq.server.records.training.TrainingClassTranslations> aliased, Field<?>[] parameters, Condition where) { 121 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 122 } 123 124 /** 125 * Create an aliased <code>trainingclasstranslations</code> table reference 126 */ 127 public TrainingClassTranslations(String alias) { 128 this(DSL.name(alias), TrainingClassTranslations); 129 } 130 131 /** 132 * Create an aliased <code>trainingclasstranslations</code> table reference 133 */ 134 public TrainingClassTranslations(Name alias) { 135 this(alias, TrainingClassTranslations); 136 } 137 138 /** 139 * Create a <code>trainingclasstranslations</code> table reference 140 */ 141 public TrainingClassTranslations() { 142 this(DSL.name("trainingclasstranslations"), null); 143 } 144 145 @Override 146 public UniqueKey<com.echothree.model.jooq.server.records.training.TrainingClassTranslations> getPrimaryKey() { 147 return KeyRegistry.TRAINING_CLASS_TRANSLATIONS_PK; 148 } 149 150 @Override 151 public List<UniqueKey<com.echothree.model.jooq.server.records.training.TrainingClassTranslations>> getUniqueKeys() { 152 return Arrays.asList(KeyRegistry.TRAINING_CLASS_TRANSLATIONS_TRAINING_CLASS_AND_LANGUAGE_AND_THRU_TIME_UK); 153 } 154 155 @Override 156 public List<ForeignKey<com.echothree.model.jooq.server.records.training.TrainingClassTranslations, ?>> getReferences() { 157 return Arrays.asList(KeyRegistry.TRAINING_CLASS_TRANSLATIONS_INTRODUCTION_MIME_TYPE_FK, KeyRegistry.TRAINING_CLASS_TRANSLATIONS_LANGUAGE_FK, KeyRegistry.TRAINING_CLASS_TRANSLATIONS_OVERVIEW_MIME_TYPE_FK, KeyRegistry.TRAINING_CLASS_TRANSLATIONS_TRAINING_CLASS_FK); 158 } 159 160 private transient MimeTypesPath _trnclstr_introductionmimetypeid_fk; 161 162 /** 163 * Get the implicit join path to the <code>mimetypes</code> table, via the 164 * <code>trnclstr_introductionmimetypeid_fk</code> key. 165 */ 166 public MimeTypesPath trnclstr_introductionmimetypeid_fk() { 167 if (_trnclstr_introductionmimetypeid_fk == null) 168 _trnclstr_introductionmimetypeid_fk = new MimeTypesPath(this, KeyRegistry.TRAINING_CLASS_TRANSLATIONS_INTRODUCTION_MIME_TYPE_FK, null); 169 170 return _trnclstr_introductionmimetypeid_fk; 171 } 172 173 private transient LanguagesPath _trnclstr_lang_languageid_fk; 174 175 /** 176 * Get the implicit join path to the <code>languages</code> table. 177 */ 178 public LanguagesPath trnclstr_lang_languageid_fk() { 179 if (_trnclstr_lang_languageid_fk == null) 180 _trnclstr_lang_languageid_fk = new LanguagesPath(this, KeyRegistry.TRAINING_CLASS_TRANSLATIONS_LANGUAGE_FK, null); 181 182 return _trnclstr_lang_languageid_fk; 183 } 184 185 private transient MimeTypesPath _trnclstr_overviewmimetypeid_fk; 186 187 /** 188 * Get the implicit join path to the <code>mimetypes</code> table, via the 189 * <code>trnclstr_overviewmimetypeid_fk</code> key. 190 */ 191 public MimeTypesPath trnclstr_overviewmimetypeid_fk() { 192 if (_trnclstr_overviewmimetypeid_fk == null) 193 _trnclstr_overviewmimetypeid_fk = new MimeTypesPath(this, KeyRegistry.TRAINING_CLASS_TRANSLATIONS_OVERVIEW_MIME_TYPE_FK, null); 194 195 return _trnclstr_overviewmimetypeid_fk; 196 } 197 198 private transient TrainingClassesPath _trnclstr_trncls_trainingclassid_fk; 199 200 /** 201 * Get the implicit join path to the <code>trainingclasses</code> table. 202 */ 203 public TrainingClassesPath trnclstr_trncls_trainingclassid_fk() { 204 if (_trnclstr_trncls_trainingclassid_fk == null) 205 _trnclstr_trncls_trainingclassid_fk = new TrainingClassesPath(this, KeyRegistry.TRAINING_CLASS_TRANSLATIONS_TRAINING_CLASS_FK, null); 206 207 return _trnclstr_trncls_trainingclassid_fk; 208 } 209 210 @Override 211 public TrainingClassTranslations as(String alias) { 212 return new TrainingClassTranslations(DSL.name(alias), this); 213 } 214 215 @Override 216 public TrainingClassTranslations as(Name alias) { 217 return new TrainingClassTranslations(alias, this); 218 } 219 220 @Override 221 public TrainingClassTranslations as(Table<?> alias) { 222 return new TrainingClassTranslations(alias.getQualifiedName(), this); 223 } 224 225 /** 226 * Rename this table 227 */ 228 @Override 229 public TrainingClassTranslations rename(String name) { 230 return new TrainingClassTranslations(DSL.name(name), null); 231 } 232 233 /** 234 * Rename this table 235 */ 236 @Override 237 public TrainingClassTranslations rename(Name name) { 238 return new TrainingClassTranslations(name, null); 239 } 240 241 /** 242 * Rename this table 243 */ 244 @Override 245 public TrainingClassTranslations rename(Table<?> name) { 246 return new TrainingClassTranslations(name.getQualifiedName(), null); 247 } 248 249 /** 250 * Create an inline derived table from this table 251 */ 252 @Override 253 public TrainingClassTranslations where(Condition condition) { 254 return new TrainingClassTranslations(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 255 } 256 257 /** 258 * Create an inline derived table from this table 259 */ 260 @Override 261 public TrainingClassTranslations where(Collection<? extends Condition> conditions) { 262 return where(DSL.and(conditions)); 263 } 264 265 /** 266 * Create an inline derived table from this table 267 */ 268 @Override 269 public TrainingClassTranslations where(Condition... conditions) { 270 return where(DSL.and(conditions)); 271 } 272 273 /** 274 * Create an inline derived table from this table 275 */ 276 @Override 277 public TrainingClassTranslations where(Field<Boolean> condition) { 278 return where(DSL.condition(condition)); 279 } 280 281 /** 282 * Create an inline derived table from this table 283 */ 284 @Override 285 @PlainSQL 286 public TrainingClassTranslations where(SQL condition) { 287 return where(DSL.condition(condition)); 288 } 289 290 /** 291 * Create an inline derived table from this table 292 */ 293 @Override 294 @PlainSQL 295 public TrainingClassTranslations where(@Stringly.SQL String condition) { 296 return where(DSL.condition(condition)); 297 } 298 299 /** 300 * Create an inline derived table from this table 301 */ 302 @Override 303 @PlainSQL 304 public TrainingClassTranslations where(@Stringly.SQL String condition, Object... binds) { 305 return where(DSL.condition(condition, binds)); 306 } 307 308 /** 309 * Create an inline derived table from this table 310 */ 311 @Override 312 @PlainSQL 313 public TrainingClassTranslations where(@Stringly.SQL String condition, QueryPart... parts) { 314 return where(DSL.condition(condition, parts)); 315 } 316 317 /** 318 * Create an inline derived table from this table 319 */ 320 @Override 321 public TrainingClassTranslations whereExists(TableLike<?> select) { 322 return where(DSL.exists(select)); 323 } 324 325 /** 326 * Create an inline derived table from this table 327 */ 328 @Override 329 public TrainingClassTranslations whereNotExists(TableLike<?> select) { 330 return where(DSL.notExists(select)); 331 } 332}