/*
 * This file is generated by jOOQ.
 */
package ervu_secret.ervu_secret.db_beans.pg_catalog.tables.records;


import ervu_secret.ervu_secret.db_beans.pg_catalog.tables.PgSubscriptionRel;

import org.jooq.Record2;
import org.jooq.impl.UpdatableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_subscription_rel.srsubid</code>.
     */
    public void setSrsubid(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_subscription_rel.srsubid</code>.
     */
    public Long getSrsubid() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_subscription_rel.srrelid</code>.
     */
    public void setSrrelid(Long value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_subscription_rel.srrelid</code>.
     */
    public Long getSrrelid() {
        return (Long) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_subscription_rel.srsubstate</code>.
     */
    public void setSrsubstate(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_subscription_rel.srsubstate</code>.
     */
    public String getSrsubstate() {
        return (String) get(2);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public void setSrsublsn(Object value) {
        set(3, value);
    }

    /**
     * @deprecated Unknown data type. If this is a qualified, user-defined type,
     * it may have been excluded from code generation. If this is a built-in
     * type, you can define an explicit {@link org.jooq.Binding} to specify how
     * this type should be handled. Deprecation can be turned off using
     * {@literal <deprecationOnUnknownTypes/>} in your code generator
     * configuration.
     */
    @Deprecated
    public Object getSrsublsn() {
        return get(3);
    }

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

    @Override
    public Record2<Long, Long> key() {
        return (Record2) super.key();
    }

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

    /**
     * Create a detached PgSubscriptionRelRecord
     */
    public PgSubscriptionRelRecord() {
        super(PgSubscriptionRel.PG_SUBSCRIPTION_REL);
    }

    /**
     * Create a detached, initialised PgSubscriptionRelRecord
     */
    public PgSubscriptionRelRecord(Long srsubid, Long srrelid, String srsubstate, Object srsublsn) {
        super(PgSubscriptionRel.PG_SUBSCRIPTION_REL);

        setSrsubid(srsubid);
        setSrrelid(srrelid);
        setSrsubstate(srsubstate);
        setSrsublsn(srsublsn);
        resetChangedOnNotNull();
    }
}
