Liaison now handles exceptioning for us.

This commit is contained in:
Michael Bayne
2014-05-02 20:46:36 +00:00
parent f2be63ec19
commit 3906c69a88
@@ -38,11 +38,7 @@ public class IdentityValueGenerator extends ValueGenerator
public int nextGeneratedValue (Connection conn, DatabaseLiaison liaison, Statement stmt)
throws SQLException
{
Integer id = liaison.lastInsertedId(conn, stmt, _dm.getTableName(), _fm.getColumnName());
if (id == null) throw new SQLException(
"Unable to obtain last inserted id [table=" + _dm.getTableName() +
", column=" + _fm.getColumnName() + "]");
return id;
return liaison.lastInsertedId(conn, stmt, _dm.getTableName(), _fm.getColumnName());
}
@Override // from ValueGenerator