/*
 * This file is generated by jOOQ.
 */
package ervu_dashboard.ervu_dashboard.db_beans.security.tables.records;


import ervu_dashboard.ervu_dashboard.db_beans.security.tables.UserAccountRefreshToken;

import java.sql.Timestamp;

import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserAccountRefreshTokenRecord extends UpdatableRecordImpl<UserAccountRefreshTokenRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>security.user_account_refresh_token.user_account_refresh_token_id</code>.
     */
    public void setUserAccountRefreshTokenId(String value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>security.user_account_refresh_token.user_account_refresh_token_id</code>.
     */
    public String getUserAccountRefreshTokenId() {
        return (String) get(0);
    }

    /**
     * Setter for
     * <code>security.user_account_refresh_token.user_account_id</code>.
     */
    public void setUserAccountId(String value) {
        set(1, value);
    }

    /**
     * Getter for
     * <code>security.user_account_refresh_token.user_account_id</code>.
     */
    public String getUserAccountId() {
        return (String) get(1);
    }

    /**
     * Setter for
     * <code>security.user_account_refresh_token.refresh_token</code>.
     */
    public void setRefreshToken(String value) {
        set(2, value);
    }

    /**
     * Getter for
     * <code>security.user_account_refresh_token.refresh_token</code>.
     */
    public String getRefreshToken() {
        return (String) get(2);
    }

    /**
     * Setter for <code>security.user_account_refresh_token.access_token</code>.
     */
    public void setAccessToken(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>security.user_account_refresh_token.access_token</code>.
     */
    public String getAccessToken() {
        return (String) get(3);
    }

    /**
     * Setter for
     * <code>security.user_account_refresh_token.expiration_time</code>.
     */
    public void setExpirationTime(Timestamp value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>security.user_account_refresh_token.expiration_time</code>.
     */
    public Timestamp getExpirationTime() {
        return (Timestamp) get(4);
    }

    // -------------------------------------------------------------------------
    // Primary key information
    // -------------------------------------------------------------------------

    @Override
    public Record1<String> key() {
        return (Record1) super.key();
    }

    // -------------------------------------------------------------------------
    // Constructors
    // -------------------------------------------------------------------------

    /**
     * Create a detached UserAccountRefreshTokenRecord
     */
    public UserAccountRefreshTokenRecord() {
        super(UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN);
    }

    /**
     * Create a detached, initialised UserAccountRefreshTokenRecord
     */
    public UserAccountRefreshTokenRecord(String userAccountRefreshTokenId, String userAccountId, String refreshToken, String accessToken, Timestamp expirationTime) {
        super(UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN);

        setUserAccountRefreshTokenId(userAccountRefreshTokenId);
        setUserAccountId(userAccountId);
        setRefreshToken(refreshToken);
        setAccessToken(accessToken);
        setExpirationTime(expirationTime);
        resetChangedOnNotNull();
    }
}
