Class StatefulEventDB

java.lang.Object
edu.sc.seis.sod.hibernate.StatefulEventDB

public class StatefulEventDB extends Object
  • Field Details

  • Constructor Details

    • StatefulEventDB

      protected StatefulEventDB()
  • Method Details

    • put

      public long put(StatefulEvent event)
    • getAll

      public List<StatefulEvent> getAll()
    • getAll

      public List<StatefulEvent> getAll(Status status)
    • getNumEventsOfStatus

      public int getNumEventsOfStatus(Standing standing)
    • getEvent

      public StatefulEvent getEvent(int dbid) throws edu.sc.seis.fissuresUtil.database.NotFound
      Throws:
      edu.sc.seis.fissuresUtil.database.NotFound
    • getEventInTimeRange

      public List<StatefulEvent> getEventInTimeRange(edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange range)
    • getEventInTimeRange

      public List<StatefulEvent> getEventInTimeRange(edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange range, Status status)
    • getEventInTimeRangeRegardlessOfStatus

      public List<StatefulEvent> getEventInTimeRangeRegardlessOfStatus(edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange range)
    • query

      public List<StatefulEvent> query(edu.sc.seis.fissuresUtil.flow.querier.EventFinderQuery q)
    • getLastEvent

      public StatefulEvent getLastEvent() throws edu.sc.seis.fissuresUtil.database.NotFound
      Throws:
      edu.sc.seis.fissuresUtil.database.NotFound
    • getEventsByTimeAndDepthRanges

      public StatefulEvent[] getEventsByTimeAndDepthRanges(edu.iris.Fissures.model.MicroSecondDate minTime, edu.iris.Fissures.model.MicroSecondDate maxTime, double minDepth, double maxDepth)
    • getNumWaiting

      public int getNumWaiting()
    • getNext

      public StatefulEvent getNext(Standing standing)
      next successful event to process. Returns null if no more events.
    • getIdenticalEvent

      public StatefulEvent getIdenticalEvent(edu.sc.seis.fissuresUtil.cache.CacheEvent e)
    • get

      public List get(String statii, String order, boolean ascending)
    • flush

      public void flush()
    • commit

      public void commit()
    • rollback

      public void rollback()
    • getSession

      public org.hibernate.Session getSession()
    • restartCompletedEvents

      public void restartCompletedEvents()
    • getSingleton

      public static StatefulEventDB getSingleton()
    • getByName

      public edu.sc.seis.fissuresUtil.cache.CacheEvent[] getByName(String name)
    • getCatalogs

      public String[] getCatalogs()
    • getContributors

      public String[] getContributors()
    • getCatalogsFor

      public String[] getCatalogsFor(String contributor)