Interface ReverseLookup

All Known Implementing Classes:
ReverseLookup.Null, ReverseLookupListener

public interface ReverseLookup
For hierarchical table display, identify the row index key that corresponds to a given logical key.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  ReverseLookup.Null
    A null implementation of a reverse lookup, suitable for a table without any key columns.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static ReverseLookup.Null NULL  
  • Method Summary

    Modifier and Type Method Description
    long get​(Object key)
    Gets the index value where key exists in the table, or the no-entry-value if it is not found in the table.
    String[] getKeyColumns()  
    long getNoEntryValue()
    Returns the value that will be returned from get(java.lang.Object) or if no entry exists for a given key.
    long getPrev​(Object key)
    Gets the index value where key previously in the table, or the no-entry-value if it is was not found in the table.
  • Field Details

  • Method Details

    • get

      long get​(Object key)
      Gets the index value where key exists in the table, or the no-entry-value if it is not found in the table.
      Parameters:
      key - a single object for a single column, or a SmartKey for multiple columns
      Returns:
      the row index where key exists in the table
    • getPrev

      long getPrev​(Object key)
      Gets the index value where key previously in the table, or the no-entry-value if it is was not found in the table.
      Parameters:
      key - a single object for a single column, or a SmartKey for multiple columns
      Returns:
      the row index where key previously existed in the table
    • getNoEntryValue

      long getNoEntryValue()
      Returns the value that will be returned from get(java.lang.Object) or if no entry exists for a given key.
    • getKeyColumns

      String[] getKeyColumns()
      Returns:
      the key columns this reverse lookup is indexed on