Getting your bind variables back

  1. Get a heap dump. 
  2. Open up the heap dump in Netbeans
  3. Find your statements with OQL:
  4. For the prepared statements, take a look at the content. The content should be the sql you are looking for.
  5. You're going to have to look through the bind variables in the T2C*Statement.  Usually called lastBound* or boundInt, boundLong, etc...