| java.lang.Object org.netbeans.modules.sql.project.dbmodel.KeyColumn
All known Subclasses: org.netbeans.modules.sql.project.dbmodel.ForeignKeyColumn,
KeyColumn | public class KeyColumn (Code) | | author: Jonathan Giron version: |
Constructor Summary | |
public | KeyColumn(String name, String column, int colSequence) Creates an instance of KeyColumn with the given values. | protected | KeyColumn() |
RS_KEY_NAME | final protected static String RS_KEY_NAME(Code) | | DatabaseMetaData ResultSet column name used to decode name of associated
primary key
|
RS_SEQUENCE_NUM | final protected static String RS_SEQUENCE_NUM(Code) | | DatabaseMetaData ResultSet column name used to decode key sequence number
|
keyName | protected String keyName(Code) | | Name of key associated with this column
|
sequenceNum | protected int sequenceNum(Code) | | For composite keys, sequence of this column for the associated key
|
KeyColumn | public KeyColumn(String name, String column, int colSequence)(Code) | | Creates an instance of KeyColumn with the given values.
Parameters: name - name of key Parameters: column - name of column Parameters: colSequence - sequence of this column within (composite) primary key |
KeyColumn | protected KeyColumn()(Code) | | Creates a new instance of KeyColumn
|
createPrimaryKeyColumnList | public static List createPrimaryKeyColumnList(ResultSet rs) throws SQLException(Code) | | Creates a List of (primary) KeyColumn instances from the given ResultSet.
Parameters: rs - ResultSet containing primary key metadata as obtained from DatabaseMetaData List of KeyColumn instances based from metadata in rs throws: SQLException - if SQL error occurs while reading in data fromgiven ResultSet |
getColumnName | public String getColumnName()(Code) | | Gets name of column name associate with this primary key.
name of column |
getColumnSequence | public int getColumnSequence()(Code) | | Gets sequence of this column within the (composite) primary key.
column sequence |
getName | public String getName()(Code) | | Gets name of primary key with which this column is associated.
name of associated PK |
|
|