001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.records.cancellationpolicy; 005 006 007import com.echothree.model.data.cancellationpolicy.common.pk.CancellationPolicyPK; 008import com.echothree.model.data.cancellationpolicy.common.pk.CancellationPolicyReasonPK; 009import com.echothree.model.data.cancellationpolicy.common.pk.CancellationReasonPK; 010 011import org.jooq.Record1; 012import org.jooq.impl.UpdatableRecordImpl; 013 014 015/** 016 * This class is generated by jOOQ. 017 */ 018@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 019public class CancellationPolicyReasons extends UpdatableRecordImpl<CancellationPolicyReasons> { 020 021 private static final long serialVersionUID = 1L; 022 023 /** 024 * Setter for 025 * <code>cancellationpolicyreasons.cnclplcyrsn_cancellationpolicyreasonid</code>. 026 */ 027 public void CancellationPolicyReason(CancellationPolicyReasonPK value) { 028 set(0, value); 029 } 030 031 /** 032 * Getter for 033 * <code>cancellationpolicyreasons.cnclplcyrsn_cancellationpolicyreasonid</code>. 034 */ 035 public CancellationPolicyReasonPK CancellationPolicyReason() { 036 return (CancellationPolicyReasonPK) get(0); 037 } 038 039 /** 040 * Setter for 041 * <code>cancellationpolicyreasons.cnclplcyrsn_cnclplcy_cancellationpolicyid</code>. 042 */ 043 public void CancellationPolicy(CancellationPolicyPK value) { 044 set(1, value); 045 } 046 047 /** 048 * Getter for 049 * <code>cancellationpolicyreasons.cnclplcyrsn_cnclplcy_cancellationpolicyid</code>. 050 */ 051 public CancellationPolicyPK CancellationPolicy() { 052 return (CancellationPolicyPK) get(1); 053 } 054 055 /** 056 * Setter for 057 * <code>cancellationpolicyreasons.cnclplcyrsn_cnclrsn_cancellationreasonid</code>. 058 */ 059 public void CancellationReason(CancellationReasonPK value) { 060 set(2, value); 061 } 062 063 /** 064 * Getter for 065 * <code>cancellationpolicyreasons.cnclplcyrsn_cnclrsn_cancellationreasonid</code>. 066 */ 067 public CancellationReasonPK CancellationReason() { 068 return (CancellationReasonPK) get(2); 069 } 070 071 /** 072 * Setter for <code>cancellationpolicyreasons.cnclplcyrsn_isdefault</code>. 073 */ 074 public void IsDefault(Boolean value) { 075 set(3, value); 076 } 077 078 /** 079 * Getter for <code>cancellationpolicyreasons.cnclplcyrsn_isdefault</code>. 080 */ 081 public Boolean IsDefault() { 082 return (Boolean) get(3); 083 } 084 085 /** 086 * Setter for <code>cancellationpolicyreasons.cnclplcyrsn_sortorder</code>. 087 */ 088 public void SortOrder(Integer value) { 089 set(4, value); 090 } 091 092 /** 093 * Getter for <code>cancellationpolicyreasons.cnclplcyrsn_sortorder</code>. 094 */ 095 public Integer SortOrder() { 096 return (Integer) get(4); 097 } 098 099 /** 100 * Setter for <code>cancellationpolicyreasons.cnclplcyrsn_fromtime</code>. 101 */ 102 public void FromTime(Long value) { 103 set(5, value); 104 } 105 106 /** 107 * Getter for <code>cancellationpolicyreasons.cnclplcyrsn_fromtime</code>. 108 */ 109 public Long FromTime() { 110 return (Long) get(5); 111 } 112 113 /** 114 * Setter for <code>cancellationpolicyreasons.cnclplcyrsn_thrutime</code>. 115 */ 116 public void ThruTime(Long value) { 117 set(6, value); 118 } 119 120 /** 121 * Getter for <code>cancellationpolicyreasons.cnclplcyrsn_thrutime</code>. 122 */ 123 public Long ThruTime() { 124 return (Long) get(6); 125 } 126 127 // ------------------------------------------------------------------------- 128 // Primary key information 129 // ------------------------------------------------------------------------- 130 131 @Override 132 public Record1<CancellationPolicyReasonPK> key() { 133 return (Record1) super.key(); 134 } 135 136 // ------------------------------------------------------------------------- 137 // Constructors 138 // ------------------------------------------------------------------------- 139 140 /** 141 * Create a detached CancellationPolicyReasons 142 */ 143 public CancellationPolicyReasons() { 144 super(com.echothree.model.jooq.server.tables.cancellationpolicy.CancellationPolicyReasons.CancellationPolicyReasons); 145 } 146 147 /** 148 * Create a detached, initialised CancellationPolicyReasons 149 */ 150 public CancellationPolicyReasons(CancellationPolicyReasonPK CancellationPolicyReason, CancellationPolicyPK CancellationPolicy, CancellationReasonPK CancellationReason, Boolean IsDefault, Integer SortOrder, Long FromTime, Long ThruTime) { 151 super(com.echothree.model.jooq.server.tables.cancellationpolicy.CancellationPolicyReasons.CancellationPolicyReasons); 152 153 CancellationPolicyReason(CancellationPolicyReason); 154 CancellationPolicy(CancellationPolicy); 155 CancellationReason(CancellationReason); 156 IsDefault(IsDefault); 157 SortOrder(SortOrder); 158 FromTime(FromTime); 159 ThruTime(ThruTime); 160 resetTouchedOnNotNull(); 161 } 162}