edu.sc.seis.cormorant.event
Class EventDBDataAccess
java.lang.Object
edu.sc.seis.cormorant.event.EventDBDataAccess
- All Implemented Interfaces:
- EventDataAccess
public class EventDBDataAccess
- extends java.lang.Object
- implements EventDataAccess
Constructor Summary |
EventDBDataAccess(edu.sc.seis.fissuresUtil.hibernate.EventDB edb)
|
Method Summary |
edu.sc.seis.fissuresUtil.cache.CacheEvent[] |
getByName(java.lang.String name)
|
java.lang.String[] |
getCatalogs()
|
java.lang.String[] |
getCatalogsFor(java.lang.String contributor)
|
java.lang.String[] |
getContributors()
|
edu.sc.seis.fissuresUtil.cache.CacheEvent |
getEvent(int dbid)
gets a CacheEvent for the given database id |
int[] |
query(edu.sc.seis.fissuresUtil.flow.querier.EventFinderQuery q)
returns the database ids of all events that match the query |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventDBDataAccess
public EventDBDataAccess(edu.sc.seis.fissuresUtil.hibernate.EventDB edb)
getByName
public edu.sc.seis.fissuresUtil.cache.CacheEvent[] getByName(java.lang.String name)
- Specified by:
getByName
in interface EventDataAccess
getCatalogs
public java.lang.String[] getCatalogs()
- Specified by:
getCatalogs
in interface EventDataAccess
getCatalogsFor
public java.lang.String[] getCatalogsFor(java.lang.String contributor)
- Specified by:
getCatalogsFor
in interface EventDataAccess
getContributors
public java.lang.String[] getContributors()
- Specified by:
getContributors
in interface EventDataAccess
getEvent
public edu.sc.seis.fissuresUtil.cache.CacheEvent getEvent(int dbid)
throws edu.sc.seis.fissuresUtil.database.NotFound
- Description copied from interface:
EventDataAccess
- gets a CacheEvent for the given database id
- Specified by:
getEvent
in interface EventDataAccess
- Throws:
edu.sc.seis.fissuresUtil.database.NotFound
query
public int[] query(edu.sc.seis.fissuresUtil.flow.querier.EventFinderQuery q)
- Description copied from interface:
EventDataAccess
- returns the database ids of all events that match the query
- Specified by:
query
in interface EventDataAccess