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