java.lang.Object
org.tentackle.model.impl.IndexAttributeImpl
- All Implemented Interfaces:
IndexAttribute
Index part.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the attribute.Gets the column name.
For single-column data types: the column name of the attribute.Gets the name of the function.getIndex()Gets the index this attribute belongs to.booleanReturns whether the attribute is descending.voidsetAttributeAndColumnName(Attribute attribute, String columnName) voidsetDescending(boolean descending) voidsetFunctionName(String functionName)
-
Constructor Details
-
IndexAttributeImpl
Creates an index attribute.- Parameters:
index- the index
-
-
Method Details
-
getIndex
Gets the index this attribute belongs to.- Returns:
- the index
-
getAttribute
Description copied from interface:IndexAttributeGets the attribute.- Specified by:
getAttributein interfaceIndexAttribute- Returns:
- the attribute
-
getColumnName
Description copied from interface:IndexAttributeGets the column name.
For single-column data types: the column name of the attribute. For multi-column data types: the corresponding column name within the data type.- Specified by:
getColumnNamein interfaceIndexAttribute- Returns:
- the column name
-
getFunctionName
Description copied from interface:IndexAttributeGets the name of the function.- Specified by:
getFunctionNamein interfaceIndexAttribute- Returns:
- the function name, null if no function-based index
-
isDescending
public boolean isDescending()Description copied from interface:IndexAttributeReturns whether the attribute is descending.- Specified by:
isDescendingin interfaceIndexAttribute- Returns:
- true if descending, else ascending (default)
-
setAttributeAndColumnName
-
setFunctionName
-
setDescending
public void setDescending(boolean descending)
-