public class IndexMetaData extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<IndexColumnMetaData> |
columns |
protected String |
filterCondition |
protected String |
indexName |
protected TableMetaData |
tableMetaData |
protected boolean |
unique |
| Constructor and Description |
|---|
IndexMetaData(TableMetaData tableMetaData)
Creates an index meta data object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIndexColumnFromMetaData(ResultSet resultSet)
Adds an index column from the database meta data result.
|
boolean |
equals(Object obj) |
List<IndexColumnMetaData> |
getColumns()
Gets the columns.
|
String |
getFilterCondition()
Gets the filter condition.
|
String |
getIndexName()
Gets the index name.
|
TableMetaData |
getTableMetaData()
Gets the table.
|
int |
hashCode() |
boolean |
isPrimaryIdKey()
Returns whether this is the primary key for the object id.
|
boolean |
isUnique() |
void |
setupIndexFromMetaData(ResultSet resultSet)
Sets up the index from the database meta data result.
|
String |
toString() |
void |
validate()
Validates and postprocesses the index data.
|
protected final TableMetaData tableMetaData
protected final List<IndexColumnMetaData> columns
protected String indexName
protected boolean unique
protected String filterCondition
public IndexMetaData(TableMetaData tableMetaData)
tableMetaData - the table the index belongs topublic void setupIndexFromMetaData(ResultSet resultSet) throws SQLException
resultSet - the column result setSQLException - the processing the result set failedpublic void addIndexColumnFromMetaData(ResultSet resultSet) throws SQLException
resultSet - the column result setSQLException - the processing the result set failedpublic TableMetaData getTableMetaData()
public List<IndexColumnMetaData> getColumns()
public String getIndexName()
public boolean isUnique()
public String getFilterCondition()
public boolean isPrimaryIdKey()
public void validate()
Copyright © 2016 Krake Softwaretechnik. All rights reserved.