org.opensha.refFaultParamDb.dao.db
Class LogTypeDB_DAO

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

public class LogTypeDB_DAO
extends java.lang.Object

Title: LogTypeDB_DAO.java

Description: Find log type id corresponding to a particular log base

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable

Field Summary
static java.lang.String LOG_BASE_10
           
static java.lang.String LOG_BASE_E
           
 
Constructor Summary
LogTypeDB_DAO(DB_AccessAPI dbAccessAPI)
          Constructor.
 
Method Summary
 java.lang.String getLogBase(int logTypeId)
           
 int getLogTypeId(java.lang.String logBase)
          Get log type id for a particular log base 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

LOG_BASE_E

public static final java.lang.String LOG_BASE_E
See Also:
Constant Field Values

LOG_BASE_10

public static final java.lang.String LOG_BASE_10
See Also:
Constant Field Values
Constructor Detail

LogTypeDB_DAO

public LogTypeDB_DAO(DB_AccessAPI dbAccessAPI)
Constructor.

Parameters:
dbConnection -
Method Detail

setDB_Connection

public void setDB_Connection(DB_AccessAPI dbAccessAPI)

getLogTypeId

public int getLogTypeId(java.lang.String logBase)
                 throws QueryException
Get log type id for a particular log base from the table

Parameters:
logBase -
Returns:
Throws:
QueryException

getLogBase

public java.lang.String getLogBase(int logTypeId)
                            throws QueryException
Throws:
QueryException