/**
* This class is generated by jOOQ
*/
package org.jooq.example.chart.db.tables;
import java.math.BigDecimal;
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.example.chart.db.Keys;
import org.jooq.example.chart.db.Public;
import org.jooq.example.chart.db.tables.records.PaymentP2007_05Record;
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 PaymentP2007_05 extends TableImpl<PaymentP2007_05Record> {
private static final long serialVersionUID = -493145004;
/**
* The reference instance of <code>public.payment_p2007_05</code>
*/
public static final PaymentP2007_05 PAYMENT_P2007_05 = new PaymentP2007_05();
/**
* The class holding records for this type
*/
@Override
public Class<PaymentP2007_05Record> getRecordType() {
return PaymentP2007_05Record.class;
}
/**
* The column <code>public.payment_p2007_05.payment_id</code>.
*/
public final TableField<PaymentP2007_05Record, Integer> PAYMENT_ID = createField("payment_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("nextval('payment_payment_id_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, "");
/**
* The column <code>public.payment_p2007_05.customer_id</code>.
*/
public final TableField<PaymentP2007_05Record, Integer> CUSTOMER_ID = createField("customer_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.payment_p2007_05.staff_id</code>.
*/
public final TableField<PaymentP2007_05Record, Integer> STAFF_ID = createField("staff_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.payment_p2007_05.rental_id</code>.
*/
public final TableField<PaymentP2007_05Record, Integer> RENTAL_ID = createField("rental_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.payment_p2007_05.amount</code>.
*/
public final TableField<PaymentP2007_05Record, BigDecimal> AMOUNT = createField("amount", org.jooq.impl.SQLDataType.NUMERIC.precision(5, 2).nullable(false), this, "");
/**
* The column <code>public.payment_p2007_05.payment_date</code>.
*/
public final TableField<PaymentP2007_05Record, Timestamp> PAYMENT_DATE = createField("payment_date", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "");
/**
* Create a <code>public.payment_p2007_05</code> table reference
*/
public PaymentP2007_05() {
this("payment_p2007_05", null);
}
/**
* Create an aliased <code>public.payment_p2007_05</code> table reference
*/
public PaymentP2007_05(String alias) {
this(alias, PAYMENT_P2007_05);
}
private PaymentP2007_05(String alias, Table<PaymentP2007_05Record> aliased) {
this(alias, aliased, null);
}
private PaymentP2007_05(String alias, Table<PaymentP2007_05Record> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return Public.PUBLIC;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<PaymentP2007_05Record, Integer> getIdentity() {
return Keys.IDENTITY_PAYMENT_P2007_05;
}
/**
* {@inheritDoc}
*/
@Override
public List<ForeignKey<PaymentP2007_05Record, ?>> getReferences() {
return Arrays.<ForeignKey<PaymentP2007_05Record, ?>>asList(Keys.PAYMENT_P2007_05__PAYMENT_P2007_05_CUSTOMER_ID_FKEY, Keys.PAYMENT_P2007_05__PAYMENT_P2007_05_STAFF_ID_FKEY, Keys.PAYMENT_P2007_05__PAYMENT_P2007_05_RENTAL_ID_FKEY);
}
/**
* {@inheritDoc}
*/
@Override
public PaymentP2007_05 as(String alias) {
return new PaymentP2007_05(alias, this);
}
/**
* Rename this table
*/
public PaymentP2007_05 rename(String name) {
return new PaymentP2007_05(name, null);
}
}