org.opensha.refFaultParamDb.dao.db
Class TimeTypeDB_DAO

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

public class TimeTypeDB_DAO
extends Object

Title: TimeTypeDB_DAO.java

Description: Find time type id corresponding to a particular time type(exact time or time estimate)

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable

Field Summary
static String EXACT_TIME
           
static String TIME_ESTIMATE
           
 
Constructor Summary
TimeTypeDB_DAO(DB_AccessAPI dbAccessAPI)
          Constructor.
 
Method Summary
 String getTimeType(int timeTypeId)
           
 int getTimeTypeId(String timeType)
          Get time type id for a particular time type(estimate/excat time) from the table
 void setDB_Connection(DB_AccessAPI dbAccessAPI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXACT_TIME

public static final String EXACT_TIME
See Also:
Constant Field Values

TIME_ESTIMATE

public static final String TIME_ESTIMATE
See Also:
Constant Field Values
Constructor Detail

TimeTypeDB_DAO

public TimeTypeDB_DAO(DB_AccessAPI dbAccessAPI)
Constructor.

Parameters:
dbConnection -
Method Detail

setDB_Connection

public void setDB_Connection(DB_AccessAPI dbAccessAPI)

getTimeTypeId

public int getTimeTypeId(String timeType)
                  throws QueryException
Get time type id for a particular time type(estimate/excat time) from the table

Parameters:
timeType -
Returns:
Throws:
QueryException

getTimeType

public String getTimeType(int timeTypeId)
                   throws QueryException
Throws:
QueryException