|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.refFaultParamDb.dao.db.DeformationModelSummaryDB_DAO
public class DeformationModelSummaryDB_DAO
This class puts Deformation model summary (name, associated fault model) into the database.
| Constructor Summary | |
|---|---|
DeformationModelSummaryDB_DAO(DB_AccessAPI dbAccessAPI)
|
|
| Method Summary | |
|---|---|
int |
addDeformationModel(DeformationModelSummary deformationModel)
Add a new deformation model |
ArrayList<DeformationModelSummary> |
getAllDeformationModels()
Get all the deformation Models from the database |
DeformationModelSummary |
getDeformationModel(int deformationModelId)
Get a deformation model based on deformation model ID |
DeformationModelSummary |
getDeformationModel(String deformationModelName)
Get a deformation model based on deformation model Name |
boolean |
removeDeformationModel(int deformationModelId)
remove a deformation model from the database |
void |
setDB_Connection(DB_AccessAPI dbAccessAPI)
|
boolean |
updateDeformationModel(int deformationModelId,
DeformationModelSummary deformationModel)
Update a deformation Model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeformationModelSummaryDB_DAO(DB_AccessAPI dbAccessAPI)
| Method Detail |
|---|
public void setDB_Connection(DB_AccessAPI dbAccessAPI)
public int addDeformationModel(DeformationModelSummary deformationModel)
throws InsertException
deformationModel -
InsertException
public boolean updateDeformationModel(int deformationModelId,
DeformationModelSummary deformationModel)
throws UpdateException
deformationModelId - deformationModel -
UpdateException
public DeformationModelSummary getDeformationModel(int deformationModelId)
throws QueryException
faultModelId -
QueryException
public DeformationModelSummary getDeformationModel(String deformationModelName)
throws QueryException
deformationModelName -
QueryException
public boolean removeDeformationModel(int deformationModelId)
throws UpdateException
deformationModelId -
UpdateException
public ArrayList<DeformationModelSummary> getAllDeformationModels()
throws QueryException
QueryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||