Command insertAdhoc = das.createCommand("insert into CUSTOMER values (?, ?, ?)");
insertAdhoc.setParameter("ID", new Integer(6));
insertAdhoc.setParameter("LASTNAME", "MyLastName");
insertAdhoc.setParameter("ADDRESS", "MyLastAddress");
assertEquals("MyLastAddress", insertAdhoc.getParameter("ADDRESS"));
insertAdhoc.execute();
Command select = das.createCommand("select * from CUSTOMER where ID = ?");
select.setParameter("ID", new Integer(6));
DataObject root = select.executeQuery();
List customers = root.getList("CUSTOMER");