package examples.dbo;

import java.sql.*;
import java.util.*;
import fc.io.*;
import fc.util.*;

public class Deletebykey extends Test
{
public void test(Args myargs, Connection con) throws Exception
	{
	int uid = Integer.parseInt(myargs.getRequired("uid"));
	
	System.out.println(">>> Row with uid=" + uid + " exists: " 
					   + mollytestMgr.exists(con, uid));
	
	System.out.println(">>> Will delete row with uid="+ uid);
	
	mollytestMgr.deleteByKey(con, uid);

	System.out.println(">>> Row with uid=" + uid + " exists: " 
					   + mollytestMgr.exists(con, uid));
	}
}