| java.lang.Object org.netbeans.modules.sql.project.dbmodel.KeyColumn org.netbeans.modules.sql.project.dbmodel.ForeignKeyColumn
ForeignKeyColumn | public class ForeignKeyColumn extends KeyColumn (Code) | | Captures database foreign key metadata associated with a specific database
table column.
author: Jonathan Giron version: |
Constructor Summary | |
public | ForeignKeyColumn(String fkName, String fkColumn, String pkName, String pkColumn, String pkTable, String pkSchema, String pkCatalog, short colSequence, short updateFlag, short deleteFlag, short deferFlag) Creates an instance of ForeignKeyColumn with the given values. | public | ForeignKeyColumn(ForeignKeyColumn fkCol) |
ForeignKeyColumn | public ForeignKeyColumn(String fkName, String fkColumn, String pkName, String pkColumn, String pkTable, String pkSchema, String pkCatalog, short colSequence, short updateFlag, short deleteFlag, short deferFlag)(Code) | | Creates an instance of ForeignKeyColumn with the given values.
Parameters: fkName - name of FK Parameters: fkColumn - name of column assocaited with FK Parameters: pkName - name of PK that this FK imports Parameters: pkColumn - name of column that this FK imports Parameters: pkTable - name of table containing column that this FK imports Parameters: pkSchema - name of schema containing table with PK that this FK imports Parameters: pkCatalog - name of catalog containing table with PK that this FK imports Parameters: colSequence - sequence of this column within (composite) primary key Parameters: updateFlag - applicable update rule for this FK; one of java.sql.DatabaseMetaData.importedKeyNoAction,java.sql.DatabaseMetaData.importedKeyCascade,java.sql.DatabaseMetaData.importedKeySetNull,java.sql.DatabaseMetaData#importedKeySetDefault, orjava.sql.DatabaseMetaData#importedKeyRestrict Parameters: deleteFlag - applicable delete rule for this FK; one ofjava.sql.DatabaseMetaData.importedKeyNoAction,java.sql.DatabaseMetaData.importedKeyCascade,java.sql.DatabaseMetaData.importedKeySetNull,java.sql.DatabaseMetaData.importedKeyRestrict, orjava.sql.DatabaseMetaData.importedKeySetDefault Parameters: deferFlag - deferrability flag for this FK; one ofjava.sql.DatabaseMetaData.importedKeyInitiallyDeferred,java.sql.DatabaseMetaData.importedKeyInitiallyImmediate, orjava.sql.DatabaseMetaData.importedKeyNotDeferrable See Also: java.sql.DatabaseMetaData.importedKeyCascade See Also: java.sql.DatabaseMetaData.importedKeyInitiallyDeferred See Also: java.sql.DatabaseMetaData.importedKeyInitiallyImmediate See Also: java.sql.DatabaseMetaData.importedKeyNoAction See Also: java.sql.DatabaseMetaData.importedKeyNotDeferrable See Also: java.sql.DatabaseMetaData.importedKeyRestrict See Also: java.sql.DatabaseMetaData.importedKeySetNull See Also: java.sql.DatabaseMetaData.importedKeySetDefault |
createForeignKeyColumnList | public static List createForeignKeyColumnList(ResultSet rs) throws SQLException(Code) | | Creates a List of ForeignKeyColumn instances from the given ResultSet.
Parameters: rs - ResultSet containing foreign key metadata as obtained from DatabaseMetaData List of ForeignKeyColumn instances based from metadata in rs throws: SQLException - if SQL error occurs while reading in data fromgiven ResultSet |
getDeferrability | public short getDeferrability()(Code) | | Gets deferrability flag.
deferrability flag; one ofjava.sql.DatabaseMetaData.importedKeyInitiallyDeferred,java.sql.DatabaseMetaData.importedKeyInitiallyImmediate, orjava.sql.DatabaseMetaData.importedKeyNotDeferrable See Also: java.sql.DatabaseMetaData#importedKeyInitiallyDeferred, See Also: java.sql.DatabaseMetaData#importedKeyInitiallyImmediate, or See Also: java.sql.DatabaseMetaData.importedKeyNotDeferrable |
getImportCatalogName | public String getImportCatalogName()(Code) | | Gets name of catalog containing the import table which, in turn,
contains the imported (primary) key associated with this foreign
key.
name of catalog containing the imported primary key'sencapsulating table |
getImportColumnName | public String getImportColumnName()(Code) | | Gets name of import column contained within imported (primary) key
associated with this foreign key.
name of imported column |
getImportKeyName | public String getImportKeyName()(Code) | | Gets key name of imported (primary) key associated with this foreign
key.
name of imported primary key |
getImportSchemaName | public String getImportSchemaName()(Code) | | Gets name of schema containing the import table which, in turn,
contains the imported (primary) key associated with this foreign
key.
name of schema containing the imported primary key'sencapsulating table |
getImportTableName | public String getImportTableName()(Code) | | Gets name of import table containing imported (primary) key
associated with this foreign key.
name of table containing imported primary key |
|
|