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