/**
* 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.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.CategoryRecord;
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 Category extends TableImpl<CategoryRecord> {
private static final long serialVersionUID = 1281315409;
/**
* The reference instance of <code>public.category</code>
*/
public static final Category CATEGORY = new Category();
/**
* The class holding records for this type
*/
@Override
public Class<CategoryRecord> getRecordType() {
return CategoryRecord.class;
}
/**
* The column <code>public.category.category_id</code>.
*/
public final TableField<CategoryRecord, Integer> CATEGORY_ID = createField("category_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('category_category_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, "");
/**
* The column <code>public.category.name</code>.
*/
public final TableField<CategoryRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(25).nullable(false), this, "");
/**
* The column <code>public.category.last_update</code>.
*/
public final TableField<CategoryRecord, 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.category</code> table reference
*/
public Category() {
this("category", null);
}
/**
* Create an aliased <code>public.category</code> table reference
*/
public Category(String alias) {
this(alias, CATEGORY);
}
private Category(String alias, Table<CategoryRecord> aliased) {
this(alias, aliased, null);
}
private Category(String alias, Table<CategoryRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Public.PUBLIC;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<CategoryRecord, Integer> getIdentity() {
return Keys.IDENTITY_CATEGORY;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<CategoryRecord> getPrimaryKey() {
return Keys.CATEGORY_PKEY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<CategoryRecord>> getKeys() {
return Arrays.<UniqueKey<CategoryRecord>>asList(Keys.CATEGORY_PKEY);
}
/**
* {@inheritDoc}
*/
@Override
public Category as(String alias) {
return new Category(alias, this);
}
/**
* Rename this table
*/
public Category rename(String name) {
return new Category(name, null);
}
}