/*
 * This file is generated by jOOQ.
 */
package ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables;


import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.Public;
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.records.InteractionLogRecord;

import java.sql.Timestamp;
import java.util.Collection;

import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
import org.jooq.SQL;
import org.jooq.Schema;
import org.jooq.Select;
import org.jooq.Stringly;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class InteractionLog extends TableImpl<InteractionLogRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>public.interaction_log</code>
     */
    public static final InteractionLog INTERACTION_LOG = new InteractionLog();

    /**
     * The class holding records for this type
     */
    @Override
    public Class<InteractionLogRecord> getRecordType() {
        return InteractionLogRecord.class;
    }

    /**
     * The column <code>public.interaction_log.id</code>.
     */
    public final TableField<InteractionLogRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");

    /**
     * The column <code>public.interaction_log.sent_date</code>.
     */
    public final TableField<InteractionLogRecord, Timestamp> SENT_DATE = createField(DSL.name("sent_date"), SQLDataType.TIMESTAMP(0), this, "");

    /**
     * The column <code>public.interaction_log.form</code>.
     */
    public final TableField<InteractionLogRecord, String> FORM = createField(DSL.name("form"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.interaction_log.sender</code>.
     */
    public final TableField<InteractionLogRecord, String> SENDER = createField(DSL.name("sender"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.interaction_log.status</code>.
     */
    public final TableField<InteractionLogRecord, String> STATUS = createField(DSL.name("status"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.interaction_log.file_name</code>.
     */
    public final TableField<InteractionLogRecord, String> FILE_NAME = createField(DSL.name("file_name"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.interaction_log.records_sent</code>.
     */
    public final TableField<InteractionLogRecord, Integer> RECORDS_SENT = createField(DSL.name("records_sent"), SQLDataType.INTEGER, this, "");

    /**
     * The column <code>public.interaction_log.records_accepted</code>.
     */
    public final TableField<InteractionLogRecord, Integer> RECORDS_ACCEPTED = createField(DSL.name("records_accepted"), SQLDataType.INTEGER, this, "");

    /**
     * The column <code>public.interaction_log.file_id</code>.
     */
    public final TableField<InteractionLogRecord, String> FILE_ID = createField(DSL.name("file_id"), SQLDataType.VARCHAR(36), this, "");

    /**
     * The column <code>public.interaction_log.ervu_id</code>.
     */
    public final TableField<InteractionLogRecord, String> ERVU_ID = createField(DSL.name("ervu_id"), SQLDataType.VARCHAR(36), this, "");

    private InteractionLog(Name alias, Table<InteractionLogRecord> aliased) {
        this(alias, aliased, (Field<?>[]) null, null);
    }

    private InteractionLog(Name alias, Table<InteractionLogRecord> aliased, Field<?>[] parameters, Condition where) {
        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
    }

    /**
     * Create an aliased <code>public.interaction_log</code> table reference
     */
    public InteractionLog(String alias) {
        this(DSL.name(alias), INTERACTION_LOG);
    }

    /**
     * Create an aliased <code>public.interaction_log</code> table reference
     */
    public InteractionLog(Name alias) {
        this(alias, INTERACTION_LOG);
    }

    /**
     * Create a <code>public.interaction_log</code> table reference
     */
    public InteractionLog() {
        this(DSL.name("interaction_log"), null);
    }

    @Override
    public Schema getSchema() {
        return aliased() ? null : Public.PUBLIC;
    }

    @Override
    public Identity<InteractionLogRecord, Long> getIdentity() {
        return (Identity<InteractionLogRecord, Long>) super.getIdentity();
    }

    @Override
    public InteractionLog as(String alias) {
        return new InteractionLog(DSL.name(alias), this);
    }

    @Override
    public InteractionLog as(Name alias) {
        return new InteractionLog(alias, this);
    }

    @Override
    public InteractionLog as(Table<?> alias) {
        return new InteractionLog(alias.getQualifiedName(), this);
    }

    /**
     * Rename this table
     */
    @Override
    public InteractionLog rename(String name) {
        return new InteractionLog(DSL.name(name), null);
    }

    /**
     * Rename this table
     */
    @Override
    public InteractionLog rename(Name name) {
        return new InteractionLog(name, null);
    }

    /**
     * Rename this table
     */
    @Override
    public InteractionLog rename(Table<?> name) {
        return new InteractionLog(name.getQualifiedName(), null);
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public InteractionLog where(Condition condition) {
        return new InteractionLog(getQualifiedName(), aliased() ? this : null, null, condition);
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public InteractionLog where(Collection<? extends Condition> conditions) {
        return where(DSL.and(conditions));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public InteractionLog where(Condition... conditions) {
        return where(DSL.and(conditions));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public InteractionLog where(Field<Boolean> condition) {
        return where(DSL.condition(condition));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public InteractionLog where(SQL condition) {
        return where(DSL.condition(condition));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public InteractionLog where(@Stringly.SQL String condition) {
        return where(DSL.condition(condition));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public InteractionLog where(@Stringly.SQL String condition, Object... binds) {
        return where(DSL.condition(condition, binds));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public InteractionLog where(@Stringly.SQL String condition, QueryPart... parts) {
        return where(DSL.condition(condition, parts));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public InteractionLog whereExists(Select<?> select) {
        return where(DSL.exists(select));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public InteractionLog whereNotExists(Select<?> select) {
        return where(DSL.notExists(select));
    }
}
