Uses of Class
org.datanucleus.store.rdbms.key.ForeignKey
Packages that use ForeignKey
Package
Description
Provides mappings of all supported databases to aspects of the database that determines the SQL generation.
This package contains wrappers to various types of keys found in RDBMS databases.
Provides the internal DataNucleus definition of a table/view and its columns.
-
Uses of ForeignKey in org.datanucleus.store.rdbms.adapter
Methods in org.datanucleus.store.rdbms.adapter with parameters of type ForeignKeyModifier and TypeMethodDescriptionBaseDatastoreAdapter.getAddForeignKeyStatement(ForeignKey fk, IdentifierFactory factory) Returns the appropriate SQL to add a foreign key to its table.DatastoreAdapter.getAddForeignKeyStatement(ForeignKey fk, IdentifierFactory factory) Returns the appropriate SQL to add a foreign key to its table.InformixAdapter.getAddForeignKeyStatement(ForeignKey fk, IdentifierFactory factory) Returns the appropriate SQL to add a foreign key to its table.SAPDBAdapter.getAddForeignKeyStatement(ForeignKey fk, IdentifierFactory factory) SQLAnywhereAdapter.getAddForeignKeyStatement(ForeignKey fk, IdentifierFactory factory) Method to define a foreign key definitionSQLiteAdapter.getAddForeignKeyStatement(ForeignKey fk, IdentifierFactory factory) TimesTenAdapter.getAddForeignKeyStatement(ForeignKey fk, IdentifierFactory factory) Returns the appropriate SQL to add a foreign key to its table.private static booleanTimesTenAdapter.isSelfReferencingForeignKey(ForeignKey fk) Returns true if foreign key is self-referencing -
Uses of ForeignKey in org.datanucleus.store.rdbms.key
Methods in org.datanucleus.store.rdbms.key with parameters of type ForeignKeyConstructors in org.datanucleus.store.rdbms.key with parameters of type ForeignKeyModifierConstructorDescriptionIndex(ForeignKey fk) Constructor for an index for the specified foreign key. -
Uses of ForeignKey in org.datanucleus.store.rdbms.table
Methods in org.datanucleus.store.rdbms.table that return ForeignKeyModifier and TypeMethodDescriptionprivate ForeignKeyClassTable.getForeignKeyForForeignKeyMetaData(org.datanucleus.metadata.ForeignKeyMetaData fkmd) Convenience method to create a FK for the specified ForeignKeyMetaData.static ForeignKeyTableUtils.getForeignKeyForPCField(JavaTypeMapping fieldMapping, org.datanucleus.metadata.AbstractMemberMetaData mmd, boolean autoMode, RDBMSStoreManager storeMgr, org.datanucleus.ClassLoaderResolver clr) Convenience method to add a foreign key for a PC field.protected ForeignKeyElementContainerTable.getForeignKeyToElement(DatastoreClass elementTable, boolean autoMode, JavaTypeMapping m) Convenience method to generate a ForeignKey from this join table to an element table using the specified mapping.protected ForeignKeyElementContainerTable.getForeignKeyToOwner(DatastoreClass ownerTable, boolean autoMode) Convenience method to generate a ForeignKey from this join table to an owner table.Methods in org.datanucleus.store.rdbms.table that return types with arguments of type ForeignKeyModifier and TypeMethodDescriptionprivate Map<DatastoreIdentifier, ForeignKey> TableImpl.getExistingForeignKeys(Connection conn) Accessor for the foreign keys for this table.ClassTable.getExpectedForeignKeys(org.datanucleus.ClassLoaderResolver clr) Accessor for the expected foreign keys for this table.ElementContainerTable.getExpectedForeignKeys(org.datanucleus.ClassLoaderResolver clr) Accessor for the expected foreign keys for this table.MapTable.getExpectedForeignKeys(org.datanucleus.ClassLoaderResolver clr) Accessor for the expected foreign keys for this table.PersistableJoinTable.getExpectedForeignKeys(org.datanucleus.ClassLoaderResolver clr) Accessor for the expected foreign keys for this table.SecondaryTable.getExpectedForeignKeys(org.datanucleus.ClassLoaderResolver clr) Accessor for the expected foreign keys for this table.TableImpl.getExpectedForeignKeys(org.datanucleus.ClassLoaderResolver clr) Accessor for the expected foreign keys for this table in the datastore.static Collection<ForeignKey> TableUtils.getForeignKeysForReferenceField(JavaTypeMapping fieldMapping, org.datanucleus.metadata.AbstractMemberMetaData mmd, boolean autoMode, RDBMSStoreManager storeMgr, org.datanucleus.ClassLoaderResolver clr) Convenience method to add foreign-keys for the specified reference field.Method parameters in org.datanucleus.store.rdbms.table with type arguments of type ForeignKeyModifier and TypeMethodDescriptionprivate voidClassTable.addExpectedForeignKeysForEmbeddedPCField(List<ForeignKey> foreignKeys, boolean autoMode, org.datanucleus.ClassLoaderResolver clr, EmbeddedPCMapping embeddedMapping) Convenience method to add the expected FKs for an embedded PC field.