Examples of load()


Examples of com.knowgate.crm.Contact.load()

      sPhone = oUser.getStringNull(DB.work_phone,"");
      } else if (oUser.load(oConn, sId)) {
      sFullName = (oUser.getStringNull(DB.nm_user,"")+" "+oUser.getStringNull(DB.tx_surname1,"")+" "+oUser.getStringNull(DB.tx_surname2,"")).trim();
      sEmail = oUser.getStringNull(DB.tx_main_email,"");
      sPhone = "";
      } else if (oCont.load(oConn, sId)) {
      sFullName = (oCont.getStringNull(DB.tx_name,"")+" "+oCont.getStringNull(DB.tx_surname,"")).trim();
      sEmail = "";
      sPhone = "";
      } else if (oComp.load(oConn, sId)) {
      sFullName = oComp.getStringNull(DB.nm_commercial,oComp.getString(DB.nm_legal));
View Full Code Here

Examples of com.knowgate.crm.Supplier.load()

      sPhone = "";
      } else if (oComp.load(oConn, sId)) {
      sFullName = oComp.getStringNull(DB.nm_commercial,oComp.getString(DB.nm_legal));
      sEmail = "";
      sPhone = "";
      } else if (oSupl.load(oConn, sId)) {
      sFullName = oSupl.getStringNull(DB.nm_commercial,oComp.getString(DB.nm_legal));
      sEmail = oSupl.getAddress().getStringNull(DB.tx_email,"");
      sPhone = oSupl.getAddress().getStringNull(DB.work_phone,"");
      } else {
       
View Full Code Here

Examples of com.knowgate.dataobjs.DBKeySet.load()

      oCnn = getConnection();
    } catch (MessagingException msge) {
      throw new SQLException(msge.getMessage(), msge);
    }
   
    oKeySet.load(oCnn,new Object[]{oCatg.getString(DB.gu_category)});
    if (DebugFile.trace) {
      DebugFile.decIdent();
      DebugFile.writeln("End DBFolder.keySet() : " + String.valueOf(oKeySet.size()));
    }
    return oKeySet;
View Full Code Here

Examples of com.knowgate.dataobjs.DBPersist.load()

            request.getParameter("gu_invoice")!=null & request.getParameter("pg_payment")!=null) {
           if (request.getParameter("gu_invoice").length()>0 &&
               request.getParameter("pg_payment").length()>0) {
             try {
               oCon = oBnd.getConnection("HttpDataObjsServlet.InvoicePayment", true);
               oDbp.load(oCon, new Object[]{request.getParameter("gu_invoice"), new Integer(request.getParameter("pg_payment"))});
               oCon.close("HttpDataObjsServlet.InvoicePayment");
               oCon=null;
             } catch (Exception xcpt) {
               if (DebugFile.trace) {
                  DebugFile.writeln(xcpt.getClass().getName()+" "+xcpt.getMessage());
View Full Code Here

Examples of com.knowgate.dataobjs.DBSubset.load()

    throws SQLException {
    String sRetVal;
    DBSubset oDbs = new DBSubset(DB.k_addresses,new Address().getTable(oConn).getColumnsStr(),
                   DB.nm_company+"=? AND "+DB.gu_workarea+"=?",
                                 10);
  oDbs.load(oConn, new Object[]{sCompanyNm,sWorkArea});
 
  return oDbs;
  } // getAddressesByCompanyName

  // **********************************************************
 
View Full Code Here

Examples of com.knowgate.forums.NewsGroup.load()

      throw new NullPointerException("NewsGroupJournal.rebuild() No NewsGroup with GUID "+getGuid()+" found at "+DB.k_newsgroups+" table");
  }
 
  NewsGroup oNewsGrp = new NewsGroup();

  if (!oNewsGrp.load(oConn, getGuid())) {
      if (DebugFile.trace) {
        DebugFile.writeln("NewsGroupJournal.rebuild() No NewsGroup with GUID "+getGuid()+" found at "+DB.k_newsgroups+" table");
        DebugFile.decIdent();
     
      throw new SQLException("NewsGroupJournal.rebuild() No NewsGroup with GUID "+getGuid()+" found at "+DB.k_newsgroups+" table");
View Full Code Here

Examples of com.knowgate.hipergate.Product.load()

  if (oComp.isNull(DB.id_legal))
    throw new SQLException("Legal document number not set for given Company");
   
  Product oProd = new Product();

  if (!oProd.load(oConn, new Object[]{getString(DB.gu_acourse)})) {
    throw new SQLException("No product found for given academic course");
  } else {
    if (oProd.isNull(DB.id_currency)) {
      throw new SQLException("Currency for product is not set");
    }
View Full Code Here

Examples of com.knowgate.hipergate.Term.load()

  oSum.setString(4, getString(DB.gu_product));
  oSum.setString(5, getString(DB.gu_workarea));
  oSum.setString(7, getString(DB.gu_workarea));
   
    Term oZone = new Term();
    oZone.load(oConn, getString(DB.gu_geozone));
    LinkedList oChlds = oZone.getChilds(oConn, Term.SCOPE_ALL);
    ListIterator oIter = oChlds.listIterator();
    while (oIter.hasNext()) {
      oZone = (Term) oIter.next();
    oSum.setString(6, oZone.getString(DB.gu_term));
View Full Code Here

Examples of com.knowgate.hipermail.AdHocMailing.load()

      oStmt.close();
      DBSubset oMailings = new DBSubset(DB.k_adhoc_mailings, DB.gu_mailing, DB.gu_workarea+"=?", 1000);
      int iMailings = oMailings.load(oConn, new Object[]{sWrkAreaGUID});
      AdHocMailing oAdhc = new AdHocMailing();
      for (int m=0; m<iMailings; m++) {
        oAdhc.load(oConn, new Object[]{oMailings.getString(DB.gu_mailing,m)});
        oAdhc.delete(oConn);
      } // next
  } // fi

    if (DBBind.exists(oConn, DB.k_mime_msgs, "U")) {
View Full Code Here

Examples of com.knowgate.hipermail.MailAccount.load()

       
        oCon = oDBB.getConnection("NewMail");
       
        MailAccount oMacc = new MailAccount(oCon, sMailAccount);
       
        if (oMacc.load(oCon, sMailAccount))
          oHnr = new SessionHandler(oMacc);
      else
        oHnr = null;

      oCon.close("NewMail");
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.