public List<CrossReference> getCrossReferences(final String parentCatalog, final String parentSchema,
                                                   final String parentTable, final String foreignCatalog,
                                                   final String foreignSchema, final String foreignTable)
            throws SQLException {
        final List<CrossReference> list = new ArrayList<>();
        try (ResultSet results = databaseMetadata.getCrossReference(
                parentCatalog, parentSchema, parentTable, foreignCatalog, foreignSchema, foreignTable)) {
            if (results != null) {
                bind(results, CrossReference.class, list);
            }
        }
        return list;
    }
public List < CrossReference > getCrossReferences ( final String parentCatalog , final String parentSchema , final String parentTable , final String foreignCatalog , final String foreignSchema , final String foreignTable ) throws SQLException { final List < CrossReference > list = new ArrayList < > ( ) ; try ( ResultSet results = databaseMetadata . getCrossReference ( parentCatalog , parentSchema , parentTable , foreignCatalog , foreignSchema , foreignTable ) ) { if ( results != null ) { bind ( results , CrossReference . class , list ) ; } } return list ; }
Invokes {@link DatabaseMetaData#getCrossReference(java.lang.String, java.lang.String, java.lang.String,
java.lang.String, java.lang.String, java.lang.String)} with given arguments and returns bound information.

@param parentCatalog  the value for {@code parentCatalog} parameter
@param parentSchema   the value for {@code parentSchema} parameter
@param parentTable    the value for {@code parentTable} parameter
@param foreignCatalog the value for {@code foreignCatalog} parameter
@param foreignSchema  the value for {@code foreignSchema} parameter
@param foreignTable   the value for {@code foreignTable} parameter
@return a list of cross references
@throws SQLException if a database error occurs.