All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jooq.meta.derby.sys.tables.Sysviews Maven / Gradle / Ivy

There is a newer version: 3.19.16
Show newest version
/*
 * This file is generated by jOOQ.
 */
package org.jooq.meta.derby.sys.tables;


import java.util.Arrays;
import java.util.List;

import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.InverseForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
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;
import org.jooq.meta.derby.sys.Keys;
import org.jooq.meta.derby.sys.Sys;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of SYS.SYSVIEWS
     */
    public static final Sysviews SYSVIEWS = new Sysviews();

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

    /**
     * The column SYS.SYSVIEWS.TABLEID.
     */
    public final TableField TABLEID = createField(DSL.name("TABLEID"), SQLDataType.CHAR(36).nullable(false), this, "");

    /**
     * The column SYS.SYSVIEWS.VIEWDEFINITION.
     */
    public final TableField VIEWDEFINITION = createField(DSL.name("VIEWDEFINITION"), SQLDataType.LONGVARCHAR.nullable(false), this, "");

    /**
     * The column SYS.SYSVIEWS.CHECKOPTION.
     */
    public final TableField CHECKOPTION = createField(DSL.name("CHECKOPTION"), SQLDataType.CHAR(1).nullable(false), this, "");

    /**
     * The column SYS.SYSVIEWS.COMPILATIONSCHEMAID.
     */
    public final TableField COMPILATIONSCHEMAID = createField(DSL.name("COMPILATIONSCHEMAID"), SQLDataType.CHAR(36), this, "");

    private Sysviews(Name alias, Table aliased) {
        this(alias, aliased, (Field[]) null, null);
    }

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

    /**
     * Create an aliased SYS.SYSVIEWS table reference
     */
    public Sysviews(String alias) {
        this(DSL.name(alias), SYSVIEWS);
    }

    /**
     * Create an aliased SYS.SYSVIEWS table reference
     */
    public Sysviews(Name alias) {
        this(alias, SYSVIEWS);
    }

    /**
     * Create a SYS.SYSVIEWS table reference
     */
    public Sysviews() {
        this(DSL.name("SYSVIEWS"), null);
    }

    public  Sysviews(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
        super(path, childPath, parentPath, SYSVIEWS);
    }

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

    @Override
    public List> getReferences() {
        return Arrays.asList(Keys.SYNTHETIC_FK_SYSVIEWS__SYNTHETIC_PK_SYSTABLES);
    }

    private transient Systables _systables;

    /**
     * Get the implicit join path to the SYS.SYSTABLES table.
     */
    public Systables systables() {
        if (_systables == null)
            _systables = new Systables(this, Keys.SYNTHETIC_FK_SYSVIEWS__SYNTHETIC_PK_SYSTABLES, null);

        return _systables;
    }

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

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

    @Override
    public Sysviews as(Table alias) {
        return new Sysviews(alias.getQualifiedName(), this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy