Package com.knowgate.hipergate

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


        oProd.put(DB.pct_tax_rate, 0f);
        oProd.put(DB.is_tax_included, (short) 1);
      } else {
        oProd = new Product(oConn, getString(DB.gu_acourse));
      } // fi
      oProd.replace(DB.id_status, getShort(DB.bo_active)==(short)1 ? Product.STATUS_ACTIVE : Product.STATUS_RETIRED);
      if (isNull(DB.gu_owner)) {
        if (DebugFile.trace) {
          DebugFile.writeln("NullPointerException gu_owner GUID from k_users table is required when storing an AcademicCourse that it is also a Product");
          DebugFile.decIdent();
        } // fi
View Full Code Here


          DebugFile.writeln("NullPointerException gu_owner GUID from k_users table is required when storing an AcademicCourse that it is also a Product");
          DebugFile.decIdent();
        } // fi
        throw new NullPointerException("gu_owner GUID from k_users table is required when storing an AcademicCourse that it is also a Product");
      } // gu_owner==null
      oProd.replace(DB.gu_owner, getString(DB.gu_owner));
      oProd.replace(DB.nm_product, getString(DB.nm_course));
      if (!isNull(DB.id_course))
        oProd.replace(DB.id_ref, getString(DB.id_course));
      if (!isNull(DB.gu_address))
        oProd.replace(DB.gu_address, getString(DB.gu_address));
View Full Code Here

          DebugFile.decIdent();
        } // fi
        throw new NullPointerException("gu_owner GUID from k_users table is required when storing an AcademicCourse that it is also a Product");
      } // gu_owner==null
      oProd.replace(DB.gu_owner, getString(DB.gu_owner));
      oProd.replace(DB.nm_product, getString(DB.nm_course));
      if (!isNull(DB.id_course))
        oProd.replace(DB.id_ref, getString(DB.id_course));
      if (!isNull(DB.gu_address))
        oProd.replace(DB.gu_address, getString(DB.gu_address));
      else
View Full Code Here

        throw new NullPointerException("gu_owner GUID from k_users table is required when storing an AcademicCourse that it is also a Product");
      } // gu_owner==null
      oProd.replace(DB.gu_owner, getString(DB.gu_owner));
      oProd.replace(DB.nm_product, getString(DB.nm_course));
      if (!isNull(DB.id_course))
        oProd.replace(DB.id_ref, getString(DB.id_course));
      if (!isNull(DB.gu_address))
        oProd.replace(DB.gu_address, getString(DB.gu_address));
      else
        oProd.remove(DB.gu_address);       
      if (!isNull(DB.pr_acourse))
View Full Code Here

      oProd.replace(DB.gu_owner, getString(DB.gu_owner));
      oProd.replace(DB.nm_product, getString(DB.nm_course));
      if (!isNull(DB.id_course))
        oProd.replace(DB.id_ref, getString(DB.id_course));
      if (!isNull(DB.gu_address))
        oProd.replace(DB.gu_address, getString(DB.gu_address));
      else
        oProd.remove(DB.gu_address);       
      if (!isNull(DB.pr_acourse))
        oProd.replace(DB.pr_list, getDecimal(DB.pr_acourse));
      else
View Full Code Here

      if (!isNull(DB.gu_address))
        oProd.replace(DB.gu_address, getString(DB.gu_address));
      else
        oProd.remove(DB.gu_address);       
      if (!isNull(DB.pr_acourse))
        oProd.replace(DB.pr_list, getDecimal(DB.pr_acourse));
      else
        oProd.remove(DB.pr_list);
      oProd.store(oConn);

      Category oCatg = new Category(getString(DB.gu_category));
View Full Code Here

    if (DebugFile.trace) DebugFile.writeln("new Product()");

    Product oProd = new Product();

    for (int a=0;a<iAttachs; a++) {
      oProd.replace(DB.gu_product, oAttachs.getString(0,a));
      oProd.delete(oConn);
    } // next (a)

    oProd = null;
View Full Code Here

    for (int c=0; c<iProdCount; c++) {
      oXML.append("  <product>");
      oXML.append("<gu_product>"+dbs.getString(0,c)+"</gu_product><nm_product>"+dbs.getString(1,c)+"</nm_product><tr_product><![CDATA["+dbs.getStringNull(2,c,"")+"]]></tr_product><de_product><![CDATA["+dbs.getStringNull(3,c,"")+"]]></de_product>");

      oCurrentProd.replace(DB.gu_product, dbs.getString(0,c));

      oXML.append("<images>");

      try {
        img = oCurrentProd.getImages(con);
View Full Code Here

    DBSubset oAttachs = new DBSubset(DB.k_activity_attachs, DB.gu_product,
                                     DB.gu_activity + "='" + getString(DB.gu_activity) + "'" , 10);
    int iAttachs = oAttachs.load(oConn);
    Product oProd = new Product();
    for (int a=0;a<iAttachs; a++) {
      oProd.replace(DB.gu_product, oAttachs.getString(0,a));
      oProd.delete(oConn);
    } // next (a)
    oProd = null;
    oAttachs = null;
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.