/*
 * 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.PgCast;

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_cast.oid</code>.
     */
    public void setOid(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_cast.oid</code>.
     */
    public Long getOid() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_cast.castsource</code>.
     */
    public void setCastsource(Long value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_cast.castsource</code>.
     */
    public Long getCastsource() {
        return (Long) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_cast.casttarget</code>.
     */
    public void setCasttarget(Long value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_cast.casttarget</code>.
     */
    public Long getCasttarget() {
        return (Long) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_cast.castfunc</code>.
     */
    public void setCastfunc(Long value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_cast.castfunc</code>.
     */
    public Long getCastfunc() {
        return (Long) get(3);
    }

    /**
     * Setter for <code>pg_catalog.pg_cast.castcontext</code>.
     */
    public void setCastcontext(String value) {
        set(4, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_cast.castcontext</code>.
     */
    public String getCastcontext() {
        return (String) get(4);
    }

    /**
     * Setter for <code>pg_catalog.pg_cast.castmethod</code>.
     */
    public void setCastmethod(String value) {
        set(5, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_cast.castmethod</code>.
     */
    public String getCastmethod() {
        return (String) get(5);
    }

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

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

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

    /**
     * Create a detached PgCastRecord
     */
    public PgCastRecord() {
        super(PgCast.PG_CAST);
    }

    /**
     * Create a detached, initialised PgCastRecord
     */
    public PgCastRecord(Long oid, Long castsource, Long casttarget, Long castfunc, String castcontext, String castmethod) {
        super(PgCast.PG_CAST);

        setOid(oid);
        setCastsource(castsource);
        setCasttarget(casttarget);
        setCastfunc(castfunc);
        setCastcontext(castcontext);
        setCastmethod(castmethod);
        resetChangedOnNotNull();
    }
}
