org.opensha.refFaultParamDb.dao.db
Class SectionSourceDB_DAO

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

public class SectionSourceDB_DAO
extends Object

Title: SectionSourceDB_DAO.java

Description: Gets the section source based on source name. Example of sources are CFM or 2002

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
SectionSourceDB_DAO(DB_AccessAPI dbAccessAPI)
           
 
Method Summary
 int addSectionSource(String name)
           
 ArrayList<SectionSource> getAllSectionSource()
           
 SectionSource getSectionSource(int sectionSourceId)
          Get a section source based on section source ID
 SectionSource getSectionSource(String sectionSourceName)
          Get a section source based on section source name
 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

SectionSourceDB_DAO

public SectionSourceDB_DAO(DB_AccessAPI dbAccessAPI)
Method Detail

setDB_Connection

public void setDB_Connection(DB_AccessAPI dbAccessAPI)

getSectionSource

public SectionSource getSectionSource(int sectionSourceId)
                               throws QueryException
Get a section source based on section source ID

Parameters:
sectionSourceId -
Returns:
Throws:
QueryException

getSectionSource

public SectionSource getSectionSource(String sectionSourceName)
                               throws QueryException
Get a section source based on section source name

Parameters:
sectionSourceName -
Returns:
Throws:
QueryException

getAllSectionSource

public ArrayList<SectionSource> getAllSectionSource()

addSectionSource

public int addSectionSource(String name)