Class ExtentIndex

All Implemented Interfaces:
ProductIndex, Configurable, AutoCloseable

public class ExtentIndex extends JDBCProductIndex
ExtentIndex is a type of JDBCProductIndex that can also send updates to the extentSummary table.
  • Field Details

  • Constructor Details

    • ExtentIndex

      public ExtentIndex() throws Exception
      Default constructor
      Throws:
      Exception - if error occurs
  • Method Details

    • getLastExtentIndexId

      public long getLastExtentIndexId() throws Exception
      Queries extentSummary table for the largest index id.
      Returns:
      long last extent index id
      Throws:
      Exception - if something goes wrong with database transaction
    • addExtentSummary

      public void addExtentSummary(ExtentSummary product) throws Exception
      Inserts valid ExtentSummary products into extentSummary table
      Parameters:
      product - the product to be added
      Throws:
      Exception - if something goes wrong with the database transaction