|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.ebi.intact.application.predict.business.PredictUser
The super class for a predict user.
| Field Summary | |
static java.lang.String |
SELECTED_SPECIE
|
| Constructor Summary | |
PredictUser()
Default constructor. |
|
| Method Summary | |
void |
closeConnection()
Closes the connection to the database. |
static PredictUser |
create(java.lang.String mapping,
java.lang.String dsClass)
Factory method to create different instances of Predict user instances depending on the JDBC subprotocol. |
java.lang.String |
getDatabaseName()
The name of the database connected to. |
java.util.List |
getDbInfo(java.lang.String specie)
Returns a list of beans created from ia_payg database. |
protected abstract java.lang.String |
getDbInfoSQL(java.lang.String taxid)
|
java.lang.String |
getDefaultChoice()
|
java.lang.String |
getSpecieLink()
|
java.util.List |
getSpecies()
Returns a list of tax ids for species from the database. |
protected abstract java.lang.String |
getSpeciesSQL()
|
java.lang.String |
getUserName()
Returns the Intact user. |
java.util.Collection |
search(java.lang.String objectType,
java.lang.String searchParam,
java.lang.String searchValue)
This method provides a means of searching intact objects, within the constraints provided by the parameters to the method. |
void |
setSpecie(java.lang.String specie)
|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Will call this method when an object is bound to a session. |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Will call this method when an object is unbound from a session. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String SELECTED_SPECIE
| Constructor Detail |
public PredictUser()
| Method Detail |
public static PredictUser create(java.lang.String mapping,
java.lang.String dsClass)
throws DataSourceException,
IntactException
mapping - the name of the mapping file.dsClass - the class name of the Data Source.
DataSourceException - for error in getting the data source; probably due to
missing mapping file.
IntactException - for errors in creating IntactHelper; problem with reading
the repository file.public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound in interface javax.servlet.http.HttpSessionBindingListenerpublic void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenerpublic java.lang.String getUserName()
IntactUserI
getUserName in interface IntactUserIpublic java.lang.String getDatabaseName()
IntactUserI
getDatabaseName in interface IntactUserI
public java.util.Collection search(java.lang.String objectType,
java.lang.String searchParam,
java.lang.String searchValue)
throws IntactException
IntactUserI
search in interface IntactUserIobjectType - the object type to be searchedsearchParam - the parameter to search on (eg field)searchValue - the search value to match with the parameter
IntactException - thrown if problems are encountered during the
search process.
public java.util.List getSpecies()
throws IntactException,
java.sql.SQLException
IntactException - for accessing the datastore
java.sql.SQLException - thrown by the underlying database.
pre: results->forall(obj: Object | obj.oclIsTypeOf(String))
public java.lang.String getDefaultChoice()
public java.util.List getDbInfo(java.lang.String specie)
throws IntactException,
java.sql.SQLException
specie - the species to get information from ia_payg database. The
database is queried with this value.
IntactException - for accessing the datastore
java.sql.SQLException - thrown by the underlying database.
pre: results->forall(obj: Object | obj.oclIsTypeOf(ResultBean))
public void closeConnection()
public java.lang.String getSpecieLink()
public void setSpecie(java.lang.String specie)
protected abstract java.lang.String getSpeciesSQL()
protected abstract java.lang.String getDbInfoSQL(java.lang.String taxid)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||