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