java.lang.Object
org.tentackle.sql.metadata.IndexColumnMetaData
- All Implemented Interfaces:
Comparable<IndexColumnMetaData>
- Direct Known Subclasses:
PostgresIndexColumnMetaData
Metadata for a column of an index.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the column columnName.Gets the optional function name.Gets the index.intGets the ordinal position within the index.booleanReturns ascending or descending order.voidsetupIndexColumnFromMetaData(ResultSet resultSet) Sets up the index column from the database metadata result.toString()voidvalidate()Validates and post-processes the index column data.
-
Constructor Details
-
IndexColumnMetaData
Creates an index column.- Parameters:
indexMetaData- the index column belongs to
-
-
Method Details
-
setupIndexColumnFromMetaData
Sets up the index column from the database metadata result.- Parameters:
resultSet- the column result set- Throws:
SQLException- the processing the result set failed
-
getIndexMetaData
Gets the index.- Returns:
- index column belongs to
-
isDescending
public boolean isDescending()Returns ascending or descending order.- Returns:
- true if descending
-
getColumnName
Gets the column columnName.- Returns:
- the index column's columnName in lowercase
-
getFunctionName
Gets the optional function name.- Returns:
- the function in uppercase, null if none
-
getPosition
public int getPosition()Gets the ordinal position within the index.- Returns:
- the position
-
compareTo
- Specified by:
compareToin interfaceComparable<IndexColumnMetaData>
-
validate
public void validate()Validates and post-processes the index column data. -
toString
-