org.opensha.refFaultParamDb.dao.db
Class EstimateInstancesDB_DAO

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

public class EstimateInstancesDB_DAO
extends java.lang.Object

Title: EstimateInstancesDB_DAO.java

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
EstimateInstancesDB_DAO(DB_AccessAPI dbAccessAPI)
          Constructor.
 
Method Summary
 int addEstimateInstance(EstimateInstances estimateInstance)
          Add estimate instance to the table
 java.util.ArrayList<EstimateInstances> getAllEstimateInstances()
           
 EstimateInstances getEstimateInstance(int estimateInstanceId)
           
static void main(java.lang.String[] args)
           
 boolean removeEstimateInstance(int estimateInstanceId)
          remove the estimate instance 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
 

Constructor Detail

EstimateInstancesDB_DAO

public EstimateInstancesDB_DAO(DB_AccessAPI dbAccessAPI)
Constructor.

Parameters:
dbConnection -
Method Detail

setDB_Connection

public void setDB_Connection(DB_AccessAPI dbAccessAPI)

addEstimateInstance

public int addEstimateInstance(EstimateInstances estimateInstance)
                        throws InsertException
Add estimate instance to the table

Parameters:
estimateInstance -
Throws:
InsertException

getEstimateInstance

public EstimateInstances getEstimateInstance(int estimateInstanceId)
                                      throws QueryException
Throws:
QueryException

removeEstimateInstance

public boolean removeEstimateInstance(int estimateInstanceId)
                               throws UpdateException
remove the estimate instance from the table

Parameters:
estimateInstanceId -
Returns:
Throws:
UpdateException

getAllEstimateInstances

public java.util.ArrayList<EstimateInstances> getAllEstimateInstances()
                                                               throws QueryException
Throws:
QueryException

main

public static void main(java.lang.String[] args)