Package com.ipc.oce.objects

Examples of com.ipc.oce.objects.OCUUID


   *            обозначающие шестнадцатеричное число.
   * @return OCUUID
   * @throws JIException - ошибка DCOM.
   */
  public final OCUUID createUUID(final String uuid) throws JIException {
    OCUUID ocUUID = new OCUUID(newObject("UUID", new JIVariant(uuid)));
    return ocUUID;
  }
View Full Code Here


   *
   * @return UUID
   * @throws JIException - ошибка DCOM.
   */
  public final OCUUID createUUID() throws JIException {
    return new OCUUID(newObject("UUID"));
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  public <T> T findDataObject(String managerFullname, String uuid)
      throws SecurityException, IllegalArgumentException,
      NoSuchMethodException, IllegalAccessException,
      InvocationTargetException, JIException {
    OCUUID ocuuid = createUUID(uuid);
    Object manager = findManager(managerFullname); // named data object
                            // manager

    // финт ушами
    Method method = manager.getClass().getMethod("getRef", OCUUID.class);
View Full Code Here

      Document w3cDocument = com.ipc.oce.xml.xerces.Utils.xml2Document(xmlData);
      NodeList nodeList = w3cDocument.getElementsByTagName("Ref");
      if (nodeList != null && nodeList.getLength() == 1) { // only one Ref tag
        Node node = nodeList.item(0);
        if (node.getTextContent() == null || node.getTextContent().trim().length() == 0) {
          OCUUID uuid = appInstance.createUUID();   
          LOG.info("Empty Ref UUID detected. New UUID generated " + uuid.toString());
          node.setTextContent(uuid.toString());
        }
      } else {
        throw new SAXException("Tag Ref not found or encounted more then once. Set Ref manually or use preventEmptyRef");
      }
      xmlData = com.ipc.oce.xml.xerces.Utils.document2XML(w3cDocument);
View Full Code Here

    System.out.println("isNew1: " + doc.isNew() + " [before write]");
    doc.setNumber("XXX-000-002");
    doc.setDate(new Date());
    doc.write();
    System.out.println("isNew2: " + doc.isNew() + " [after write]");
    OCUUID uuid = doc.getRef().getUUID();
    System.out.println(doc.getNumberAsString() + " created with " + uuid);
   
    OCDocumentRef ref = manager.getRef(uuid);
   
    String u = ref.getUUID().toString();
View Full Code Here

TOP

Related Classes of com.ipc.oce.objects.OCUUID

Copyright © 2018 www.massapicom. 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.