...
Code Block | ||
---|---|---|
| ||
private void storeDateinDB(java.util.Date date) throws SQLException {
final java.util.Date copy = new java.util.Date(date.getTime());
validateValue(copy.getTime());
Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://<HOST>:1433","<UID>","<PWD>");
PreparedStatement pstmt = con.prepareStatement("UPDATE ACCESSDB SET TIME = ?");
pstmt.setLong(1, copy.getTime());
// ...
}
|
...