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