/** * This class is generated by jOOQ */ package classes.tables; import classes.Keys; import classes.Public; import classes.tables.records.PositionsRecord; import java.util.Arrays; import java.util.List; import javax.annotation.Generated; import org.jooq.Field; import org.jooq.Identity; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; import org.jooq.UniqueKey; import org.jooq.impl.TableImpl; /** * This class is generated by jOOQ. */ @Generated( value = { "http://www.jooq.org", "jOOQ version:3.8.6" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Positions extends TableImpl { private static final long serialVersionUID = 266128610; /** * The reference instance of public.positions */ public static final Positions POSITIONS = new Positions(); /** * The class holding records for this type */ @Override public Class getRecordType() { return PositionsRecord.class; } /** * The column public.positions.position_id. */ public final TableField POSITION_ID = createField("position_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('positions_position_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column public.positions.name. */ public final TableField NAME = createField("name", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); /** * The column public.positions.description. */ public final TableField DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.CLOB, this, ""); /** * Create a public.positions table reference */ public Positions() { this("positions", null); } /** * Create an aliased public.positions table reference */ public Positions(String alias) { this(alias, POSITIONS); } private Positions(String alias, Table aliased) { this(alias, aliased, null); } private Positions(String alias, Table aliased, Field[] parameters) { super(alias, null, aliased, parameters, ""); } /** * {@inheritDoc} */ @Override public Schema getSchema() { return Public.PUBLIC; } /** * {@inheritDoc} */ @Override public Identity getIdentity() { return Keys.IDENTITY_POSITIONS; } /** * {@inheritDoc} */ @Override public UniqueKey getPrimaryKey() { return Keys.POSITIONS_PKEY; } /** * {@inheritDoc} */ @Override public List> getKeys() { return Arrays.>asList(Keys.POSITIONS_PKEY); } /** * {@inheritDoc} */ @Override public Positions as(String alias) { return new Positions(alias, this); } /** * Rename this table */ public Positions rename(String name) { return new Positions(name, null); } }