Class JdbcFieldIndex

java.lang.Object
com.northconcepts.datapipeline.foundations.core.Bean
com.northconcepts.datapipeline.foundations.jdbc.JdbcFieldIndex
All Implemented Interfaces:
DataExceptionContributor, JsonSerializable, RecordSerializable, XmlSerializable, Serializable

public class JdbcFieldIndex extends Bean
One column of a JdbcIndex: its name, position in the index and sort direction.
See Also:
  • Constructor Details

    • JdbcFieldIndex

      public JdbcFieldIndex()
    • JdbcFieldIndex

      public JdbcFieldIndex(String columnName, int ordinalPosition, boolean ascending)
  • Method Details

    • getColumnName

      public String getColumnName()
    • setColumnName

      public void setColumnName(String columnName)
    • getOrdinalPosition

      public int getOrdinalPosition()
      Returns the column's 1-based position within the index.
    • setOrdinalPosition

      public void setOrdinalPosition(int ordinalPosition)
      Sets the column's 1-based position within the index.
    • isAscending

      public boolean isAscending()
      Indicates if the column is sorted ascending; false for descending or when the database reports no sort order.
    • setAscending

      public void setAscending(boolean ascending)
      Indicates if the column is sorted ascending; false for descending or when the database reports no sort order.
    • toRecord

      public Record toRecord()
      Description copied from interface: RecordSerializable
      Converts this object's state to a record that RecordSerializable.fromRecord(Record) can load.
      Specified by:
      toRecord in interface RecordSerializable
      Overrides:
      toRecord in class Bean
    • fromRecord

      public JdbcFieldIndex fromRecord(Record source)
      Description copied from interface: RecordSerializable
      Loads this instance's state from a record and returns this (for fluid API call chaining). For fluid API call chaining, the overridden method should change the declared return type to its class.
      Specified by:
      fromRecord in interface RecordSerializable
      Overrides:
      fromRecord in class Bean
      Parameters:
      source -
      Returns:
      this instance.