001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.records.user;
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.user.common.pk.UserSessionPK;
010import com.echothree.model.data.user.common.pk.UserVisitPK;
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 UserSessions extends UpdatableRecordImpl<UserSessions> {
021
022    private static final long serialVersionUID = 1L;
023
024    /**
025     * Setter for <code>usersessions.usess_usersessionid</code>.
026     */
027    public void UserSession(UserSessionPK value) {
028        set(0, value);
029    }
030
031    /**
032     * Getter for <code>usersessions.usess_usersessionid</code>.
033     */
034    public UserSessionPK UserSession() {
035        return (UserSessionPK) get(0);
036    }
037
038    /**
039     * Setter for <code>usersessions.usess_uvis_uservisitid</code>.
040     */
041    public void UserVisit(UserVisitPK value) {
042        set(1, value);
043    }
044
045    /**
046     * Getter for <code>usersessions.usess_uvis_uservisitid</code>.
047     */
048    public UserVisitPK UserVisit() {
049        return (UserVisitPK) get(1);
050    }
051
052    /**
053     * Setter for <code>usersessions.usess_par_partyid</code>.
054     */
055    public void Party(PartyPK value) {
056        set(2, value);
057    }
058
059    /**
060     * Getter for <code>usersessions.usess_par_partyid</code>.
061     */
062    public PartyPK Party() {
063        return (PartyPK) get(2);
064    }
065
066    /**
067     * Setter for <code>usersessions.usess_prel_partyrelationshipid</code>.
068     */
069    public void PartyRelationship(PartyRelationshipPK value) {
070        set(3, value);
071    }
072
073    /**
074     * Getter for <code>usersessions.usess_prel_partyrelationshipid</code>.
075     */
076    public PartyRelationshipPK PartyRelationship() {
077        return (PartyRelationshipPK) get(3);
078    }
079
080    /**
081     * Setter for <code>usersessions.usess_identityverifiedtime</code>.
082     */
083    public void IdentityVerifiedTime(Long value) {
084        set(4, value);
085    }
086
087    /**
088     * Getter for <code>usersessions.usess_identityverifiedtime</code>.
089     */
090    public Long IdentityVerifiedTime() {
091        return (Long) get(4);
092    }
093
094    /**
095     * Setter for <code>usersessions.usess_fromtime</code>.
096     */
097    public void FromTime(Long value) {
098        set(5, value);
099    }
100
101    /**
102     * Getter for <code>usersessions.usess_fromtime</code>.
103     */
104    public Long FromTime() {
105        return (Long) get(5);
106    }
107
108    /**
109     * Setter for <code>usersessions.usess_thrutime</code>.
110     */
111    public void ThruTime(Long value) {
112        set(6, value);
113    }
114
115    /**
116     * Getter for <code>usersessions.usess_thrutime</code>.
117     */
118    public Long ThruTime() {
119        return (Long) get(6);
120    }
121
122    // -------------------------------------------------------------------------
123    // Primary key information
124    // -------------------------------------------------------------------------
125
126    @Override
127    public Record1<UserSessionPK> key() {
128        return (Record1) super.key();
129    }
130
131    // -------------------------------------------------------------------------
132    // Constructors
133    // -------------------------------------------------------------------------
134
135    /**
136     * Create a detached UserSessions
137     */
138    public UserSessions() {
139        super(com.echothree.model.jooq.server.tables.user.UserSessions.UserSessions);
140    }
141
142    /**
143     * Create a detached, initialised UserSessions
144     */
145    public UserSessions(UserSessionPK UserSession, UserVisitPK UserVisit, PartyPK Party, PartyRelationshipPK PartyRelationship, Long IdentityVerifiedTime, Long FromTime, Long ThruTime) {
146        super(com.echothree.model.jooq.server.tables.user.UserSessions.UserSessions);
147
148        UserSession(UserSession);
149        UserVisit(UserVisit);
150        Party(Party);
151        PartyRelationship(PartyRelationship);
152        IdentityVerifiedTime(IdentityVerifiedTime);
153        FromTime(FromTime);
154        ThruTime(ThruTime);
155        resetTouchedOnNotNull();
156    }
157}