/**
 * This class is generated by jOOQ
 */
package no.mesan.ark.persistering.generated.tables.records;


import javax.annotation.Generated;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import no.mesan.ark.persistering.generated.tables.FilmInStock;

import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Row1;
import org.jooq.impl.TableRecordImpl;


/**
 * This class is generated by jOOQ.
 */
@Generated(
	value = {
		"http://www.jooq.org",
		"jOOQ version:3.7.3"
	},
	comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@Entity
@Table(name = "film_in_stock", schema = "public")
public class FilmInStockRecord extends TableRecordImpl<FilmInStockRecord> implements Record1<Integer> {

	private static final long serialVersionUID = -255905461;

	/**
	 * Setter for <code>public.film_in_stock.p_film_count</code>.
	 */
	public void setPFilmCount(Integer value) {
		setValue(0, value);
	}

	/**
	 * Getter for <code>public.film_in_stock.p_film_count</code>.
	 */
	@Column(name = "p_film_count")
	public Integer getPFilmCount() {
		return (Integer) getValue(0);
	}

	// -------------------------------------------------------------------------
	// Record1 type implementation
	// -------------------------------------------------------------------------

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Row1<Integer> fieldsRow() {
		return (Row1) super.fieldsRow();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Row1<Integer> valuesRow() {
		return (Row1) super.valuesRow();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Field<Integer> field1() {
		return FilmInStock.FILM_IN_STOCK.P_FILM_COUNT;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Integer value1() {
		return getPFilmCount();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public FilmInStockRecord value1(Integer value) {
		setPFilmCount(value);
		return this;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public FilmInStockRecord values(Integer value1) {
		value1(value1);
		return this;
	}

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

	/**
	 * Create a detached FilmInStockRecord
	 */
	public FilmInStockRecord() {
		super(FilmInStock.FILM_IN_STOCK);
	}

	/**
	 * Create a detached, initialised FilmInStockRecord
	 */
	public FilmInStockRecord(Integer pFilmCount) {
		super(FilmInStock.FILM_IN_STOCK);

		setValue(0, pFilmCount);
	}
}
