|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.refFaultParamDb.dao.db.SiteTypeDB_DAO
public class SiteTypeDB_DAO
Title: SiteTypeDB_DAO.java
Description: Performs insert/delete/update on siteType on oracle database
Copyright: Copyright (c) 2002
Company:
| Field Summary | |
|---|---|
static String |
SITE_TYPE_NAME
|
| Constructor Summary | |
|---|---|
SiteTypeDB_DAO(DB_AccessAPI dbAccessAPI)
|
|
| Method Summary | |
|---|---|
int |
addSiteType(SiteType siteType)
Add a new site type |
ArrayList<SiteType> |
getAllSiteTypes()
Get all the site types from the database |
SiteType |
getSiteType(int siteTypeId)
Get a site type based on site type ID |
SiteType |
getSiteType(String siteTypeName)
Get the site type info for a particular site type name |
boolean |
removeSiteType(int siteTypeId)
remove a site type from the database |
void |
setDB_Connection(DB_AccessAPI dbAccessAPI)
|
boolean |
updateSiteType(int siteTypeId,
SiteType siteType)
Update a site type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SITE_TYPE_NAME
| Constructor Detail |
|---|
public SiteTypeDB_DAO(DB_AccessAPI dbAccessAPI)
| Method Detail |
|---|
public void setDB_Connection(DB_AccessAPI dbAccessAPI)
public int addSiteType(SiteType siteType)
throws InsertException
siteType -
InsertException
public boolean updateSiteType(int siteTypeId,
SiteType siteType)
throws UpdateException
siteTypeId - siteType -
UpdateException
public SiteType getSiteType(int siteTypeId)
throws QueryException
siteTypeId -
QueryException
public SiteType getSiteType(String siteTypeName)
throws QueryException
siteTypeName -
QueryException
public boolean removeSiteType(int siteTypeId)
throws UpdateException
siteTypeId -
UpdateException
public ArrayList<SiteType> getAllSiteTypes()
throws QueryException
QueryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||