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

com.github.fge.grappa.debugger.jooq.tables.Matchers 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;
import com.github.fge.grappa.debugger.jooq.tables.records.MatchersRecord;
import org.jooq.Field;
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",
    "MethodCanBeVariableArityMethod" })
public class Matchers
    extends TableImpl
{
    public static final Matchers MATCHERS = new Matchers();

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

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

    public final TableField CLASS_NAME
        = createField("CLASS_NAME",
            SQLDataType.VARCHAR.length(255).nullable(false), this, "");

    public final TableField MATCHER_TYPE
        = createField("MATCHER_TYPE",
            SQLDataType.VARCHAR.length(30).nullable(false), this, "");

    public final TableField NAME
        = createField("NAME", SQLDataType.VARCHAR.length(1024).nullable(false),
            this, "");

    public Matchers()
    {
        this("MATCHERS", null);
    }

    public Matchers(final String alias)
    {
        this(alias, Tables.MATCHERS);
    }

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

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy