Class IndexEventDAO

java.lang.Object
edu.ucsb.nceas.metacat.index.IndexEventDAO

public class IndexEventDAO extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(edu.ucsb.nceas.metacat.common.index.event.IndexEvent event)
     
    List<edu.ucsb.nceas.metacat.common.index.event.IndexEvent>
    get(String eventAction, Date oldestAge)
    Get the list of the index events which have the specified event action and are younger than the specified oldest age.
    edu.ucsb.nceas.metacat.common.index.event.IndexEvent
    get(org.dataone.service.types.v1.Identifier identifier)
     
    Set<org.dataone.service.types.v1.Identifier>
     
     
    void
    remove(org.dataone.service.types.v1.Identifier identifier)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getInstance

      public static IndexEventDAO getInstance()
    • add

      public void add(edu.ucsb.nceas.metacat.common.index.event.IndexEvent event) throws SQLException
      Throws:
      SQLException
    • remove

      public void remove(org.dataone.service.types.v1.Identifier identifier) throws SQLException
      Throws:
      SQLException
    • get

      public edu.ucsb.nceas.metacat.common.index.event.IndexEvent get(org.dataone.service.types.v1.Identifier identifier) throws SQLException
      Throws:
      SQLException
    • getAllIdentifiers

      public Set<org.dataone.service.types.v1.Identifier> getAllIdentifiers() throws SQLException
      Throws:
      SQLException
    • get

      public List<edu.ucsb.nceas.metacat.common.index.event.IndexEvent> get(String eventAction, Date oldestAge) throws SQLException
      Get the list of the index events which have the specified event action and are younger than the specified oldest age. 2023-02-01 is younger than 2000-01-01.
      Parameters:
      eventAction - the action which the events should contain
      oldestAge - the oldest age which the events can be. If it is null, we don't have the age limit.
      Returns:
      list of the index events contains the action
      Throws:
      SQLException