| java.lang.Object org.netbeans.modules.jdbcwizard.builder.dbmodel.impl.IndexImpl
Inner Class :public static class Column implements Comparable | |
Constructor Summary | |
public | IndexImpl(String indexName, int indexType, boolean isUnique, String sortOrder, int indexCardinality) Creates a new instance of Index with the given key name and attributes. | public | IndexImpl(String indexName, int indexType, boolean isUnique, String sortOrder, int indexCardinality, List indexColumnNames, boolean isStringList) Creates a new instance of Index with the given key name and attributes, and referencing the
column names in the given List. | public | IndexImpl(Index src) Creates a new instance of Index, cloning the contents of the given Index implementation
instance. |
IndexImpl | public IndexImpl(String indexName, int indexType, boolean isUnique, String sortOrder, int indexCardinality)(Code) | | Creates a new instance of Index with the given key name and attributes.
Parameters: indexName - name of this Index, must be non-empty Parameters: indexType - type of Index, as enumerated in java.sql.DatabaseMetaData; one oftableIndexClustered, tableIndexHashed, or tableIndexOther Parameters: isUnique - true if index enforces uniqueness, false otherwise Parameters: sortOrder - 'A' for ascending, 'D' for descending, null if undefined Parameters: indexCardinality - cardinality of this index See Also: java.sql.DatabaseMetaData.tableIndexClustered See Also: java.sql.DatabaseMetaData.tableIndexHashed See Also: java.sql.DatabaseMetaData.tableIndexOther |
IndexImpl | public IndexImpl(String indexName, int indexType, boolean isUnique, String sortOrder, int indexCardinality, List indexColumnNames, boolean isStringList)(Code) | | Creates a new instance of Index with the given key name and attributes, and referencing the
column names in the given List.
Parameters: indexName - name of this Index, must be non-empty Parameters: indexType - type of Index, as enumerated in java.sql.DatabaseMetaData; one oftableIndexClustered, tableIndexHashed, or tableIndexOther Parameters: isUnique - true if index enforces uniqueness, false otherwise Parameters: sortOrder - 'A' for ascending, 'D' for descending, null if undefined Parameters: indexCardinality - cardinality of this index Parameters: indexColumnNames - List of Column objects, or column names in sequential order,depending on state of isStringList Parameters: isStringList - true if indexColumnName contains column names in sequential order, falseif it contains Column objects which need to be sorted in sequential order. See Also: java.sql.DatabaseMetaData.tableIndexClustered See Also: java.sql.DatabaseMetaData.tableIndexHashed See Also: java.sql.DatabaseMetaData.tableIndexOther |
IndexImpl | public IndexImpl(Index src)(Code) | | Creates a new instance of Index, cloning the contents of the given Index implementation
instance.
Parameters: src - Index instance 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.Index.contains(String) |
contains | public boolean contains(DBColumn col)(Code) | | See Also: com.stc.model.database.Index.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 |
getCardinality | public int getCardinality()(Code) | | See Also: com.stc.model.database.Index.getCardinality |
getColumnCount | public int getColumnCount()(Code) | | See Also: com.stc.model.database.Index.getColumnCount |
getColumnName | public String getColumnName(int iColumn)(Code) | | See Also: com.stc.model.database.Index.getColumnName |
getColumnNames | public List getColumnNames()(Code) | | See Also: com.stc.model.database.Index.getColumnNames |
getName | public String getName()(Code) | | See Also: com.stc.model.database.Index.getName |
getParent | public DBTable getParent()(Code) | | See Also: com.stc.model.database.Index.getParent |
getSequence | public int getSequence(DBColumn col)(Code) | | See Also: com.stc.model.database.Index.getSequence(DBColumn) |
getSequence | public int getSequence(String columnName)(Code) | | Gets the ordinal position of the column, if any, associated with the given columnName.
Parameters: columnName - name of column whose position is desired (zero-based) position of given column, or -1 if no column by the given columnNamecould be located |
getSortSequence | public String getSortSequence()(Code) | | See Also: com.stc.model.database.Index.getSortSequence |
getType | public int getType()(Code) | | See Also: com.stc.model.database.Index.getType |
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 |
isUnique | public boolean isUnique()(Code) | | See Also: com.stc.model.database.Index.contains(String) |
setColumnNames | public void setColumnNames(List indexColumnNames, boolean isStringList)(Code) | | |
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 | public void setParent(DBTable newParent)(Code) | | Sets reference to JDBCTable that owns this primary key.
Parameters: newParent - new parent of this primary key. |
|
|