Class IndexAttributeImpl

java.lang.Object
org.tentackle.model.impl.IndexAttributeImpl
All Implemented Interfaces:
IndexAttribute

public class IndexAttributeImpl extends Object implements IndexAttribute
Index part.
Author:
harald
  • Constructor Details

    • IndexAttributeImpl

      public IndexAttributeImpl(Index index)
      Creates an index attribute.
      Parameters:
      index - the index
  • Method Details

    • getIndex

      public Index getIndex()
      Gets the index this attribute belongs to.
      Returns:
      the index
    • getAttribute

      public Attribute getAttribute()
      Description copied from interface: IndexAttribute
      Gets the attribute.
      Specified by:
      getAttribute in interface IndexAttribute
      Returns:
      the attribute
    • getFunctionName

      public String getFunctionName()
      Description copied from interface: IndexAttribute
      Gets the name of the function.
      Specified by:
      getFunctionName in interface IndexAttribute
      Returns:
      the function name, null if no function-based index
    • isDescending

      public boolean isDescending()
      Description copied from interface: IndexAttribute
      Returns whether the attribute is descending.
      Specified by:
      isDescending in interface IndexAttribute
      Returns:
      true if descending, else ascending (default)
    • setAttribute

      public void setAttribute(Attribute attribute)
    • setFunctionName

      public void setFunctionName(String functionName)
    • setDescending

      public void setDescending(boolean descending)