Package com.ipc.oce

Examples of com.ipc.oce.OCObject


   *         случае в дерево значений.
   * @throws JIException
   */
  public <T extends OCObject> T unload(StaticFieldInstance unloadType) throws JIException {
    JIVariant res = null;
    OCObject resObject = null;
    if (unloadType != null) {
      res = callMethodA("Unload", new JIVariant(ocObject2Dispatch(unloadType)))[0];
      String unloadTypeString = unloadType.getFieldName();
      if (unloadTypeString.endsWith("Linear") || unloadTypeString.endsWith("Прямой")) {
        resObject = new OCValueTable(res);
View Full Code Here


    return callMethodA("Count").getObjectAsInt();
  }
 
  // TODO : 1) Нужно сюда вернуться и найти описание этого объекта в help 1C 2) попытка №2 пока недала результатов
  public OCObject get(Integer i) throws JIException{
    return new OCObject(callMethodA("Get", new Object[]{new JIVariant(i)})[0]);
  }
View Full Code Here

   * Любая ссылка на объект информационной базы. Содержит ссылку на объект в базе данных. Это значение может быть записано в базу данных для полей соответствующего типа.
   * @return OCObject
   * @throws JIException
   */
  public OCObject getRef() throws JIException{
    return new OCObject(get("Ref"));
  }
View Full Code Here

//      }
//    }
    UnmarshalHelper unmarshalHelper = new UnmarshalHelper(appInstance);
   
    String payload = paramExchange.getIn().getBody(String.class);
    OCObject ocObject = unmarshalHelper.xml2object(payload, true);
   
    _OCCommonObject co = new _OCCommonObject(ocObject);

    co.write();
    LOG.info("Object '" + co.toString() + "' written to db");
View Full Code Here

   
    OCXEEndpoint endpoint = (OCXEEndpoint) exchange.getFromEndpoint();
   
    OCApp app = endpoint.getApp_instance();
   
    OCObject dataObject = app.findDataObject(objectTypePair, uuid);
   
    Message out = exchange.getOut();
   
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    OCXMLWriter writer = app.newXMLWriter();
View Full Code Here

   *         "перед первым элементом" или "после последнего", то возвращается
   *         значение Неопределено.
   * @throws JIException
   */
  public OCObject get() throws JIException {
    return new OCObject(callMethodA("Get"));
  }
View Full Code Here

        || uuid == null || uuid.trim().length() == 0) {
      throw new WebApplicationException(Status.NOT_ACCEPTABLE);
    }
    try {
      OCApp app = getApplication();
      OCObject obj = app.findDataObject(metaType, uuid);
     
      OCXDTOSerializer serializer = app.getXDTOSerializer();
      OCXMLWriter writer = app.newXMLWriter();
      writer.setString("UTF-8");
     
View Full Code Here

    try {
      OCApp app = getApplication();
      OCXDTOSerializer serializer = app.getXDTOSerializer();
      OCXMLReader reader = app.newXMLReader();
      reader.setString(body);
      OCObject object = serializer.readXML(reader);
      _OCCommonObject commonObject = new _OCCommonObject(object);
      /*if (commonObject.isNew()) {
       
         * The request could not be understood by the server due to
         * malformed syntax. The client SHOULD NOT repeat the request
View Full Code Here

    try {
      OCApp app = getApplication();
      OCXDTOSerializer serializer = app.getXDTOSerializer();
      OCXMLReader reader = app.newXMLReader();
      reader.setString(body);
      OCObject object = serializer.readXML(reader);
      _OCCommonObject commonObject = new _OCCommonObject(object);
      commonObject.write();
     
      OCXMLWriter writer = app.newXMLWriter();
      writer.setString("UTF-8");
View Full Code Here

  @DELETE
  public Response deleteDataObject(String body) {
    try {
      OCApp app = getApplication();
      OCXDTOSerializer serializer = app.getXDTOSerializer();
      OCObject object = serializer.readXML(body);
      _OCCommonObject commonObject = new _OCCommonObject(object);
      if (commonObject.isNew()) {
        return Response.status(Status.BAD_REQUEST).build();
      }
      commonObject.read(); // exactly same object
View Full Code Here

TOP

Related Classes of com.ipc.oce.OCObject

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.