Package com.knowgate.jdc

Examples of com.knowgate.jdc.JDCConnection.commit()


        oFile.delete();
      }

      if (DebugFile.trace) DebugFile.writeln("Connection.commit()");

      oConn.commit();
    } catch (Exception sqle) {
      try { if (oMBox!=null) oMBox.close(); } catch (Exception e) {}
      try { if (oStmt!=null) oStmt.close(); } catch (Exception e) {}
      try { if (oCall!=null) oCall.close(); } catch (Exception e) {}
      try { if (oConn!=null) oConn.rollback(); } catch (Exception e) {}
View Full Code Here


        byOutStrm.close();
        oMsgStrm.close();
      } // next
      oInputMbox.close();
      oInputMbox=null;
      oConn.commit();
    } catch (FileNotFoundException fnfe) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw fnfe;
    } catch (IOException ioe) {
      try {oConn.rollback();} catch (Exception ignore) {}
View Full Code Here

        oSnd.insertRecipients(oCon, aRecipients, sRecipientType,
                              sTextHtml==null ? "text" : "html",
                              Job.STATUS_PENDING);

      }
      oCon.commit();
      oCon.close("SendMail");
      oCon = null;
     
      if (bAutoRunJob) {
        SingleThreadExecutor oSte = new SingleThreadExecutor(oDbb, sJobId);
View Full Code Here

              if (!bSelf) oMeet.addAttendant(oCon, sUid);             
              oAtd.close();
            } // fi
          } // fi
         
          oCon.commit();

                    oBuf.append("<calendarresponse command=\"storeMeeting\" code=\"0\"><error></error><value>true</value><meetings count=\"1\"><meeting type=\""+oMeet.getStringNull(DB.tp_meeting,"")+"\">");
                    oBuf.append("<id>"+oMeet.getStringNull(DB.id_icalendar,"")+"</id>");
                    oBuf.append("<gu>"+oMeet.getString(DB.gu_meeting)+"</gu>");
                    oBuf.append("<startdate>"+oXmt.format(oMeet.getDate(DB.dt_start)).replace(' ','T')+"</startdate>");
View Full Code Here

          if (oRst.next()) {
            String sDlte = oRst.getString(1);
                    oRst.close();
                    oStm.close();
            boolean bDeleted = Meeting.delete(oCon, sDlte);
            oCon.commit();

                      oBuf.append("<calendarresponse command=\"deleteMeeting\" code=\"0\"><error></error><meetings count=\""+String.valueOf(bDeleted ? 1 : 0)+"\"><meeting>");
                      oBuf.append("<id>"+sMeet+"</id>");
                      oBuf.append("<gu>"+sDlte+"</gu>");
            oBuf.append("</meeting><meetings></calendarresponse>");
View Full Code Here

              if (oRSet.next()) {
                oCont.replace(DB.gu_contact , oRSet.getString(1));
                oCont.replace(DB.gu_workarea, oRSet.getString(2));
                oRSet.close();
                oCont.addAttachments(oConn, argv[2], aDirs[d].getAbsolutePath(), true);
                oConn.commit();
                aDirs[d].delete();
              } else {
                DebugFile.writeln("AttachmentUploader.main() SQLException: No data found for Contact "+sDirName);
                oRSet.close();
              } // fi (next)
View Full Code Here

    }   

    if (!oConn.getAutoCommit()) {
      if (DebugFile.trace)
        DebugFile.writeln("Connection.commit()");
      oConn.commit();
    }

  DBMimeMessage oRetVal = oDraftsFldr.getMessageByGuid(sGuMsg);
       
    if (DebugFile.trace) {
View Full Code Here

      oStmt.close();

      oDraft.addRecipients(RecipientType.CC, oOrMsg.getRecipients(RecipientType.CC));
    } // bReplyAll

    if (!oConn.getAutoCommit()) oConn.commit();

    if (DebugFile.trace) {
      DebugFile.decIdent();
      DebugFile.writeln("End DraftsHelper.draftMessageForReply() : "+oDraft.getMessageGuid());
    }
View Full Code Here

    oStmt.setString (1,sGuOriginalMsg);
    oStmt.setString (2,oOriginalFldr.getFilePath());     
    oStmt.executeUpdate();
    oStmt.close();

    if (!oConn.getAutoCommit()) oConn.commit();

    if (DebugFile.trace) {
      DebugFile.decIdent();
      DebugFile.writeln("End DraftsHelper.draftMessageForForward() : "+oDraft.getMessageGuid());
    }
View Full Code Here

      oStmt.close();
      oStmt=null;

      if (DebugFile.trace) DebugFile.writeln("JDCConnection.commit()");

      oConn.commit();
    }
    catch (SQLException sqle) {
      if (DebugFile.trace) {
        DebugFile.writeln("SQLException "+sqle.getMessage());
        DebugFile.writeStackTrace(sqle);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.