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

keywhiz.jooq.tables.SchemaVersion Maven / Gradle / Ivy

/**
 * This class is generated by jOOQ
 */
package keywhiz.jooq.tables;


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

import javax.annotation.Generated;

import keywhiz.jooq.Keys;
import keywhiz.jooq.Public;
import keywhiz.jooq.tables.records.SchemaVersionRecord;
import keywhiz.model.LongConverter;
import keywhiz.model.TimestampConverter;

import org.jooq.Field;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;


/**
 * This class is generated by jOOQ.
 */
@Generated(
	value = {
		"http://www.jooq.org",
		"jOOQ version:3.6.2"
	},
	comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class SchemaVersion extends TableImpl {

	private static final long serialVersionUID = -1539635459;

	/**
	 * The reference instance of public.schema_version
	 */
	public static final SchemaVersion SCHEMA_VERSION = new SchemaVersion();

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

	/**
	 * The column public.schema_version.version_rank.
	 */
	public final TableField VERSION_RANK = createField("version_rank", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "", new LongConverter());

	/**
	 * The column public.schema_version.installed_rank.
	 */
	public final TableField INSTALLED_RANK = createField("installed_rank", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "", new LongConverter());

	/**
	 * The column public.schema_version.version.
	 */
	public final TableField VERSION = createField("version", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, "");

	/**
	 * The column public.schema_version.description.
	 */
	public final TableField DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.VARCHAR.length(200).nullable(false), this, "");

	/**
	 * The column public.schema_version.type.
	 */
	public final TableField TYPE = createField("type", org.jooq.impl.SQLDataType.VARCHAR.length(20).nullable(false), this, "");

	/**
	 * The column public.schema_version.script.
	 */
	public final TableField SCRIPT = createField("script", org.jooq.impl.SQLDataType.VARCHAR.length(1000).nullable(false), this, "");

	/**
	 * The column public.schema_version.checksum.
	 */
	public final TableField CHECKSUM = createField("checksum", org.jooq.impl.SQLDataType.INTEGER, this, "", new LongConverter());

	/**
	 * The column public.schema_version.installed_by.
	 */
	public final TableField INSTALLED_BY = createField("installed_by", org.jooq.impl.SQLDataType.VARCHAR.length(100).nullable(false), this, "");

	/**
	 * The column public.schema_version.installed_on.
	 */
	public final TableField INSTALLED_ON = createField("installed_on", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaulted(true), this, "", new TimestampConverter());

	/**
	 * The column public.schema_version.execution_time.
	 */
	public final TableField EXECUTION_TIME = createField("execution_time", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "", new LongConverter());

	/**
	 * The column public.schema_version.success.
	 */
	public final TableField SUCCESS = createField("success", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false), this, "");

	/**
	 * Create a public.schema_version table reference
	 */
	public SchemaVersion() {
		this("schema_version", null);
	}

	/**
	 * Create an aliased public.schema_version table reference
	 */
	public SchemaVersion(String alias) {
		this(alias, SCHEMA_VERSION);
	}

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

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

	/**
	 * {@inheritDoc}
	 */
	@Override
	public UniqueKey getPrimaryKey() {
		return Keys.SCHEMA_VERSION_PK;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public List> getKeys() {
		return Arrays.>asList(Keys.SCHEMA_VERSION_PK);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public SchemaVersion as(String alias) {
		return new SchemaVersion(alias, this);
	}

	/**
	 * Rename this table
	 */
	public SchemaVersion rename(String name) {
		return new SchemaVersion(name, null);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy