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


import ervu_dashboard.ervu_dashboard.db_beans.public_.Public;
import ervu_dashboard.ervu_dashboard.db_beans.public_.tables.records.ChannelLogRecord;

import java.sql.Date;
import java.util.Collection;

import org.jooq.Condition;
import org.jooq.Field;
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 ChannelLog extends TableImpl<ChannelLogRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>public.channel_log</code>
     */
    public static final ChannelLog CHANNEL_LOG = new ChannelLog();

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

    /**
     * The column <code>public.channel_log.id_batch</code>.
     */
    public final TableField<ChannelLogRecord, Long> ID_BATCH = createField(DSL.name("id_batch"), SQLDataType.BIGINT, this, "");

    /**
     * The column <code>public.channel_log.channel_id</code>.
     */
    public final TableField<ChannelLogRecord, String> CHANNEL_ID = createField(DSL.name("channel_id"), SQLDataType.CHAR(36), this, "");

    /**
     * The column <code>public.channel_log.log_date</code>.
     */
    public final TableField<ChannelLogRecord, Date> LOG_DATE = createField(DSL.name("log_date"), SQLDataType.DATE, this, "");

    /**
     * The column <code>public.channel_log.logging_object_type</code>.
     */
    public final TableField<ChannelLogRecord, String> LOGGING_OBJECT_TYPE = createField(DSL.name("logging_object_type"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.channel_log.object_name</code>.
     */
    public final TableField<ChannelLogRecord, String> OBJECT_NAME = createField(DSL.name("object_name"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.channel_log.object_copy</code>.
     */
    public final TableField<ChannelLogRecord, String> OBJECT_COPY = createField(DSL.name("object_copy"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.channel_log.repository_directory</code>.
     */
    public final TableField<ChannelLogRecord, String> REPOSITORY_DIRECTORY = createField(DSL.name("repository_directory"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.channel_log.filename</code>.
     */
    public final TableField<ChannelLogRecord, String> FILENAME = createField(DSL.name("filename"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.channel_log.object_id</code>.
     */
    public final TableField<ChannelLogRecord, String> OBJECT_ID = createField(DSL.name("object_id"), SQLDataType.CHAR(36), this, "");

    /**
     * The column <code>public.channel_log.object_version</code>.
     */
    public final TableField<ChannelLogRecord, String> OBJECT_VERSION = createField(DSL.name("object_version"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.channel_log.object_revision</code>.
     */
    public final TableField<ChannelLogRecord, String> OBJECT_REVISION = createField(DSL.name("object_revision"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.channel_log.parent_channel_id</code>.
     */
    public final TableField<ChannelLogRecord, String> PARENT_CHANNEL_ID = createField(DSL.name("parent_channel_id"), SQLDataType.CHAR(36), this, "");

    /**
     * The column <code>public.channel_log.root_channel_id</code>.
     */
    public final TableField<ChannelLogRecord, String> ROOT_CHANNEL_ID = createField(DSL.name("root_channel_id"), SQLDataType.CHAR(36), this, "");

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

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

    /**
     * Create an aliased <code>public.channel_log</code> table reference
     */
    public ChannelLog(String alias) {
        this(DSL.name(alias), CHANNEL_LOG);
    }

    /**
     * Create an aliased <code>public.channel_log</code> table reference
     */
    public ChannelLog(Name alias) {
        this(alias, CHANNEL_LOG);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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