Package com.ipc.oce.objects

Examples of com.ipc.oce.objects.OCCatalogManager.select()


public class CatalogParent extends BasicTest {

  @Test
  public void getCatalogSuperParent() throws JIException {
    OCCatalogManager manager = app.getCatalogManager("Валюты");
    OCCatalogSelection selection = manager.select();
    selection.next();
    OCCatalogRef ref = selection.getRef();
   
    assertTrue(!ref.isEmpty());
   
View Full Code Here


  }

  @Test(expected = IllegalStateException.class)
  public void ocobject2int() throws JIException {
    OCCatalogManager manager = app.getCatalogManager("Валюты");
    OCCatalogSelection selection = manager.select();
    selection.next();
    OCCatalogRef ref = selection.getRef();
    OCVariant var = new OCVariant(ref);

    Integer ocObj = var.value(Integer.class);
View Full Code Here

  }

  @Test
  public void ocobject2ocrefAndViceversa() throws JIException {
    OCCatalogManager manager = app.getCatalogManager("Валюты");
    OCCatalogSelection selection = manager.select();
    selection.next();
    OCCatalogRef ref = selection.getRef();
    OCVariant var = new OCVariant(ref);
    OCCatalogObject ocObj = var.value(OCCatalogObject.class);
View Full Code Here

    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    query.setParameter("НачалоПериода", new OCVariant(sdf.parse("2009-01-01")));
    query.setParameter("КонецПериода", new OCVariant(sdf.parse("2010-01-01")));
   
    OCCatalogManager catMan = app.getCatalogManager("Организации");
    OCCatalogSelection catSel = catMan.select();
    catSel.next();
    OCCatalogRef orgRef = catSel.getRef();
   
    query.setParameter("Организация", new OCVariant(orgRef));
   
View Full Code Here

      manager = app.getCatalogManager(catalogName);
    } catch (JIException e) {
      // TODO тут нужно как-то обрабатывать
      throw e;
    }
    OCCatalogSelection selection = manager.select();
    StringBuffer sb = new StringBuffer(4096);
    OCXDTOSerializer serializer = app.getXDTOSerializer();
    while(selection.next()) {
      OCCatalogObject object = selection.getObject();
      sb.append(serializer.writeXML(object));
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.