public class JDBCQuantity extends JDBCTable
Constructor and Description |
---|
JDBCQuantity() |
JDBCQuantity(java.sql.Connection conn) |
JDBCQuantity(JDBCUnit unit,
java.sql.Connection conn) |
Modifier and Type | Method and Description |
---|---|
QuantityImpl |
extract(int id,
double value)
Returns the object QuantityImpl given the dbid of Unit and the value
|
QuantityImpl |
get(int dbId) |
int |
getDBId(Quantity q) |
int |
insert(Quantity quantity,
java.sql.PreparedStatement stmt,
int index)
Inserts the details of the object quantity into a PreparedStatement.
|
int |
put(Quantity quantity) |
getConnection, getTableName
public JDBCQuantity() throws java.sql.SQLException
java.sql.SQLException
public JDBCQuantity(java.sql.Connection conn) throws java.sql.SQLException
java.sql.SQLException
public JDBCQuantity(JDBCUnit unit, java.sql.Connection conn) throws java.sql.SQLException
java.sql.SQLException
public int put(Quantity quantity) throws java.sql.SQLException
java.sql.SQLException
public QuantityImpl get(int dbId) throws java.sql.SQLException, NotFound
java.sql.SQLException
NotFound
public int getDBId(Quantity q) throws NotFound, java.sql.SQLException
NotFound
java.sql.SQLException
public int insert(Quantity quantity, java.sql.PreparedStatement stmt, int index) throws java.sql.SQLException
java.sql.SQLException
public QuantityImpl extract(int id, double value) throws java.sql.SQLException, NotFound
java.sql.SQLException
NotFound