1 package org.enhydra.shark.corba; 2 3 import org.enhydra.shark.corba.WorkflowService._WfProcessMgrIteratorImplBase; 4 import org.omg.WfBase.*; 5 import org.omg.WorkflowModel.WfProcessMgr; 6 7 13 public class WfProcessMgrIteratorCORBA extends _WfProcessMgrIteratorImplBase { 14 15 org.enhydra.shark.api.client.wfservice.WfProcessMgrIterator myIterator; 16 private Collective __collective; 17 18 protected WfProcessMgrIteratorCORBA(Collective toJoin, 19 org.enhydra.shark.api.client.wfservice.WfProcessMgrIterator iter) throws BaseException { 20 __collective = toJoin; 21 toJoin.__recruit(this); 22 this.myIterator = iter; 23 } 24 25 public String query_expression() throws BaseException { 26 try { 27 return myIterator.query_expression(); 28 } catch (Exception ex) { 29 throw new BaseException(); 30 } 31 } 32 33 37 public void set_query_expression(String query) throws BaseException, 38 InvalidQuery { 39 try { 40 myIterator.set_query_expression(query); 41 } catch (org.enhydra.shark.api.client.wfbase.InvalidQuery iq) { 42 throw new InvalidQuery(); 43 } catch (Exception ex) { 44 throw new BaseException(); 45 } 46 } 47 48 public NameValue[] names_in_expression() throws BaseException { 49 try { 50 return SharkCORBAUtilities.makeCORBANameValueArray(this._orb(), 51 myIterator.names_in_expression()); 52 } catch (Exception ex) { 53 throw new BaseException(); 54 } 55 } 56 57 public void set_names_in_expression(NameValue[] query) throws BaseException, 58 NameMismatch { 59 try { 60 myIterator.set_names_in_expression(SharkCORBAUtilities.makeMap(query)); 61 } catch (org.enhydra.shark.api.client.wfbase.NameMismatch nm) { 62 throw new NameMismatch(); 63 } catch (Exception ex) { 64 throw new BaseException(); 65 } 66 } 67 68 public String query_grammar() throws BaseException { 69 try { 70 return myIterator.query_grammar(); 71 } catch (Exception ex) { 72 throw new BaseException(); 73 } 74 } 75 76 public void set_query_grammar(String query_grammmar) throws BaseException, 77 GrammarNotSupported { 78 try { 79 myIterator.set_query_grammar(query_grammmar); 80 } catch (org.enhydra.shark.api.client.wfbase.GrammarNotSupported gns) { 81 throw new GrammarNotSupported(); 82 } catch (Exception ex) { 83 throw new BaseException(); 84 } 85 } 86 87 public int how_many() throws BaseException { 88 try { 89 return myIterator.how_many(); 90 } catch (Exception ex) { 91 throw new BaseException(); 92 } 93 } 94 95 public void goto_start() throws BaseException { 96 try { 97 myIterator.goto_start(); 98 } catch (Exception ex) { 99 throw new BaseException(); 100 } 101 } 102 103 public void goto_end() throws BaseException { 104 try { 105 myIterator.goto_end(); 106 } catch (Exception ex) { 107 throw new BaseException(); 108 } 109 } 110 111 public WfProcessMgr get_next_object() throws BaseException { 112 try { 113 return new WfProcessMgrCORBA(__collective, myIterator.get_next_object()); 114 } catch (Exception ex) { 115 throw new BaseException(); 116 } 117 } 118 119 public WfProcessMgr get_previous_object() throws BaseException { 120 try { 121 return new WfProcessMgrCORBA(__collective, 122 myIterator.get_previous_object()); 123 } catch (Exception ex) { 124 throw new BaseException(); 125 } 126 } 127 128 public WfProcessMgr[] get_next_n_sequence(int max_number) throws BaseException { 129 try { 130 return SharkCORBAUtilities.makeCORBAProcessMgrs(__collective, 131 myIterator.get_next_n_sequence(max_number)); 132 } catch (Exception ex) { 133 throw new BaseException(); 134 } 135 } 136 137 public WfProcessMgr[] get_previous_n_sequence(int max_number) throws BaseException { 138 try { 139 return SharkCORBAUtilities.makeCORBAProcessMgrs(__collective, 140 myIterator.get_previous_n_sequence(max_number)); 141 } catch (Exception ex) { 142 throw new BaseException(); 143 } 144 } 145 146 } | Popular Tags |