- java.lang.Object
-
- org.tentackle.model.impl.IndexAttributeImpl
-
- All Implemented Interfaces:
IndexAttribute
public class IndexAttributeImpl extends java.lang.Object implements IndexAttribute
Index part.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description IndexAttributeImpl(Index index)Creates an index attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributegetAttribute()Gets the attribute.java.lang.StringgetFunctionName()Gets the name of the function.IndexgetIndex()Gets the index this attribute belongs to.booleanisDescending()Returns whether the attribute is descending.voidsetAttribute(Attribute attribute)voidsetDescending(boolean descending)voidsetFunctionName(java.lang.String functionName)
-
-
-
Constructor Detail
-
IndexAttributeImpl
public IndexAttributeImpl(Index index)
Creates an index attribute.- Parameters:
index- the index
-
-
Method Detail
-
getIndex
public Index getIndex()
Gets the index this attribute belongs to.- Returns:
- the index
-
getAttribute
public Attribute getAttribute()
Description copied from interface:IndexAttributeGets the attribute.- Specified by:
getAttributein interfaceIndexAttribute- Returns:
- the attribute
-
getFunctionName
public java.lang.String 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)
-
setAttribute
public void setAttribute(Attribute attribute)
-
setFunctionName
public void setFunctionName(java.lang.String functionName)
-
setDescending
public void setDescending(boolean descending)
-
-