edu.sc.seis.fissuresUtil.database
Class JDBCQuantity
java.lang.Object
edu.sc.seis.fissuresUtil.database.JDBCTable
edu.sc.seis.fissuresUtil.database.JDBCQuantity
public class JDBCQuantity
- extends JDBCTable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCQuantity
public JDBCQuantity()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
JDBCQuantity
public JDBCQuantity(java.sql.Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
JDBCQuantity
public JDBCQuantity(JDBCUnit unit,
java.sql.Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
put
public int put(Quantity quantity)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
get
public QuantityImpl get(int dbId)
throws java.sql.SQLException,
NotFound
- Throws:
java.sql.SQLException
NotFound
getDBId
public int getDBId(Quantity q)
throws NotFound,
java.sql.SQLException
- Throws:
NotFound
java.sql.SQLException
insert
public int insert(Quantity quantity,
java.sql.PreparedStatement stmt,
int index)
throws java.sql.SQLException
- Inserts the details of the object quantity into a PreparedStatement.
- Returns:
- int - the resulting index.
- Throws:
java.sql.SQLException
extract
public QuantityImpl extract(int id,
double value)
throws java.sql.SQLException,
NotFound
- Returns the object QuantityImpl given the dbid of Unit and the value
- Throws:
java.sql.SQLException
NotFound