001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.selector; 005 006 007import com.echothree.model.data.payment.common.pk.PaymentProcessorPK; 008import com.echothree.model.data.selector.common.pk.SelectorNodePK; 009import com.echothree.model.data.selector.common.pk.SelectorNodePaymentProcessorPK; 010import com.echothree.model.jooq.server.KeyRegistry; 011import com.echothree.model.jooq.server.tables.payment.PaymentProcessors.PaymentProcessorsPath; 012import com.echothree.model.jooq.server.tables.selector.SelectorNodes.SelectorNodesPath; 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 SelectorNodePaymentProcessors extends TableImpl<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors> { 043 044 private static final long serialVersionUID = 1L; 045 046 /** 047 * The reference instance of <code>selectornodepaymentprocessors</code> 048 */ 049 public static final SelectorNodePaymentProcessors SelectorNodePaymentProcessors = new SelectorNodePaymentProcessors(); 050 051 /** 052 * The class holding records for this type 053 */ 054 @Override 055 public Class<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors> getRecordType() { 056 return com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors.class; 057 } 058 059 /** 060 * The column 061 * <code>selectornodepaymentprocessors.slndpprc_selectornodepaymentprocessorid</code>. 062 */ 063 public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors, SelectorNodePaymentProcessorPK> SELECTOR_NODE_PAYMENT_PROCESSOR = createField(DSL.name("slndpprc_selectornodepaymentprocessorid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SelectorNodePaymentProcessorPK.class, id -> new com.echothree.model.data.selector.common.pk.SelectorNodePaymentProcessorPK(id), primaryKey -> primaryKey.getEntityId())); 064 065 /** 066 * The column 067 * <code>selectornodepaymentprocessors.slndpprc_slnd_selectornodeid</code>. 068 */ 069 public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors, SelectorNodePK> SELECTOR_NODE = createField(DSL.name("slndpprc_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>selectornodepaymentprocessors.slndpprc_pprc_paymentprocessorid</code>. 074 */ 075 public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors, PaymentProcessorPK> PAYMENT_PROCESSOR = createField(DSL.name("slndpprc_pprc_paymentprocessorid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PaymentProcessorPK.class, id -> new com.echothree.model.data.payment.common.pk.PaymentProcessorPK(id), primaryKey -> primaryKey.getEntityId())); 076 077 /** 078 * The column <code>selectornodepaymentprocessors.slndpprc_fromtime</code>. 079 */ 080 public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors, Long> FROM_TIME = createField(DSL.name("slndpprc_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 081 082 /** 083 * The column <code>selectornodepaymentprocessors.slndpprc_thrutime</code>. 084 */ 085 public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors, Long> THRU_TIME = createField(DSL.name("slndpprc_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 086 087 private SelectorNodePaymentProcessors(Name alias, Table<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors> aliased) { 088 this(alias, aliased, (Field<?>[]) null, null); 089 } 090 091 private SelectorNodePaymentProcessors(Name alias, Table<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors> aliased, Field<?>[] parameters, Condition where) { 092 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 093 } 094 095 /** 096 * Create an aliased <code>selectornodepaymentprocessors</code> table 097 * reference 098 */ 099 public SelectorNodePaymentProcessors(String alias) { 100 this(DSL.name(alias), SelectorNodePaymentProcessors); 101 } 102 103 /** 104 * Create an aliased <code>selectornodepaymentprocessors</code> table 105 * reference 106 */ 107 public SelectorNodePaymentProcessors(Name alias) { 108 this(alias, SelectorNodePaymentProcessors); 109 } 110 111 /** 112 * Create a <code>selectornodepaymentprocessors</code> table reference 113 */ 114 public SelectorNodePaymentProcessors() { 115 this(DSL.name("selectornodepaymentprocessors"), null); 116 } 117 118 @Override 119 public UniqueKey<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors> getPrimaryKey() { 120 return KeyRegistry.SELECTOR_NODE_PAYMENT_PROCESSORS_PK; 121 } 122 123 @Override 124 public List<UniqueKey<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors>> getUniqueKeys() { 125 return Arrays.asList(KeyRegistry.SELECTOR_NODE_PAYMENT_PROCESSORS_SELECTOR_NODE_AND_THRU_TIME_UK); 126 } 127 128 @Override 129 public List<ForeignKey<com.echothree.model.jooq.server.records.selector.SelectorNodePaymentProcessors, ?>> getReferences() { 130 return Arrays.asList(KeyRegistry.SELECTOR_NODE_PAYMENT_PROCESSORS_PAYMENT_PROCESSOR_FK, KeyRegistry.SELECTOR_NODE_PAYMENT_PROCESSORS_SELECTOR_NODE_FK); 131 } 132 133 private transient PaymentProcessorsPath _slndpprc_pprc_paymentprocessorid_fk; 134 135 /** 136 * Get the implicit join path to the <code>paymentprocessors</code> table. 137 */ 138 public PaymentProcessorsPath slndpprc_pprc_paymentprocessorid_fk() { 139 if (_slndpprc_pprc_paymentprocessorid_fk == null) 140 _slndpprc_pprc_paymentprocessorid_fk = new PaymentProcessorsPath(this, KeyRegistry.SELECTOR_NODE_PAYMENT_PROCESSORS_PAYMENT_PROCESSOR_FK, null); 141 142 return _slndpprc_pprc_paymentprocessorid_fk; 143 } 144 145 private transient SelectorNodesPath _slndpprc_slnd_selectornodeid_fk; 146 147 /** 148 * Get the implicit join path to the <code>selectornodes</code> table. 149 */ 150 public SelectorNodesPath slndpprc_slnd_selectornodeid_fk() { 151 if (_slndpprc_slnd_selectornodeid_fk == null) 152 _slndpprc_slnd_selectornodeid_fk = new SelectorNodesPath(this, KeyRegistry.SELECTOR_NODE_PAYMENT_PROCESSORS_SELECTOR_NODE_FK, null); 153 154 return _slndpprc_slnd_selectornodeid_fk; 155 } 156 157 @Override 158 public SelectorNodePaymentProcessors as(String alias) { 159 return new SelectorNodePaymentProcessors(DSL.name(alias), this); 160 } 161 162 @Override 163 public SelectorNodePaymentProcessors as(Name alias) { 164 return new SelectorNodePaymentProcessors(alias, this); 165 } 166 167 @Override 168 public SelectorNodePaymentProcessors as(Table<?> alias) { 169 return new SelectorNodePaymentProcessors(alias.getQualifiedName(), this); 170 } 171 172 /** 173 * Rename this table 174 */ 175 @Override 176 public SelectorNodePaymentProcessors rename(String name) { 177 return new SelectorNodePaymentProcessors(DSL.name(name), null); 178 } 179 180 /** 181 * Rename this table 182 */ 183 @Override 184 public SelectorNodePaymentProcessors rename(Name name) { 185 return new SelectorNodePaymentProcessors(name, null); 186 } 187 188 /** 189 * Rename this table 190 */ 191 @Override 192 public SelectorNodePaymentProcessors rename(Table<?> name) { 193 return new SelectorNodePaymentProcessors(name.getQualifiedName(), null); 194 } 195 196 /** 197 * Create an inline derived table from this table 198 */ 199 @Override 200 public SelectorNodePaymentProcessors where(Condition condition) { 201 return new SelectorNodePaymentProcessors(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 SelectorNodePaymentProcessors 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 SelectorNodePaymentProcessors 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 SelectorNodePaymentProcessors 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 SelectorNodePaymentProcessors 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 SelectorNodePaymentProcessors 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 SelectorNodePaymentProcessors 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 SelectorNodePaymentProcessors 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 SelectorNodePaymentProcessors 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 SelectorNodePaymentProcessors whereNotExists(TableLike<?> select) { 277 return where(DSL.notExists(select)); 278 } 279}