org.opensha.refFaultParamDb.dao.db
Class TimeEstimateDB_DAO

java.lang.Object
  extended by org.opensha.refFaultParamDb.dao.db.TimeEstimateDB_DAO

public class TimeEstimateDB_DAO
extends Object

Title: TimeEstimateDB_DAO.java

Description: This class puts/gets time estimates in the database

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
TimeEstimateDB_DAO(DB_AccessAPI dbAccessAPI)
          Constructor.
 
Method Summary
 void addTimeEstimate(int timeInstanceId, TimeEstimate timeEstimate)
          Add the time estimate into the database table
 TimeEstimate getTimeEstimate(int timeInstanceId)
           
 boolean removeTimeEstimate(int timeInstanceId)
           
 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

TimeEstimateDB_DAO

public TimeEstimateDB_DAO(DB_AccessAPI dbAccessAPI)
Constructor.

Parameters:
dbConnection -
Method Detail

setDB_Connection

public void setDB_Connection(DB_AccessAPI dbAccessAPI)

addTimeEstimate

public void addTimeEstimate(int timeInstanceId,
                            TimeEstimate timeEstimate)
                     throws InsertException
Add the time estimate into the database table

Parameters:
timeInstanceId -
timeEstimate -
Throws:
InsertException

getTimeEstimate

public TimeEstimate getTimeEstimate(int timeInstanceId)
                             throws QueryException
Parameters:
timeInstanceId -
Returns:
Throws:
QueryException

removeTimeEstimate

public boolean removeTimeEstimate(int timeInstanceId)
                           throws UpdateException
Parameters:
timeInstanceId -
Returns:
Throws:
UpdateException