|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.refFaultParamDb.dao.db.PaleoSiteDB_DAO
public class PaleoSiteDB_DAO
Title: PaleoSiteDB_DAO.java
Description: Performs insert/delete/update on PaleoSite table on oracle database
Copyright: Copyright (c) 2002
Company:
| Constructor Summary | |
|---|---|
PaleoSiteDB_DAO(DB_AccessAPI dbAccess)
|
|
| Method Summary | |
|---|---|
void |
addPaleoSite(PaleoSite paleoSite)
Add a new paleo site |
ArrayList<PaleoSiteSummary> |
getAllPaleoSiteNames()
It returns a list of PaleoSiteSummary objects. |
ArrayList<PaleoSite> |
getAllPaleoSites()
Get all the paleo sites from the database |
PaleoSite |
getPaleoSite(int paleoSiteId)
Get paleo site data based on paleoSiteId |
PaleoSite |
getPaleoSite(String paleoSiteName)
Get paleo site data based on paleoSiteName |
PaleoSite |
getPaleoSiteByQfaultId(String qFaultSiteId)
Get paleo site data based on qfaultSiteId |
ArrayList<PaleoSite> |
getPaleoSiteNameIdAndLocations()
Get a list of PaleoSites which just have Id, Name and Locations |
static void |
main(String[] args)
|
boolean |
removePaleoSite(int paleoSiteId)
remove a paleo site from the database |
void |
setDB_Connection(DB_AccessAPI dbAccess)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PaleoSiteDB_DAO(DB_AccessAPI dbAccess)
| Method Detail |
|---|
public void setDB_Connection(DB_AccessAPI dbAccess)
public void addPaleoSite(PaleoSite paleoSite)
throws InsertException
paleoSite -
InsertException
public PaleoSite getPaleoSite(int paleoSiteId)
throws QueryException
paleoSiteId -
QueryException
public PaleoSite getPaleoSiteByQfaultId(String qFaultSiteId)
throws QueryException
qFaultSiteId -
QueryException
public PaleoSite getPaleoSite(String paleoSiteName)
throws QueryException
paleoSiteName -
QueryException
public ArrayList<PaleoSiteSummary> getAllPaleoSiteNames()
throws QueryException
QueryException
public ArrayList<PaleoSite> getPaleoSiteNameIdAndLocations()
throws QueryException
QueryException
public boolean removePaleoSite(int paleoSiteId)
throws UpdateException
paleoSiteId -
UpdateException
public ArrayList<PaleoSite> getAllPaleoSites()
throws QueryException
QueryExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||