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