Examples of OCInformationRegisterManager


Examples of com.ipc.oce.objects.OCInformationRegisterManager

  }
 
  @Test
  public void showMetadataViaManager() throws JIException {
    OCInformationRegisterCollection collection = app.getInformationRegisterCollection();
    OCInformationRegisterManager manager = collection.getInformationRegister("АдресныйКлассификатор");
   
    OCInformationRegisterMetadataObject metadata = manager.getMetadata();
    System.out.println("getFullName: " + metadata.getFullName());
   
    OCMetadataResourceCollection resourceCollection = metadata.getResources();
    System.out.println("==== RESOURCES ====");
    for (OCResourceMetadataObject resourceMeta : resourceCollection) {
View Full Code Here

Examples of com.ipc.oce.objects.OCInformationRegisterManager

  }
 
  @Test
  public void getSelectionWithNullParams() throws JIException {
    OCInformationRegisterCollection collection = app.getInformationRegisterCollection();
    OCInformationRegisterManager manager = collection.getInformationRegister("АдресныйКлассификатор");
    OCInformationRegisterSelection selection = manager.select(null, null, null, null);
    int stopFactor = 2;
    while ((stopFactor--) != 0 && selection.next()) {
      System.out.println("stop factor: " + stopFactor);
      System.out.println("\tLineNumber: " + selection.getLineNumber());
      System.out.println("\tТипАдресногоЭлемента: " + selection.getDimension("ТипАдресногоЭлемента"));
View Full Code Here

Examples of com.ipc.oce.objects.OCInformationRegisterManager

 
  @Test
  public void getLast() throws JIException {
    System.out.println("==== GET LAST ====");
    OCInformationRegisterCollection collection = app.getInformationRegisterCollection();
    OCInformationRegisterManager manager = collection.getInformationRegister("ВстречныйВыпускПродукцииУслуг");
    OCStructure struct = manager.getLast(null, null);
    for (OCKeyAndValue kav : struct) {
      System.out.println(kav.getKey() + " = " + kav.getValue());
    }
   
    struct = manager.getFirst(null, null);
    for (OCKeyAndValue kav : struct) {
      System.out.println(kav.getKey() + " = " + kav.getValue());
    }
  }
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.