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