src/com/wherehoo/WHDeleteOperation.java
/**
     * Attempts to remove the wherehoo entry that has <tt>uid</tt> with which this <tt>WHDeleteOperation</tt> 
     * was initialized. If the attempt to remove was successful, <tt>executeAndOutputToClient</tt> sends a confirmation 
     * to the client via <tt>client_socket</tt>. In case failure, NAK is sent. 
     * @param client_socket the socket of connecting client.
     */
Attempts to remove the wherehoo entry that has uid with which this WHDeleteOperation
was initialized. If the attempt to remove was successful, executeAndOutputToClient sends a confirmation
to the client via client_socket. In case failure, NAK is sent.
@param client_socket the socket of connecting client.
Attempts to remove the wherehoo entry that has uid with which this WHDeleteOperation was initialized . If the attempt to remove was successful executeAndOutputToClient sends a confirmation to the client via client_socket . In case failure NAK is sent . @param client_socket the socket of connecting client .
public synchronized void executeAndOutputToClient(Socket client_socket) throws IOException {
	Connection C;
	Statement s;
	PrintWriter out;
	String queryString;
	String result="NAK";
	out = new PrintWriter(client_socket.getOutputStream(),true);
	try {
	    C = DriverManager.getConnection("jdbc:"+WHServer.DB,"postgres","");
	    C.setAutoCommit(false);
	    s = C.createStatement();
	    queryString  = "delete from wherehoo_polygons where ";
	    queryString += "uniqueidSHA ='"+uid+"'";
	    if (s.executeUpdate(queryString) == 1)
		result="ACK";
	    C.commit();
	}
	catch (SQLException sqle) {
	    System.out.println("SQLException: " + sqle.getMessage());
	    System.out.println("SQLState:     " + sqle.getSQLState());
	    System.out.println("VendorError:  " + sqle.getErrorCode());
	}
	out.println(result);
	out.close();
    }
public synchronized void executeAndOutputToClient ( Socket client_socket ) throws IOException { Connection C ; Statement s ; PrintWriter out ; String queryString ; String result = "NAK" ; out = new PrintWriter ( client_socket . getOutputStream ( ) , true ) ; try { C = DriverManager . getConnection ( "jdbc:" + WHServer . DB , "postgres" , "" ) ; C . setAutoCommit ( false ) ; s = C . createStatement ( ) ; queryString = "delete from wherehoo_polygons where " ; queryString += "uniqueidSHA ='" + uid + "'" ; if ( s . executeUpdate ( queryString ) == 1 ) result = "ACK" ; C . commit ( ) ; } catch ( SQLException sqle ) { System . out . println ( "SQLException: " + sqle . getMessage ( ) ) ; System . out . println ( "SQLState:     " + sqle . getSQLState ( ) ) ; System . out . println ( "VendorError:  " + sqle . getErrorCode ( ) ) ; } out . println ( result ) ; out . close ( ) ; }
Attempts to remove the wherehoo entry that has <tt>uid</tt> with which this <tt>WHDeleteOperation</tt>
 was initialized.
Attempts to remove the wherehoo entry that has <tt > uid< / tt > with which this <tt > WHDeleteOperation< / tt > was initialized .
// delete an existing record given a valid uniqueidSHA and companion idt (its creator)
 // System.out.println(queryString);
