|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.refFaultParamDb.dao.db.FaultDB_DAO
public class FaultDB_DAO
Title: FaultDB_DAO.java
Description: this class interacts with the database to get the fault information
Copyright: Copyright (c) 2002
Company:
| Constructor Summary | |
|---|---|
FaultDB_DAO(DB_AccessAPI dbAccessAPI)
|
|
| Method Summary | |
|---|---|
void |
addFault(Fault fault)
Add a fault name to the database |
ArrayList<Fault> |
getAllFaults()
Get a list of all the faults existing itn database |
Fault |
getFault(int faultId)
Get the information about a fault based on fault Id |
Fault |
getFault(String faultName)
Get information about a fault based on fault name |
void |
setDB_Connection(DB_AccessAPI dbAccessAPI)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FaultDB_DAO(DB_AccessAPI dbAccessAPI)
| Method Detail |
|---|
public void setDB_Connection(DB_AccessAPI dbAccessAPI)
dbAccessAPI -
public void addFault(Fault fault)
throws InsertException
fault -
InsertException
public Fault getFault(int faultId)
throws QueryException
faultId -
QueryException
public Fault getFault(String faultName)
throws QueryException
faultName -
QueryException
public ArrayList<Fault> getAllFaults()
throws QueryException
QueryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||