| java.lang.Object org.netbeans.modules.jdbcwizard.builder.dbmodel.impl.PrimaryKeyImpl
PrimaryKeyImpl | public class PrimaryKeyImpl implements PrimaryKey,Cloneable(Code) | | Implements PrimaryKey interface.
author: Jonathan Giron |
Inner Class :public static class Column implements Comparable | |
Constructor Summary | |
public | PrimaryKeyImpl(String keyName, List keyColumnNames, boolean isStringList) Creates a new instance of PrimaryKey with the given key name and referencing the column names
in the given List. | public | PrimaryKeyImpl(PrimaryKey src) Creates a new instance of PrimaryKeyImpl, cloning the contents of the given PrimaryKey
implementation instance. |
PrimaryKeyImpl | public PrimaryKeyImpl(String keyName, List keyColumnNames, boolean isStringList)(Code) | | Creates a new instance of PrimaryKey with the given key name and referencing the column names
in the given List.
Parameters: keyName - name, if any, of this PrimaryKey Parameters: keyColumnNames - List of Column objects, or column names in key sequence order,depending on state of isStringList Parameters: isStringList - true if keyColumnName contains column names in key sequence order, falseif it contains Column objects which need to be sorted in key sequence order. |
PrimaryKeyImpl | public PrimaryKeyImpl(PrimaryKey src)(Code) | | Creates a new instance of PrimaryKeyImpl, cloning the contents of the given PrimaryKey
implementation instance.
Parameters: src - PrimaryKey to be cloned |
clone | public Object clone()(Code) | | Create a clone of this PrimaryKeyImpl.
cloned copy of DBColumn. |
contains | public boolean contains(String columnName)(Code) | | See Also: com.stc.model.database.PrimaryKey.contains(String) |
contains | public boolean contains(DBColumn col)(Code) | | See Also: com.stc.model.database.PrimaryKey.contains(DBColumn) |
equals | public boolean equals(Object refObj)(Code) | | Overrides default implementation to return value based on memberwise comparison.
Parameters: refObj - Object against which we compare this instance true if refObj is functionally identical to this instance; false otherwise |
getColumnCount | public int getColumnCount()(Code) | | See Also: com.stc.model.database.PrimaryKey.getColumnCount |
getColumnNames | public List getColumnNames()(Code) | | See Also: com.stc.model.database.PrimaryKey.getColumnNames |
getDBColumnName | public String getDBColumnName(int iColumn)(Code) | | See Also: com.stc.model.database.PrimaryKey.getDBColumn |
getName | public String getName()(Code) | | See Also: com.stc.model.database.PrimaryKey.getName |
getParent | public DBTable getParent()(Code) | | See Also: com.stc.model.database.PrimaryKey.getParent |
getSequence | public int getSequence(DBColumn col)(Code) | | See Also: com.stc.model.database.PrimaryKey.getSequence(DBColumn) |
getSequence | public int getSequence(String columnName)(Code) | | See Also: com.stc.model.database.PrimaryKey.getSequence(String) |
hashCode | public int hashCode()(Code) | | Overrides default implementation to compute hashCode value for those members used in equals()
for comparison.
hash code for this object See Also: java.lang.Object.hashCode |
isReferencedBy | public boolean isReferencedBy(ForeignKey fk)(Code) | | See Also: com.stc.model.database.PrimaryKey.isReferencedBy |
setColumnNames | public void setColumnNames(String[] newColNames)(Code) | | Replaces the current List of column names with the contents of the given String array.
Parameters: newColNames - array of names to supplant current list of column names |
setParent | void setParent(DBTable newParent)(Code) | | Sets reference to DBTable that owns this primary key.
Parameters: newParent - new parent of this primary key. |
|
|