edu.sc.seis.fissuresUtil.hibernate
Class EventDB
java.lang.Object
edu.sc.seis.fissuresUtil.hibernate.AbstractHibernateDB
edu.sc.seis.fissuresUtil.hibernate.EventDB
public class EventDB
- extends AbstractHibernateDB
Constructor Summary |
protected |
EventDB()
|
Methods inherited from class edu.sc.seis.fissuresUtil.hibernate.AbstractHibernateDB |
commit, createSession, deploySchema, flush, getReadOnlySession, getSession, getUnitCache, intern, internUnit, internUnit, isSessionOpen, rollback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getLastEventString
protected java.lang.String getLastEventString
finderQueryBase
protected java.lang.String finderQueryBase
finderQueryAvoidDateline
protected java.lang.String finderQueryAvoidDateline
finderQueryAroundDateline
protected java.lang.String finderQueryAroundDateline
getIdenticalEventString
protected java.lang.String getIdenticalEventString
eventByTimeAndDepth
protected java.lang.String eventByTimeAndDepth
eventByName
protected java.lang.String eventByName
INCONCEIVABLY_SMALL_MAGNITUDE
public static final float INCONCEIVABLY_SMALL_MAGNITUDE
- See Also:
- Constant Field Values
INCONCEIVABLY_LARGE_MAGNITUDE
public static final float INCONCEIVABLY_LARGE_MAGNITUDE
- See Also:
- Constant Field Values
INCONCEIVABLY_SMALL_DEPTH
public static final float INCONCEIVABLY_SMALL_DEPTH
- See Also:
- Constant Field Values
INCONCEIVABLY_LARGE_DEPTH
public static final float INCONCEIVABLY_LARGE_DEPTH
- See Also:
- Constant Field Values
EventDB
protected EventDB()
initQueryStrings
protected void initQueryStrings()
getAll
public java.util.List<CacheEvent> getAll()
getByName
public CacheEvent[] getByName(java.lang.String name)
query
public java.util.List<CacheEvent> query(EventFinderQuery q)
getEvent
public CacheEvent getEvent(int dbid)
throws NotFound
- Throws:
NotFound
put
public long put(CacheEvent event)
delete
public void delete(CacheEvent event)
getLastEvent
public CacheEvent getLastEvent()
throws NotFound
- Throws:
NotFound
getIdenticalEvent
public CacheEvent getIdenticalEvent(CacheEvent e)
getCatalogs
public java.lang.String[] getCatalogs()
getContributors
public java.lang.String[] getContributors()
getCatalogsFor
public java.lang.String[] getCatalogsFor(java.lang.String contributor)
getSimilarEvents
public java.util.List<CacheEvent> getSimilarEvents(CacheEvent event,
edu.iris.Fissures.model.TimeInterval timeTolerance,
edu.iris.Fissures.model.QuantityImpl positionTolerance)
throws NotFound
- Throws:
NotFound
getEventsByTimeAndDepthRanges
public CacheEvent[] getEventsByTimeAndDepthRanges(edu.iris.Fissures.model.MicroSecondDate minTime,
edu.iris.Fissures.model.MicroSecondDate maxTime,
double minDepth,
double maxDepth)
getSingleton
public static EventDB getSingleton()
getEventClass
protected java.lang.Class getEventClass()
- override to use queries on subclasses of CacheEvent. For example SOD uses
StatefulEvent.
internUnit
protected void internUnit(CacheEvent event)