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
    • getColumnName

      public String getColumnName()
      Description copied from interface: IndexAttribute
      Gets 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:
      getColumnName in interface IndexAttribute
      Returns:
      the column name
    • 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)
    • setAttributeAndColumnName

      public void setAttributeAndColumnName(Attribute attribute, String columnName)
    • setFunctionName

      public void setFunctionName(String functionName)
    • setDescending

      public void setDescending(boolean descending)