org.opensha.refFaultParamDb.dao.db
Class MinMaxPrefEstimateDB_DAO

java.lang.Object
  extended by org.opensha.refFaultParamDb.dao.db.MinMaxPrefEstimateDB_DAO
All Implemented Interfaces:
EstimateDAO_API

public class MinMaxPrefEstimateDB_DAO
extends Object
implements EstimateDAO_API

Title: MinMaxPrefEstimateDB_DAO.java

Description: It saves the min/max/preferred estimate into the database

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable

Field Summary
static String EST_TYPE_NAME
           
 
Constructor Summary
MinMaxPrefEstimateDB_DAO()
           
MinMaxPrefEstimateDB_DAO(DB_AccessAPI dbAccessAPI)
          Constructor.
 
Method Summary
 void addEstimate(int estimateInstanceId, Estimate estimate)
          Add the normal estimate into the database table
 Estimate getEstimate(int estimateInstanceId)
          Get the Estimate Instance info for a particular estimateInstanceId
 String getEstimateTypeName()
           
 boolean removeEstimate(int estimateInstanceId)
          Remove the Estimate from the list
 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

EST_TYPE_NAME

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

MinMaxPrefEstimateDB_DAO

public MinMaxPrefEstimateDB_DAO(DB_AccessAPI dbAccessAPI)
Constructor.

Parameters:
dbConnection -

MinMaxPrefEstimateDB_DAO

public MinMaxPrefEstimateDB_DAO()
Method Detail

setDB_Connection

public void setDB_Connection(DB_AccessAPI dbAccessAPI)
Specified by:
setDB_Connection in interface EstimateDAO_API

addEstimate

public void addEstimate(int estimateInstanceId,
                        Estimate estimate)
                 throws InsertException
Add the normal estimate into the database table

Specified by:
addEstimate in interface EstimateDAO_API
Parameters:
estimateInstanceId -
estimate -
Throws:
InsertException

getEstimate

public Estimate getEstimate(int estimateInstanceId)
                     throws QueryException
Description copied from interface: EstimateDAO_API
Get the Estimate Instance info for a particular estimateInstanceId

Specified by:
getEstimate in interface EstimateDAO_API
Parameters:
estimateInstanceId -
Returns:
Throws:
QueryException

removeEstimate

public boolean removeEstimate(int estimateInstanceId)
                       throws UpdateException
Description copied from interface: EstimateDAO_API
Remove the Estimate from the list

Specified by:
removeEstimate in interface EstimateDAO_API
Parameters:
estimateInstanceId -
Returns:
Throws:
UpdateException

getEstimateTypeName

public String getEstimateTypeName()
Specified by:
getEstimateTypeName in interface EstimateDAO_API