You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by "Auinger, Thomas" <Th...@wincor-nixdorf.com> on 2003/06/04 10:49:10 UTC

deleteAll / delete entire table content

Probably a rather simple question, but I couldn't find an 
answer in the archive:

I thought I could implement a doDeleteAll method by simply 
writing:

    public class ItemPeer {

        public static void doDeleteAll() throws TorqueException
        {
          Criteria crit = new Criteria();
          doDelete(crit);
        }

        ...
    }

But doesn't work, since there is no 'tables' item in the 
resulting Criteria object (that's what I found out debugging).

Any ideas? Thanks!

Thomas