Examples of OCInformationRegisterSelection


Examples of com.ipc.oce.objects.OCInformationRegisterSelection

 
  @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("ТипАдресногоЭлемента"));
      System.out.println("\tКодРегионаВКоде: " + selection.getDimension("КодРегионаВКоде"));
      System.out.println("\tКодУлицыВКоде: " + selection.getDimension("КодУлицыВКоде"));
      System.out.println("\tКод: " + selection.getDimension("Код") + " [" + selection.getDimension("Код").value().getClass().getName()+"]");
     
      System.out.println("\tНаименование: " + selection.getResource("Наименование"));
      System.out.println("\tИндекс: " + selection.getResource("Индекс"));
     
      System.out.println("\tRecorder: " + selection.getRecorder());
    }
    //System.out.println("Selection size: " + selection.size()); // never call it
    System.out.println("===============================================\n");
   
  }
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.