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

import java.sql.Timestamp;

import org.jooq.impl.TableRecordImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>pg_catalog.pg_prepared_statement.name</code>.
     */
    public void setName(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_statement.name</code>.
     */
    public String getName() {
        return (String) get(0);
    }

    /**
     * Setter for <code>pg_catalog.pg_prepared_statement.statement</code>.
     */
    public void setStatement(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_statement.statement</code>.
     */
    public String getStatement() {
        return (String) get(1);
    }

    /**
     * Setter for <code>pg_catalog.pg_prepared_statement.prepare_time</code>.
     */
    public void setPrepareTime(Timestamp value) {
        set(2, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_statement.prepare_time</code>.
     */
    public Timestamp getPrepareTime() {
        return (Timestamp) get(2);
    }

    /**
     * Setter for <code>pg_catalog.pg_prepared_statement.parameter_types</code>.
     */
    public void setParameterTypes(Object[] value) {
        set(3, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_statement.parameter_types</code>.
     */
    public Object[] getParameterTypes() {
        return (Object[]) get(3);
    }

    /**
     * Setter for <code>pg_catalog.pg_prepared_statement.from_sql</code>.
     */
    public void setFromSql(Boolean value) {
        set(4, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_statement.from_sql</code>.
     */
    public Boolean getFromSql() {
        return (Boolean) get(4);
    }

    /**
     * Setter for <code>pg_catalog.pg_prepared_statement.generic_plans</code>.
     */
    public void setGenericPlans(Long value) {
        set(5, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_statement.generic_plans</code>.
     */
    public Long getGenericPlans() {
        return (Long) get(5);
    }

    /**
     * Setter for <code>pg_catalog.pg_prepared_statement.custom_plans</code>.
     */
    public void setCustomPlans(Long value) {
        set(6, value);
    }

    /**
     * Getter for <code>pg_catalog.pg_prepared_statement.custom_plans</code>.
     */
    public Long getCustomPlans() {
        return (Long) get(6);
    }

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

    /**
     * Create a detached PgPreparedStatementRecord
     */
    public PgPreparedStatementRecord() {
        super(PgPreparedStatement.PG_PREPARED_STATEMENT);
    }

    /**
     * Create a detached, initialised PgPreparedStatementRecord
     */
    public PgPreparedStatementRecord(String name, String statement, Timestamp prepareTime, Object[] parameterTypes, Boolean fromSql, Long genericPlans, Long customPlans) {
        super(PgPreparedStatement.PG_PREPARED_STATEMENT);

        setName(name);
        setStatement(statement);
        setPrepareTime(prepareTime);
        setParameterTypes(parameterTypes);
        setFromSql(fromSql);
        setGenericPlans(genericPlans);
        setCustomPlans(customPlans);
        resetChangedOnNotNull();
    }
}
