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