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.PartyPK; 008import com.echothree.model.data.party.common.pk.PartyStatusPK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.party.Parties.PartiesPath; 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.Name; 021import org.jooq.PlainSQL; 022import org.jooq.QueryPart; 023import org.jooq.SQL; 024import org.jooq.Stringly; 025import org.jooq.Table; 026import org.jooq.TableField; 027import org.jooq.TableLike; 028import org.jooq.TableOptions; 029import org.jooq.UniqueKey; 030import org.jooq.impl.DSL; 031import org.jooq.impl.Internal; 032import org.jooq.impl.SQLDataType; 033import org.jooq.impl.TableImpl; 034 035 036/** 037 * This class is generated by jOOQ. 038 */ 039@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 040public class PartyStatuses extends TableImpl<com.echothree.model.jooq.server.records.party.PartyStatuses> { 041 042 private static final long serialVersionUID = 1L; 043 044 /** 045 * The reference instance of <code>partystatuses</code> 046 */ 047 public static final PartyStatuses PartyStatuses = new PartyStatuses(); 048 049 /** 050 * The class holding records for this type 051 */ 052 @Override 053 public Class<com.echothree.model.jooq.server.records.party.PartyStatuses> getRecordType() { 054 return com.echothree.model.jooq.server.records.party.PartyStatuses.class; 055 } 056 057 /** 058 * The column <code>partystatuses.parst_partystatusid</code>. 059 */ 060 public final TableField<com.echothree.model.jooq.server.records.party.PartyStatuses, PartyStatusPK> PARTY_STATUS = createField(DSL.name("parst_partystatusid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyStatusPK.class, id -> new com.echothree.model.data.party.common.pk.PartyStatusPK(id), primaryKey -> primaryKey.getEntityId())); 061 062 /** 063 * The column <code>partystatuses.parst_par_partyid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.party.PartyStatuses, PartyPK> PARTY = createField(DSL.name("parst_par_partyid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyPK.class, id -> new com.echothree.model.data.party.common.pk.PartyPK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column <code>partystatuses.parst_partycachedsearchsequence</code>. 069 */ 070 public final TableField<com.echothree.model.jooq.server.records.party.PartyStatuses, Integer> PARTY_CACHED_SEARCH_SEQUENCE = createField(DSL.name("parst_partycachedsearchsequence"), SQLDataType.INTEGER.nullable(false), this, ""); 071 072 private PartyStatuses(Name alias, Table<com.echothree.model.jooq.server.records.party.PartyStatuses> aliased) { 073 this(alias, aliased, (Field<?>[]) null, null); 074 } 075 076 private PartyStatuses(Name alias, Table<com.echothree.model.jooq.server.records.party.PartyStatuses> aliased, Field<?>[] parameters, Condition where) { 077 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 078 } 079 080 /** 081 * Create an aliased <code>partystatuses</code> table reference 082 */ 083 public PartyStatuses(String alias) { 084 this(DSL.name(alias), PartyStatuses); 085 } 086 087 /** 088 * Create an aliased <code>partystatuses</code> table reference 089 */ 090 public PartyStatuses(Name alias) { 091 this(alias, PartyStatuses); 092 } 093 094 /** 095 * Create a <code>partystatuses</code> table reference 096 */ 097 public PartyStatuses() { 098 this(DSL.name("partystatuses"), null); 099 } 100 101 @Override 102 public UniqueKey<com.echothree.model.jooq.server.records.party.PartyStatuses> getPrimaryKey() { 103 return KeyRegistry.PARTY_STATUSES_PK; 104 } 105 106 @Override 107 public List<UniqueKey<com.echothree.model.jooq.server.records.party.PartyStatuses>> getUniqueKeys() { 108 return Arrays.asList(KeyRegistry.PARTY_STATUSES_PARTY_UK); 109 } 110 111 @Override 112 public List<ForeignKey<com.echothree.model.jooq.server.records.party.PartyStatuses, ?>> getReferences() { 113 return Arrays.asList(KeyRegistry.PARTY_STATUSES_PARTY_FK); 114 } 115 116 private transient PartiesPath _parst_par_partyid_fk; 117 118 /** 119 * Get the implicit join path to the <code>parties</code> table. 120 */ 121 public PartiesPath parst_par_partyid_fk() { 122 if (_parst_par_partyid_fk == null) 123 _parst_par_partyid_fk = new PartiesPath(this, KeyRegistry.PARTY_STATUSES_PARTY_FK, null); 124 125 return _parst_par_partyid_fk; 126 } 127 128 @Override 129 public PartyStatuses as(String alias) { 130 return new PartyStatuses(DSL.name(alias), this); 131 } 132 133 @Override 134 public PartyStatuses as(Name alias) { 135 return new PartyStatuses(alias, this); 136 } 137 138 @Override 139 public PartyStatuses as(Table<?> alias) { 140 return new PartyStatuses(alias.getQualifiedName(), this); 141 } 142 143 /** 144 * Rename this table 145 */ 146 @Override 147 public PartyStatuses rename(String name) { 148 return new PartyStatuses(DSL.name(name), null); 149 } 150 151 /** 152 * Rename this table 153 */ 154 @Override 155 public PartyStatuses rename(Name name) { 156 return new PartyStatuses(name, null); 157 } 158 159 /** 160 * Rename this table 161 */ 162 @Override 163 public PartyStatuses rename(Table<?> name) { 164 return new PartyStatuses(name.getQualifiedName(), null); 165 } 166 167 /** 168 * Create an inline derived table from this table 169 */ 170 @Override 171 public PartyStatuses where(Condition condition) { 172 return new PartyStatuses(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 173 } 174 175 /** 176 * Create an inline derived table from this table 177 */ 178 @Override 179 public PartyStatuses where(Collection<? extends Condition> conditions) { 180 return where(DSL.and(conditions)); 181 } 182 183 /** 184 * Create an inline derived table from this table 185 */ 186 @Override 187 public PartyStatuses where(Condition... conditions) { 188 return where(DSL.and(conditions)); 189 } 190 191 /** 192 * Create an inline derived table from this table 193 */ 194 @Override 195 public PartyStatuses where(Field<Boolean> condition) { 196 return where(DSL.condition(condition)); 197 } 198 199 /** 200 * Create an inline derived table from this table 201 */ 202 @Override 203 @PlainSQL 204 public PartyStatuses where(SQL condition) { 205 return where(DSL.condition(condition)); 206 } 207 208 /** 209 * Create an inline derived table from this table 210 */ 211 @Override 212 @PlainSQL 213 public PartyStatuses where(@Stringly.SQL String condition) { 214 return where(DSL.condition(condition)); 215 } 216 217 /** 218 * Create an inline derived table from this table 219 */ 220 @Override 221 @PlainSQL 222 public PartyStatuses where(@Stringly.SQL String condition, Object... binds) { 223 return where(DSL.condition(condition, binds)); 224 } 225 226 /** 227 * Create an inline derived table from this table 228 */ 229 @Override 230 @PlainSQL 231 public PartyStatuses where(@Stringly.SQL String condition, QueryPart... parts) { 232 return where(DSL.condition(condition, parts)); 233 } 234 235 /** 236 * Create an inline derived table from this table 237 */ 238 @Override 239 public PartyStatuses whereExists(TableLike<?> select) { 240 return where(DSL.exists(select)); 241 } 242 243 /** 244 * Create an inline derived table from this table 245 */ 246 @Override 247 public PartyStatuses whereNotExists(TableLike<?> select) { 248 return where(DSL.notExists(select)); 249 } 250}