public class IndexMetaData extends Object
| 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()
Returns whether index is unique.
|
void |
setFilterCondition(String filterCondition)
Sets the filter condition.
|
void |
setIndexName(String indexName)
Sets the index name.
|
void |
setUnique(boolean unique)
Sets whether index is unique.
|
void |
setupIndexFromMetaData(ResultSet resultSet)
Sets up the index from the database meta data result.
|
String |
toString() |
void |
validate()
Validates and postprocesses the index data.
|
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 void setIndexName(String indexName)
indexName - the name in lowercase without schemapublic boolean isUnique()
public void setUnique(boolean unique)
unique - true if uniquepublic String getFilterCondition()
public void setFilterCondition(String filterCondition)
filterCondition - the filter, null if nonepublic boolean isPrimaryIdKey()
public void validate()
Tentackle - a domain driven enterprise framework