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