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