static void removeFromDb(Connection conn,Object key) throws SQLException {
  PreparedStatement stmt=null;
  try {
    stmt=conn.prepareStatement("delete from CACHE where k = ?");
    stmt.setBinaryStream(1,new ByteArrayInputStream(H2CacheStore.serialize(key)));
    stmt.executeUpdate();
  }
  finally {
    U.closeQuiet(stmt);
  }
}

static void removeFromDb ( Connection conn , Object key ) throws SQLException { PreparedStatement stmt = null ; try { stmt = conn . prepareStatement ( "delete from CACHE where k = ?" ) ; stmt . setBinaryStream ( 1 , new ByteArrayInputStream ( H2CacheStore . serialize ( key ) ) ) ; stmt . executeUpdate ( ) ; } finally { U . closeQuiet ( stmt ) ; } }
removes given key and its value from h2 .
