edu.sc.seis.fissuresUtil.database
Class JDBCLocation

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

public class JDBCLocation
extends JDBCTable


Field Summary
protected  java.sql.PreparedStatement getDBIdStmt
           
protected  java.sql.PreparedStatement getStmt
           
protected  java.sql.PreparedStatement putStmt
           
 
Fields inherited from class edu.sc.seis.fissuresUtil.database.JDBCTable
conn, tableName
 
Constructor Summary
JDBCLocation(java.sql.Connection conn)
           
JDBCLocation(java.sql.Connection conn, JDBCQuantity jdbcQuantity)
           
 
Method Summary
 edu.iris.Fissures.Location extract(java.sql.ResultSet rs)
           
 edu.iris.Fissures.Location extract(java.sql.ResultSet rs, java.lang.String prefix)
           
 edu.iris.Fissures.Location get(int id)
           
 int getDBId(edu.iris.Fissures.Location location)
           
 int put(edu.iris.Fissures.Location location)
           
 
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
 

Field Detail

putStmt

protected java.sql.PreparedStatement putStmt

getDBIdStmt

protected java.sql.PreparedStatement getDBIdStmt

getStmt

protected java.sql.PreparedStatement getStmt
Constructor Detail

JDBCLocation

public JDBCLocation(java.sql.Connection conn)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

JDBCLocation

public JDBCLocation(java.sql.Connection conn,
                    JDBCQuantity jdbcQuantity)
             throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

put

public int put(edu.iris.Fissures.Location location)
        throws java.sql.SQLException
Throws:
java.sql.SQLException

getDBId

public int getDBId(edu.iris.Fissures.Location location)
            throws java.sql.SQLException,
                   NotFound
Throws:
java.sql.SQLException
NotFound

get

public edu.iris.Fissures.Location get(int id)
                               throws java.sql.SQLException,
                                      NotFound
Throws:
java.sql.SQLException
NotFound

extract

public edu.iris.Fissures.Location extract(java.sql.ResultSet rs)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

extract

public edu.iris.Fissures.Location extract(java.sql.ResultSet rs,
                                          java.lang.String prefix)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException