org.gcube.data.spd.obisplugin
Class SearchSession

java.lang.Object
  extended by org.gcube.data.spd.obisplugin.SearchSession

public class SearchSession
extends Object

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected  PreparedStatement commonNamePreparedStatement
           
protected  Connection connection
           
protected  PreparedStatement datasetPreparedStatement
           
protected  PreparedStatement taxonPreparedStatement
           
 
Constructor Summary
SearchSession(Connection connection)
           
 
Method Summary
 PreparedStatement getCommonNamePreparedStatement(int taxonNameId)
           
 Connection getConnection()
           
 PreparedStatement getDatasetPreparedStatement(int id)
           
 PreparedStatement getTaxonPreparedStatement(int id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected Connection connection

taxonPreparedStatement

protected PreparedStatement taxonPreparedStatement

commonNamePreparedStatement

protected PreparedStatement commonNamePreparedStatement

datasetPreparedStatement

protected PreparedStatement datasetPreparedStatement
Constructor Detail

SearchSession

public SearchSession(Connection connection)
Parameters:
connection -
Method Detail

getConnection

public Connection getConnection()
Returns:
the connection

getTaxonPreparedStatement

public PreparedStatement getTaxonPreparedStatement(int id)
                                            throws SQLException
Throws:
SQLException

getCommonNamePreparedStatement

public PreparedStatement getCommonNamePreparedStatement(int taxonNameId)
                                                 throws SQLException
Throws:
SQLException

getDatasetPreparedStatement

public PreparedStatement getDatasetPreparedStatement(int id)
                                              throws SQLException
Throws:
SQLException


Copyright © 2012. All Rights Reserved.