/**
* This class is generated by jOOQ
*/
package org.jooq.example.chart.db.tables;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.example.chart.db.Keys;
import org.jooq.example.chart.db.Public;
import org.jooq.example.chart.db.tables.records.InventoryRecord;
import org.jooq.impl.TableImpl;
/**
* 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 Inventory extends TableImpl<InventoryRecord> {
private static final long serialVersionUID = -814800435;
/**
* The reference instance of <code>public.inventory</code>
*/
public static final Inventory INVENTORY = new Inventory();
/**
* The class holding records for this type
*/
@Override
public Class<InventoryRecord> getRecordType() {
return InventoryRecord.class;
}
/**
* The column <code>public.inventory.inventory_id</code>.
*/
public final TableField<InventoryRecord, Integer> INVENTORY_ID = createField("inventory_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('inventory_inventory_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, "");
/**
* The column <code>public.inventory.film_id</code>.
*/
public final TableField<InventoryRecord, Integer> FILM_ID = createField("film_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.inventory.store_id</code>.
*/
public final TableField<InventoryRecord, Integer> STORE_ID = createField("store_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.inventory.last_update</code>.
*/
public final TableField<InventoryRecord, Timestamp> LAST_UPDATE = createField("last_update", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "");
/**
* Create a <code>public.inventory</code> table reference
*/
public Inventory() {
this("inventory", null);
}
/**
* Create an aliased <code>public.inventory</code> table reference
*/
public Inventory(String alias) {
this(alias, INVENTORY);
}
private Inventory(String alias, Table<InventoryRecord> aliased) {
this(alias, aliased, null);
}
private Inventory(String alias, Table<InventoryRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Public.PUBLIC;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<InventoryRecord, Integer> getIdentity() {
return Keys.IDENTITY_INVENTORY;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<InventoryRecord> getPrimaryKey() {
return Keys.INVENTORY_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<InventoryRecord>> getKeys() {
return Arrays.<UniqueKey<InventoryRecord>>asList(Keys.INVENTORY_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public List<ForeignKey<InventoryRecord, ?>> getReferences() {
return Arrays.<ForeignKey<InventoryRecord, ?>>asList(Keys.INVENTORY__INVENTORY_FILM_ID_FKEY, Keys.INVENTORY__INVENTORY_STORE_ID_FKEY);
}
/**
* {@inheritDoc}
*/
@Override
public Inventory as(String alias) {
return new Inventory(alias, this);
}
/**
* Rename this table
*/
public Inventory rename(String name) {
return new Inventory(name, null);
}
}