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