hi friends:

This is part of source code of BaseXXX

...
    public void save(DBConnection dbCon) throws Exception
    {
        if (!alreadyInSave)
      {
        alreadyInSave = true;
          if (isModified())
        {
            if (isNew())
            {
                XXXPeer.doInsert((XXX)this, dbCon);
                setNew(false);
            }
            else
            {
                XXXPeer.doUpdate((XXX)this, dbCon);
            }
        }
              alreadyInSave = false; // Why this line? It's just saved, right?
      }
   }
...

thanx a lot

joeblackGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

Reply via email to