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