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

keywhiz.jooq.tables.Clients 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.ClientsRecord;
import keywhiz.model.LongConverter;
import keywhiz.model.TimestampConverter;

import org.jooq.Field;
import org.jooq.Identity;
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 Clients extends TableImpl {

	private static final long serialVersionUID = 809484214;

	/**
	 * The reference instance of public.clients
	 */
	public static final Clients CLIENTS = new Clients();

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

	/**
	 * The column public.clients.id.
	 */
	public final TableField ID = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, "", new LongConverter());

	/**
	 * The column public.clients.name.
	 */
	public final TableField NAME = createField("name", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, "");

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

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

	/**
	 * The column public.clients.description.
	 */
	public final TableField DESCRIPTION = createField("description", org.jooq.impl.SQLDataType.CLOB, this, "");

	/**
	 * The column public.clients.createdby.
	 */
	public final TableField CREATEDBY = createField("createdby", org.jooq.impl.SQLDataType.CLOB, this, "");

	/**
	 * The column public.clients.updatedby.
	 */
	public final TableField UPDATEDBY = createField("updatedby", org.jooq.impl.SQLDataType.CLOB, this, "");

	/**
	 * The column public.clients.enabled.
	 */
	public final TableField ENABLED = createField("enabled", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaulted(true), this, "");

	/**
	 * The column public.clients.automationallowed.
	 */
	public final TableField AUTOMATIONALLOWED = createField("automationallowed", org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaulted(true), this, "");

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

	/**
	 * Create an aliased public.clients table reference
	 */
	public Clients(String alias) {
		this(alias, CLIENTS);
	}

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

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

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Identity getIdentity() {
		return Keys.IDENTITY_CLIENTS;
	}

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy