/** * This class is generated by jOOQ */ package org.jooq.example.chart.db.tables.records; import java.math.BigDecimal; import javax.annotation.Generated; import org.jooq.Field; import org.jooq.Record2; import org.jooq.Row2; import org.jooq.example.chart.db.tables.SalesByFilmCategory; import org.jooq.impl.TableRecordImpl; /** * This class is generated by jOOQ. */ @Generated( value = { "http://www.jooq.org", "jOOQ version:3.8.0", "schema version:public_2", }, date = "2016-06-30T15:44:15.143Z", comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class SalesByFilmCategoryRecord extends TableRecordImpl<SalesByFilmCategoryRecord> implements Record2<String, BigDecimal> { private static final long serialVersionUID = 540624624; /** * Setter for <code>public.sales_by_film_category.category</code>. */ public void setCategory(String value) { set(0, value); } /** * Getter for <code>public.sales_by_film_category.category</code>. */ public String getCategory() { return (String) get(0); } /** * Setter for <code>public.sales_by_film_category.total_sales</code>. */ public void setTotalSales(BigDecimal value) { set(1, value); } /** * Getter for <code>public.sales_by_film_category.total_sales</code>. */ public BigDecimal getTotalSales() { return (BigDecimal) get(1); } // ------------------------------------------------------------------------- // Record2 type implementation // ------------------------------------------------------------------------- /** * {@inheritDoc} */ @Override public Row2<String, BigDecimal> fieldsRow() { return (Row2) super.fieldsRow(); } /** * {@inheritDoc} */ @Override public Row2<String, BigDecimal> valuesRow() { return (Row2) super.valuesRow(); } /** * {@inheritDoc} */ @Override public Field<String> field1() { return SalesByFilmCategory.SALES_BY_FILM_CATEGORY.CATEGORY; } /** * {@inheritDoc} */ @Override public Field<BigDecimal> field2() { return SalesByFilmCategory.SALES_BY_FILM_CATEGORY.TOTAL_SALES; } /** * {@inheritDoc} */ @Override public String value1() { return getCategory(); } /** * {@inheritDoc} */ @Override public BigDecimal value2() { return getTotalSales(); } /** * {@inheritDoc} */ @Override public SalesByFilmCategoryRecord value1(String value) { setCategory(value); return this; } /** * {@inheritDoc} */ @Override public SalesByFilmCategoryRecord value2(BigDecimal value) { setTotalSales(value); return this; } /** * {@inheritDoc} */ @Override public SalesByFilmCategoryRecord values(String value1, BigDecimal value2) { value1(value1); value2(value2); return this; } // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- /** * Create a detached SalesByFilmCategoryRecord */ public SalesByFilmCategoryRecord() { super(SalesByFilmCategory.SALES_BY_FILM_CATEGORY); } /** * Create a detached, initialised SalesByFilmCategoryRecord */ public SalesByFilmCategoryRecord(String category, BigDecimal totalSales) { super(SalesByFilmCategory.SALES_BY_FILM_CATEGORY); set(0, category); set(1, totalSales); } }