org.opensha.refFaultParamDb.dao.db
Class ExactTimeDB_DAO

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

public class ExactTimeDB_DAO
extends Object

Title: ExactTimeDB_DAO.java

Description: This class allows to put/get exact time from database

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
ExactTimeDB_DAO()
           
ExactTimeDB_DAO(DB_AccessAPI dbAccessAPI)
          Constructor.
 
Method Summary
 void addExactTime(int timeInstanceId, ExactTime exactTime)
           
 ExactTime getExactTime(int timeInstanceId)
          Get the exact time based on time instance id
 boolean removeTime(int timeInstanceId)
          Remove the time instance based on id
 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

ExactTimeDB_DAO

public ExactTimeDB_DAO(DB_AccessAPI dbAccessAPI)
Constructor.

Parameters:
dbConnection -

ExactTimeDB_DAO

public ExactTimeDB_DAO()
Method Detail

setDB_Connection

public void setDB_Connection(DB_AccessAPI dbAccessAPI)

addExactTime

public void addExactTime(int timeInstanceId,
                         ExactTime exactTime)
                  throws InsertException
Parameters:
timeInstanceId -
exactTime -
Throws:
InsertException

getExactTime

public ExactTime getExactTime(int timeInstanceId)
                       throws QueryException
Get the exact time based on time instance id

Parameters:
timeInstanceId -
Returns:
Throws:
QueryException

removeTime

public boolean removeTime(int timeInstanceId)
                   throws UpdateException
Remove the time instance based on id

Parameters:
estimateInstanceId -
Returns:
Throws:
UpdateException