edu.sc.seis.fissuresUtil.database
Class JDBCParameterRef

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.database.JDBCTable
      extended by edu.sc.seis.fissuresUtil.database.JDBCParameterRef

public class JDBCParameterRef
extends JDBCTable


Field Summary
 
Fields inherited from class edu.sc.seis.fissuresUtil.database.JDBCTable
conn, tableName
 
Constructor Summary
JDBCParameterRef(java.sql.Connection conn)
           
 
Method Summary
 edu.iris.Fissures.IfParameterMgr.ParameterRef get(int id)
          This method returns the ParameterRef given the dbid
 int getDBId(edu.iris.Fissures.IfParameterMgr.ParameterRef parameterRef)
          This method returns the dbid given teh ParameterRef Object.
 int put(edu.iris.Fissures.IfParameterMgr.ParameterRef parameterRef)
          Inserts the detaisl of ParameterRef into the database
 
Methods inherited from class edu.sc.seis.fissuresUtil.database.JDBCTable
getConnection, getTableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCParameterRef

public JDBCParameterRef(java.sql.Connection conn)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

put

public int put(edu.iris.Fissures.IfParameterMgr.ParameterRef parameterRef)
        throws java.sql.SQLException
Inserts the detaisl of ParameterRef into the database

Parameters:
parameterref - - ParameterRef
Throws:
java.sql.SQLException

getDBId

public int getDBId(edu.iris.Fissures.IfParameterMgr.ParameterRef parameterRef)
            throws java.sql.SQLException,
                   NotFound
This method returns the dbid given teh ParameterRef Object.

Parameters:
parameterref - - ParameterRef
Returns:
int - the dbid
Throws:
java.sql.SQLException
NotFound

get

public edu.iris.Fissures.IfParameterMgr.ParameterRef get(int id)
                                                  throws java.sql.SQLException,
                                                         NotFound
This method returns the ParameterRef given the dbid

Parameters:
id - - the dbid
Returns:
- ParameterRef
Throws:
java.sql.SQLException
NotFound