Let's use the real exception here.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2493 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2008-11-25 20:25:28 +00:00
parent d08f130606
commit 662e389d11
@@ -71,7 +71,7 @@ public class HsqldbLiaison extends BaseLiaison
// from DatabaseLiaison
public int lastInsertedId (Connection conn, String table, String column) throws SQLException
{
throw new NotImplementedException();
throw new UnsupportedOperationException();
// // MySQL does not keep track of per-table-and-column insertion data, so we are pretty much
// // going on blind faith here that we're fetching the right ID. In the overwhelming number
// // of cases that will be so, but it's still not pretty.
@@ -94,7 +94,7 @@ public class HsqldbLiaison extends BaseLiaison
// from DatabaseLiaison
public boolean isDuplicateRowException (SQLException sqe)
{
throw new NotImplementedException();
throw new UnsupportedOperationException();
// String msg = sqe.getMessage(); // TODO: not sure
// return (msg != null && msg.indexOf("Duplicate entry") != -1);
}