keywhiz.jooq.Keys Maven / Gradle / Ivy
/**
* This class is generated by jOOQ
*/
package keywhiz.jooq;
import javax.annotation.Generated;
import keywhiz.jooq.tables.Accessgrants;
import keywhiz.jooq.tables.Clients;
import keywhiz.jooq.tables.Groups;
import keywhiz.jooq.tables.Memberships;
import keywhiz.jooq.tables.SchemaVersion;
import keywhiz.jooq.tables.Secrets;
import keywhiz.jooq.tables.SecretsContent;
import keywhiz.jooq.tables.Users;
import keywhiz.jooq.tables.records.AccessgrantsRecord;
import keywhiz.jooq.tables.records.ClientsRecord;
import keywhiz.jooq.tables.records.GroupsRecord;
import keywhiz.jooq.tables.records.MembershipsRecord;
import keywhiz.jooq.tables.records.SchemaVersionRecord;
import keywhiz.jooq.tables.records.SecretsContentRecord;
import keywhiz.jooq.tables.records.SecretsRecord;
import keywhiz.jooq.tables.records.UsersRecord;
import org.jooq.Identity;
import org.jooq.UniqueKey;
import org.jooq.impl.AbstractKeys;
/**
* A class modelling foreign key relationships between tables of the public
* schema
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.6.2"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {
// -------------------------------------------------------------------------
// IDENTITY definitions
// -------------------------------------------------------------------------
public static final Identity IDENTITY_ACCESSGRANTS = Identities0.IDENTITY_ACCESSGRANTS;
public static final Identity IDENTITY_CLIENTS = Identities0.IDENTITY_CLIENTS;
public static final Identity IDENTITY_GROUPS = Identities0.IDENTITY_GROUPS;
public static final Identity IDENTITY_MEMBERSHIPS = Identities0.IDENTITY_MEMBERSHIPS;
public static final Identity IDENTITY_SECRETS = Identities0.IDENTITY_SECRETS;
public static final Identity IDENTITY_SECRETS_CONTENT = Identities0.IDENTITY_SECRETS_CONTENT;
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final UniqueKey ACCESSGRANTS_PKEY = UniqueKeys0.ACCESSGRANTS_PKEY;
public static final UniqueKey CLIENTS_PKEY = UniqueKeys0.CLIENTS_PKEY;
public static final UniqueKey CLIENTS_NAME_KEY = UniqueKeys0.CLIENTS_NAME_KEY;
public static final UniqueKey GROUPS_PKEY = UniqueKeys0.GROUPS_PKEY;
public static final UniqueKey GROUPS_NAME_KEY = UniqueKeys0.GROUPS_NAME_KEY;
public static final UniqueKey MEMBERSHIPS_PKEY = UniqueKeys0.MEMBERSHIPS_PKEY;
public static final UniqueKey SCHEMA_VERSION_PK = UniqueKeys0.SCHEMA_VERSION_PK;
public static final UniqueKey SECRETS_PKEY = UniqueKeys0.SECRETS_PKEY;
public static final UniqueKey SECRETS_CONTENT_PKEY = UniqueKeys0.SECRETS_CONTENT_PKEY;
public static final UniqueKey USERS_PKEY = UniqueKeys0.USERS_PKEY;
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// [#1459] distribute members to avoid static initialisers > 64kb
// -------------------------------------------------------------------------
private static class Identities0 extends AbstractKeys {
public static Identity IDENTITY_ACCESSGRANTS = createIdentity(Accessgrants.ACCESSGRANTS, Accessgrants.ACCESSGRANTS.ID);
public static Identity IDENTITY_CLIENTS = createIdentity(Clients.CLIENTS, Clients.CLIENTS.ID);
public static Identity IDENTITY_GROUPS = createIdentity(Groups.GROUPS, Groups.GROUPS.ID);
public static Identity IDENTITY_MEMBERSHIPS = createIdentity(Memberships.MEMBERSHIPS, Memberships.MEMBERSHIPS.ID);
public static Identity IDENTITY_SECRETS = createIdentity(Secrets.SECRETS, Secrets.SECRETS.ID);
public static Identity IDENTITY_SECRETS_CONTENT = createIdentity(SecretsContent.SECRETS_CONTENT, SecretsContent.SECRETS_CONTENT.ID);
}
private static class UniqueKeys0 extends AbstractKeys {
public static final UniqueKey ACCESSGRANTS_PKEY = createUniqueKey(Accessgrants.ACCESSGRANTS, Accessgrants.ACCESSGRANTS.ID);
public static final UniqueKey CLIENTS_PKEY = createUniqueKey(Clients.CLIENTS, Clients.CLIENTS.ID);
public static final UniqueKey CLIENTS_NAME_KEY = createUniqueKey(Clients.CLIENTS, Clients.CLIENTS.NAME);
public static final UniqueKey GROUPS_PKEY = createUniqueKey(Groups.GROUPS, Groups.GROUPS.ID);
public static final UniqueKey GROUPS_NAME_KEY = createUniqueKey(Groups.GROUPS, Groups.GROUPS.NAME);
public static final UniqueKey MEMBERSHIPS_PKEY = createUniqueKey(Memberships.MEMBERSHIPS, Memberships.MEMBERSHIPS.ID);
public static final UniqueKey SCHEMA_VERSION_PK = createUniqueKey(SchemaVersion.SCHEMA_VERSION, SchemaVersion.SCHEMA_VERSION.VERSION);
public static final UniqueKey SECRETS_PKEY = createUniqueKey(Secrets.SECRETS, Secrets.SECRETS.ID);
public static final UniqueKey SECRETS_CONTENT_PKEY = createUniqueKey(SecretsContent.SECRETS_CONTENT, SecretsContent.SECRETS_CONTENT.ID);
public static final UniqueKey USERS_PKEY = createUniqueKey(Users.USERS, Users.USERS.USERNAME);
}
}