Class CommandContainer.GeneratedKeysCollector

  • All Implemented Interfaces:
    ResultTarget
    Enclosing class:
    CommandContainer

    private static final class CommandContainer.GeneratedKeysCollector
    extends java.lang.Object
    implements ResultTarget
    Collector of generated keys.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRow​(Value... values)
      Add the row to the result set.
      long getRowCount()
      Get the number of rows.
      void limitsWereApplied()
      A hint that sorting, offset and limit may be ignored by this result because they were applied during the query.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • indexes

        private final int[] indexes
    • Constructor Detail

      • GeneratedKeysCollector

        GeneratedKeysCollector​(int[] indexes,
                               LocalResult result)
    • Method Detail

      • limitsWereApplied

        public void limitsWereApplied()
        Description copied from interface: ResultTarget
        A hint that sorting, offset and limit may be ignored by this result because they were applied during the query. This is useful for WITH TIES clause because result may contain tied rows above limit.
        Specified by:
        limitsWereApplied in interface ResultTarget
      • getRowCount

        public long getRowCount()
        Description copied from interface: ResultTarget
        Get the number of rows.
        Specified by:
        getRowCount in interface ResultTarget
        Returns:
        the number of rows
      • addRow

        public void addRow​(Value... values)
        Description copied from interface: ResultTarget
        Add the row to the result set.
        Specified by:
        addRow in interface ResultTarget
        Parameters:
        values - the values