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