Uses of Class
org.apache.openjpa.jdbc.schema.PrimaryKey
Packages that use PrimaryKey
Package
Description
OpenJPA-JDBC Schema Management
OpenJPA-JDBC SQL Abstraction
-
Uses of PrimaryKey in org.apache.openjpa.jdbc.schema
Methods in org.apache.openjpa.jdbc.schema that return PrimaryKeyModifier and TypeMethodDescriptionTable.addPrimaryKey()Set the primary key for the table.Table.addPrimaryKey(String name) Deprecated.Table.addPrimaryKey(DBIdentifier name) Table.getPrimaryKey()Return the primary key for the table, if any.Table.importPrimaryKey(PrimaryKey pk) Import a primary key; column names must match columns of this table.protected PrimaryKeySchemaGroup.newPrimaryKey(String name, Table table) Deprecated.protected PrimaryKeySchemaGroup.newPrimaryKey(DBIdentifier name, Table table) Methods in org.apache.openjpa.jdbc.schema with parameters of type PrimaryKeyModifier and TypeMethodDescriptionbooleanSchemaTool.addPrimaryKey(PrimaryKey pk) Add the given primary key to the database schema.booleanSchemaTool.dropPrimaryKey(PrimaryKey pk) Drop the given primary key from the database schema.booleanPrimaryKey.equalsPrimaryKey(PrimaryKey pk) Return true if the structure of this primary key matches that of the given one (same table, same columns).SchemaGroup.findExportedForeignKeys(PrimaryKey pk) Find all foreign keys exported by a given primary key (all foreign keys that link to the primary key).Table.importPrimaryKey(PrimaryKey pk) Import a primary key; column names must match columns of this table. -
Uses of PrimaryKey in org.apache.openjpa.jdbc.sql
Methods in org.apache.openjpa.jdbc.sql that return PrimaryKeyModifier and TypeMethodDescriptionDBDictionary.getPrimaryKeys(DatabaseMetaData meta, String catalog, String schemaName, String tableName, Connection conn) Deprecated.DBDictionary.getPrimaryKeys(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) Reflect on the schema to find primary keys for the given table pattern.FoxProDictionary.getPrimaryKeys(DatabaseMetaData meta, String catalog, String schemaName, String tableName, Connection conn) FoxProDictionary.getPrimaryKeys(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) OracleDictionary.getPrimaryKeys(DatabaseMetaData meta, String catalog, String schemaName, String tableName, Connection conn) OracleDictionary.getPrimaryKeys(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) protected PrimaryKey[]DBDictionary.getPrimaryKeysFromBestRowIdentifier(DatabaseMetaData meta, String catalog, String schemaName, String tableName, Connection conn) Deprecated.protected PrimaryKey[]DBDictionary.getPrimaryKeysFromBestRowIdentifier(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) Reflect on the schema to find primary keys for the given table pattern.protected PrimaryKey[]DBDictionary.getPrimaryKeysFromGetPrimaryKeys(DatabaseMetaData meta, String catalog, String schemaName, String tableName, Connection conn) Deprecated.protected PrimaryKey[]DBDictionary.getPrimaryKeysFromGetPrimaryKeys(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) Reflect on the schema to find primary keys for the given table pattern.protected PrimaryKeyDBDictionary.newPrimaryKey(ResultSet pkMeta) Create a new primary key from the information in the schema metadata.InformixDictionary.newPrimaryKey(ResultSet pkMeta) protected PrimaryKeySybaseDictionary.newPrimaryKey(ResultSet pkMeta) Create a new primary key from the information in the schema metadata.Methods in org.apache.openjpa.jdbc.sql with parameters of type PrimaryKeyModifier and TypeMethodDescriptionString[]DBDictionary.getAddPrimaryKeySQL(PrimaryKey pk) Return a series of SQL statements to add the given primary key to its table.String[]H2Dictionary.getAddPrimaryKeySQL(PrimaryKey pk) String[]HSQLDictionary.getAddPrimaryKeySQL(PrimaryKey pk) String[]InformixDictionary.getAddPrimaryKeySQL(PrimaryKey pk) String[]MariaDBDictionary.getAddPrimaryKeySQL(PrimaryKey pk) String[]MySQLDictionary.getAddPrimaryKeySQL(PrimaryKey pk) String[]DBDictionary.getDropPrimaryKeySQL(PrimaryKey pk) Return a series of SQL statements to drop the given primary key from its table.String[]H2Dictionary.getDropPrimaryKeySQL(PrimaryKey pk) String[]HSQLDictionary.getDropPrimaryKeySQL(PrimaryKey pk) String[]MariaDBDictionary.getDropPrimaryKeySQL(PrimaryKey pk) ReturnALTER TABLE <table name> DROP PRIMARY KEY.String[]MySQLDictionary.getDropPrimaryKeySQL(PrimaryKey pk) ReturnALTER TABLE <table name> DROP PRIMARY KEY.protected StringDBDictionary.getPrimaryKeyConstraintSQL(PrimaryKey pk) Return the declaration SQL for the given primary key.protected StringFoxProDictionary.getPrimaryKeyConstraintSQL(PrimaryKey pk) protected StringH2Dictionary.getPrimaryKeyConstraintSQL(PrimaryKey pk) protected StringHSQLDictionary.getPrimaryKeyConstraintSQL(PrimaryKey pk)