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.TrainingClassPagePK; 010import com.echothree.model.data.training.common.pk.TrainingClassPageTranslationPK; 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.TrainingClassPages.TrainingClassPagesPath; 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 TrainingClassPageTranslations extends TableImpl<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations> { 045 046 private static final long serialVersionUID = 1L; 047 048 /** 049 * The reference instance of <code>trainingclasspagetranslations</code> 050 */ 051 public static final TrainingClassPageTranslations TrainingClassPageTranslations = new TrainingClassPageTranslations(); 052 053 /** 054 * The class holding records for this type 055 */ 056 @Override 057 public Class<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations> getRecordType() { 058 return com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations.class; 059 } 060 061 /** 062 * The column 063 * <code>trainingclasspagetranslations.trnclsptr_trainingclasspagetranslationid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations, TrainingClassPageTranslationPK> TRAINING_CLASS_PAGE_TRANSLATION = createField(DSL.name("trnclsptr_trainingclasspagetranslationid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, TrainingClassPageTranslationPK.class, id -> new com.echothree.model.data.training.common.pk.TrainingClassPageTranslationPK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column 069 * <code>trainingclasspagetranslations.trnclsptr_trnclsp_trainingclasspageid</code>. 070 */ 071 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations, TrainingClassPagePK> TRAINING_CLASS_PAGE = createField(DSL.name("trnclsptr_trnclsp_trainingclasspageid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, TrainingClassPagePK.class, id -> new com.echothree.model.data.training.common.pk.TrainingClassPagePK(id), primaryKey -> primaryKey.getEntityId())); 072 073 /** 074 * The column 075 * <code>trainingclasspagetranslations.trnclsptr_lang_languageid</code>. 076 */ 077 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations, LanguagePK> LANGUAGE = createField(DSL.name("trnclsptr_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 081 * <code>trainingclasspagetranslations.trnclsptr_description</code>. 082 */ 083 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations, String> DESCRIPTION = createField(DSL.name("trnclsptr_description"), SQLDataType.VARCHAR(132).nullable(false), this, ""); 084 085 /** 086 * The column 087 * <code>trainingclasspagetranslations.trnclsptr_pagemimetypeid</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations, MimeTypePK> PAGE_MIME_TYPE = createField(DSL.name("trnclsptr_pagemimetypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, MimeTypePK.class, id -> new com.echothree.model.data.core.common.pk.MimeTypePK(id), primaryKey -> primaryKey.getEntityId())); 090 091 /** 092 * The column <code>trainingclasspagetranslations.trnclsptr_page</code>. 093 */ 094 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations, String> PAGE = createField(DSL.name("trnclsptr_page"), SQLDataType.CLOB.nullable(false), this, ""); 095 096 /** 097 * The column <code>trainingclasspagetranslations.trnclsptr_fromtime</code>. 098 */ 099 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations, Long> FROM_TIME = createField(DSL.name("trnclsptr_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 100 101 /** 102 * The column <code>trainingclasspagetranslations.trnclsptr_thrutime</code>. 103 */ 104 public final TableField<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations, Long> THRU_TIME = createField(DSL.name("trnclsptr_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 105 106 private TrainingClassPageTranslations(Name alias, Table<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations> aliased) { 107 this(alias, aliased, (Field<?>[]) null, null); 108 } 109 110 private TrainingClassPageTranslations(Name alias, Table<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations> aliased, Field<?>[] parameters, Condition where) { 111 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 112 } 113 114 /** 115 * Create an aliased <code>trainingclasspagetranslations</code> table 116 * reference 117 */ 118 public TrainingClassPageTranslations(String alias) { 119 this(DSL.name(alias), TrainingClassPageTranslations); 120 } 121 122 /** 123 * Create an aliased <code>trainingclasspagetranslations</code> table 124 * reference 125 */ 126 public TrainingClassPageTranslations(Name alias) { 127 this(alias, TrainingClassPageTranslations); 128 } 129 130 /** 131 * Create a <code>trainingclasspagetranslations</code> table reference 132 */ 133 public TrainingClassPageTranslations() { 134 this(DSL.name("trainingclasspagetranslations"), null); 135 } 136 137 @Override 138 public UniqueKey<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations> getPrimaryKey() { 139 return KeyRegistry.TRAINING_CLASS_PAGE_TRANSLATIONS_PK; 140 } 141 142 @Override 143 public List<UniqueKey<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations>> getUniqueKeys() { 144 return Arrays.asList(KeyRegistry.TRAINING_CLASS_PAGE_TRANSLATIONS_TRAINING_CLASS_PAGE_AND_LANGUAGE_AND_THRU_TIME_UK); 145 } 146 147 @Override 148 public List<ForeignKey<com.echothree.model.jooq.server.records.training.TrainingClassPageTranslations, ?>> getReferences() { 149 return Arrays.asList(KeyRegistry.TRAINING_CLASS_PAGE_TRANSLATIONS_LANGUAGE_FK, KeyRegistry.TRAINING_CLASS_PAGE_TRANSLATIONS_PAGE_MIME_TYPE_FK, KeyRegistry.TRAINING_CLASS_PAGE_TRANSLATIONS_TRAINING_CLASS_PAGE_FK); 150 } 151 152 private transient LanguagesPath _trnclsptr_lang_languageid_fk; 153 154 /** 155 * Get the implicit join path to the <code>languages</code> table. 156 */ 157 public LanguagesPath trnclsptr_lang_languageid_fk() { 158 if (_trnclsptr_lang_languageid_fk == null) 159 _trnclsptr_lang_languageid_fk = new LanguagesPath(this, KeyRegistry.TRAINING_CLASS_PAGE_TRANSLATIONS_LANGUAGE_FK, null); 160 161 return _trnclsptr_lang_languageid_fk; 162 } 163 164 private transient MimeTypesPath _trnclsptr_pagemimetypeid_fk; 165 166 /** 167 * Get the implicit join path to the <code>mimetypes</code> table. 168 */ 169 public MimeTypesPath trnclsptr_pagemimetypeid_fk() { 170 if (_trnclsptr_pagemimetypeid_fk == null) 171 _trnclsptr_pagemimetypeid_fk = new MimeTypesPath(this, KeyRegistry.TRAINING_CLASS_PAGE_TRANSLATIONS_PAGE_MIME_TYPE_FK, null); 172 173 return _trnclsptr_pagemimetypeid_fk; 174 } 175 176 private transient TrainingClassPagesPath _trnclsptr_trnclsp_trainingclasspageid_fk; 177 178 /** 179 * Get the implicit join path to the <code>trainingclasspages</code> table. 180 */ 181 public TrainingClassPagesPath trnclsptr_trnclsp_trainingclasspageid_fk() { 182 if (_trnclsptr_trnclsp_trainingclasspageid_fk == null) 183 _trnclsptr_trnclsp_trainingclasspageid_fk = new TrainingClassPagesPath(this, KeyRegistry.TRAINING_CLASS_PAGE_TRANSLATIONS_TRAINING_CLASS_PAGE_FK, null); 184 185 return _trnclsptr_trnclsp_trainingclasspageid_fk; 186 } 187 188 @Override 189 public TrainingClassPageTranslations as(String alias) { 190 return new TrainingClassPageTranslations(DSL.name(alias), this); 191 } 192 193 @Override 194 public TrainingClassPageTranslations as(Name alias) { 195 return new TrainingClassPageTranslations(alias, this); 196 } 197 198 @Override 199 public TrainingClassPageTranslations as(Table<?> alias) { 200 return new TrainingClassPageTranslations(alias.getQualifiedName(), this); 201 } 202 203 /** 204 * Rename this table 205 */ 206 @Override 207 public TrainingClassPageTranslations rename(String name) { 208 return new TrainingClassPageTranslations(DSL.name(name), null); 209 } 210 211 /** 212 * Rename this table 213 */ 214 @Override 215 public TrainingClassPageTranslations rename(Name name) { 216 return new TrainingClassPageTranslations(name, null); 217 } 218 219 /** 220 * Rename this table 221 */ 222 @Override 223 public TrainingClassPageTranslations rename(Table<?> name) { 224 return new TrainingClassPageTranslations(name.getQualifiedName(), null); 225 } 226 227 /** 228 * Create an inline derived table from this table 229 */ 230 @Override 231 public TrainingClassPageTranslations where(Condition condition) { 232 return new TrainingClassPageTranslations(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 233 } 234 235 /** 236 * Create an inline derived table from this table 237 */ 238 @Override 239 public TrainingClassPageTranslations where(Collection<? extends Condition> conditions) { 240 return where(DSL.and(conditions)); 241 } 242 243 /** 244 * Create an inline derived table from this table 245 */ 246 @Override 247 public TrainingClassPageTranslations where(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 TrainingClassPageTranslations where(Field<Boolean> condition) { 256 return where(DSL.condition(condition)); 257 } 258 259 /** 260 * Create an inline derived table from this table 261 */ 262 @Override 263 @PlainSQL 264 public TrainingClassPageTranslations where(SQL condition) { 265 return where(DSL.condition(condition)); 266 } 267 268 /** 269 * Create an inline derived table from this table 270 */ 271 @Override 272 @PlainSQL 273 public TrainingClassPageTranslations where(@Stringly.SQL String condition) { 274 return where(DSL.condition(condition)); 275 } 276 277 /** 278 * Create an inline derived table from this table 279 */ 280 @Override 281 @PlainSQL 282 public TrainingClassPageTranslations where(@Stringly.SQL String condition, Object... binds) { 283 return where(DSL.condition(condition, binds)); 284 } 285 286 /** 287 * Create an inline derived table from this table 288 */ 289 @Override 290 @PlainSQL 291 public TrainingClassPageTranslations where(@Stringly.SQL String condition, QueryPart... parts) { 292 return where(DSL.condition(condition, parts)); 293 } 294 295 /** 296 * Create an inline derived table from this table 297 */ 298 @Override 299 public TrainingClassPageTranslations whereExists(TableLike<?> select) { 300 return where(DSL.exists(select)); 301 } 302 303 /** 304 * Create an inline derived table from this table 305 */ 306 @Override 307 public TrainingClassPageTranslations whereNotExists(TableLike<?> select) { 308 return where(DSL.notExists(select)); 309 } 310}