Package | Description |
---|---|
org.apache.openjpa.jdbc.schema |
OpenJPA-JDBC Schema Management
This package provides utilities for managing the schema of
persistent objects stored in a relational database.
|
org.apache.openjpa.jdbc.sql |
OpenJPA-JDBC SQL Abstraction
Utilities for generating SQL.
|
Modifier and Type | Method and Description |
---|---|
PrimaryKey |
Table.addPrimaryKey()
Set the primary key for the table.
|
PrimaryKey |
Table.addPrimaryKey(DBIdentifier name) |
PrimaryKey |
Table.addPrimaryKey(String name)
Deprecated.
|
PrimaryKey |
Table.getPrimaryKey()
Return the primary key for the table, if any.
|
PrimaryKey |
Table.importPrimaryKey(PrimaryKey pk)
Import a primary key; column names must match columns of this table.
|
protected PrimaryKey |
SchemaGroup.newPrimaryKey(DBIdentifier name,
Table table) |
protected PrimaryKey |
SchemaGroup.newPrimaryKey(String name,
Table table)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SchemaTool.addPrimaryKey(PrimaryKey pk)
Add the given primary key to the database schema.
|
boolean |
SchemaTool.dropPrimaryKey(PrimaryKey pk)
Drop the given primary key from the database schema.
|
boolean |
PrimaryKey.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).
|
PrimaryKey |
Table.importPrimaryKey(PrimaryKey pk)
Import a primary key; column names must match columns of this table.
|
Modifier and Type | Method and Description |
---|---|
PrimaryKey[] |
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.
|
PrimaryKey[] |
FoxProDictionary.getPrimaryKeys(DatabaseMetaData meta,
DBIdentifier catalog,
DBIdentifier schemaName,
DBIdentifier tableName,
Connection conn) |
PrimaryKey[] |
OracleDictionary.getPrimaryKeys(DatabaseMetaData meta,
DBIdentifier catalog,
DBIdentifier schemaName,
DBIdentifier tableName,
Connection conn) |
PrimaryKey[] |
DBDictionary.getPrimaryKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
Deprecated.
|
PrimaryKey[] |
FoxProDictionary.getPrimaryKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn) |
PrimaryKey[] |
OracleDictionary.getPrimaryKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn) |
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.getPrimaryKeysFromBestRowIdentifier(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 PrimaryKey[] |
DBDictionary.getPrimaryKeysFromGetPrimaryKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
Deprecated.
|
protected PrimaryKey |
SybaseDictionary.newPrimaryKey(ResultSet pkMeta)
Create a new primary key from the information in the schema metadata.
|
protected PrimaryKey |
DBDictionary.newPrimaryKey(ResultSet pkMeta)
Create a new primary key from the information in the schema metadata.
|
PrimaryKey |
InformixDictionary.newPrimaryKey(ResultSet pkMeta) |
Modifier and Type | Method and Description |
---|---|
String[] |
H2Dictionary.getAddPrimaryKeySQL(PrimaryKey pk) |
String[] |
DBDictionary.getAddPrimaryKeySQL(PrimaryKey pk)
Return a series of SQL statements to add the given primary key to
its table.
|
String[] |
MySQLDictionary.getAddPrimaryKeySQL(PrimaryKey pk) |
String[] |
MariaDBDictionary.getAddPrimaryKeySQL(PrimaryKey pk) |
String[] |
InformixDictionary.getAddPrimaryKeySQL(PrimaryKey pk) |
String[] |
HSQLDictionary.getAddPrimaryKeySQL(PrimaryKey pk) |
String[] |
H2Dictionary.getDropPrimaryKeySQL(PrimaryKey pk) |
String[] |
DBDictionary.getDropPrimaryKeySQL(PrimaryKey pk)
Return a series of SQL statements to drop the given primary key from
its table.
|
String[] |
MySQLDictionary.getDropPrimaryKeySQL(PrimaryKey pk)
Return
ALTER TABLE <table name> DROP PRIMARY KEY . |
String[] |
MariaDBDictionary.getDropPrimaryKeySQL(PrimaryKey pk)
Return
ALTER TABLE <table name> DROP PRIMARY KEY . |
String[] |
HSQLDictionary.getDropPrimaryKeySQL(PrimaryKey pk) |
protected String |
H2Dictionary.getPrimaryKeyConstraintSQL(PrimaryKey pk) |
protected String |
DBDictionary.getPrimaryKeyConstraintSQL(PrimaryKey pk)
Return the declaration SQL for the given primary key.
|
protected String |
FoxProDictionary.getPrimaryKeyConstraintSQL(PrimaryKey pk) |
protected String |
HSQLDictionary.getPrimaryKeyConstraintSQL(PrimaryKey pk) |
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.