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

com.github.fge.grappa.debugger.jooq.tables.Nodes Maven / Gradle / Ivy

The newest version!
package com.github.fge.grappa.debugger.jooq.tables;

import com.github.fge.grappa.debugger.jooq.Keys;
import com.github.fge.grappa.debugger.jooq.Public;
import com.github.fge.grappa.debugger.jooq.tables.records.NodesRecord;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;

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

@SuppressWarnings({ "PublicField", "ThisEscapedInObjectConstruction" })
public class Nodes
    extends TableImpl
{
    public static final Nodes NODES = new Nodes();

    @Override
    public Class getRecordType()
    {
        return NodesRecord.class;
    }

    public final TableField ID
        = createField("ID", SQLDataType.INTEGER.nullable(false), this, "");

    public final TableField PARENT_ID
        = createField("PARENT_ID", SQLDataType.INTEGER.nullable(false), this,
        "");

    public final TableField LEVEL
        = createField("LEVEL", SQLDataType.INTEGER.nullable(false), this, "");

    public final TableField SUCCESS
        = createField("SUCCESS", SQLDataType.INTEGER.nullable(false),
        this, "");

    public final TableField MATCHER_ID
        = createField("MATCHER_ID", SQLDataType.INTEGER.nullable(false),
        this, "");

    public final TableField START_INDEX
        = createField("START_INDEX", SQLDataType.INTEGER.nullable(false),
        this, "");

    public final TableField END_INDEX
        = createField("END_INDEX", SQLDataType.INTEGER.nullable(false), this,
        "");

    public final TableField TIME
        = createField("TIME", SQLDataType.BIGINT.nullable(false), this, "");

    public Nodes()
    {
        this("NODES", null);
    }

    public Nodes(final String alias)
    {
        this(alias, NODES);
    }

    private Nodes(final String alias, final Table aliased)
    {
        this(alias, aliased, null);
    }

    @SuppressWarnings("MethodCanBeVariableArityMethod")
    private Nodes(final String alias, final Table aliased,
        final Field[] parameters)
    {
        super(alias, Public.PUBLIC, aliased, parameters, "");
    }

    @Override
    public UniqueKey getPrimaryKey()
    {
        return Keys.CONSTRAINT_47;
    }

    @Override
    public List> getKeys()
    {
        return Arrays.>asList(Keys.CONSTRAINT_47);
    }

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

    @Override
    public Nodes as(final String alias)
    {
        return new Nodes(alias, this);
    }

    public Nodes rename(final String name)
    {
        return new Nodes(name, null);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy