KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > AdminMiscImpl


1 package org.enhydra.shark;
2
3 import org.enhydra.shark.api.RootException;
4 import org.enhydra.shark.api.SharkTransaction;
5 import org.enhydra.shark.api.client.wfbase.BaseException;
6 import org.enhydra.shark.api.client.wfservice.AdminMisc;
7 import org.enhydra.shark.api.common.SharkConstants;
8 import org.enhydra.shark.api.internal.working.*;
9
10 /**
11  * The client interface through which client accesses the engine objects, and
12  * performs the various actions on engine.
13  * @author Sasa Bojanic
14  * @version 1.0
15  */

16 public class AdminMiscImpl implements AdminMisc {
17
18    private CallbackUtilities cus;
19    private String JavaDoc userId="Unknown";
20
21    protected AdminMiscImpl () {
22       this.cus=SharkEngineManager.getInstance().getCallbackUtilities();
23    }
24
25    public void connect (String JavaDoc userId) {
26       this.userId=userId;
27    }
28
29    public String JavaDoc[][] getPackageExtendedAttributeNameValuePairs (String JavaDoc pkgId) throws BaseException {
30       String JavaDoc[][] ret = null;
31       SharkTransaction t = null;
32       try {
33          t = SharkUtilities.createTransaction();
34          ret = getPackageExtendedAttributeNameValuePairs(t,pkgId);
35          //SharkUtilities.commitTransaction(t);
36
} catch (RootException e) {
37          //SharkUtilities.rollbackTransaction(t);
38
SharkUtilities.emptyCaches(t);
39          if (e instanceof BaseException)
40             throw (BaseException)e;
41          else
42             throw new BaseException(e);
43       } finally {
44          SharkUtilities.releaseTransaction(t);
45       }
46       return ret;
47    }
48
49    public String JavaDoc[][] getPackageExtendedAttributeNameValuePairs (SharkTransaction t,String JavaDoc pkgId) throws BaseException {
50       try {
51          return SharkUtilities.getPackageExtendedAttributeNameValuePairs(t,pkgId);
52       } catch (Exception JavaDoc ex) {
53          throw new BaseException(ex);
54       }
55    }
56
57    public String JavaDoc[] getPackageExtendedAttributeNames (String JavaDoc pkgId) throws BaseException {
58       String JavaDoc[] ret = null;
59       SharkTransaction t = null;
60       try {
61          t = SharkUtilities.createTransaction();
62          ret = getPackageExtendedAttributeNames(t,pkgId);
63          //SharkUtilities.commitTransaction(t);
64
} catch (RootException e) {
65          //SharkUtilities.rollbackTransaction(t);
66
SharkUtilities.emptyCaches(t);
67          if (e instanceof BaseException)
68             throw (BaseException)e;
69          else
70             throw new BaseException(e);
71       } finally {
72          SharkUtilities.releaseTransaction(t);
73       }
74       return ret;
75    }
76
77    public String JavaDoc[] getPackageExtendedAttributeNames (SharkTransaction t,String JavaDoc pkgId) throws BaseException {
78       try {
79          return SharkUtilities.getPackageExtendedAttributeNames(t,pkgId);
80       } catch (Exception JavaDoc ex) {
81          throw new BaseException(ex);
82       }
83    }
84
85    public String JavaDoc getPackageExtendedAttributeValue (String JavaDoc pkgId,String JavaDoc extAttrName) throws BaseException {
86       String JavaDoc ret = null;
87       SharkTransaction t = null;
88       try {
89          t = SharkUtilities.createTransaction();
90          ret = getPackageExtendedAttributeValue(t,pkgId,extAttrName);
91          //SharkUtilities.commitTransaction(t);
92
} catch (RootException e) {
93          //SharkUtilities.rollbackTransaction(t);
94
SharkUtilities.emptyCaches(t);
95          if (e instanceof BaseException)
96             throw (BaseException)e;
97          else
98             throw new BaseException(e);
99       } finally {
100          SharkUtilities.releaseTransaction(t);
101       }
102       return ret;
103    }
104
105    public String JavaDoc getPackageExtendedAttributeValue (SharkTransaction t,String JavaDoc pkgId,String JavaDoc extAttrName) throws BaseException{
106       try {
107          return SharkUtilities.getProcessExtendedAttributeValue(t,pkgId,extAttrName);
108       } catch (Exception JavaDoc ex) {
109          throw new BaseException(ex);
110       }
111    }
112
113    public String JavaDoc[][] getProcessDefinitionExtendedAttributeNameValuePairs (String JavaDoc mgrName) throws BaseException {
114       String JavaDoc[][] ret = null;
115       SharkTransaction t = null;
116       try {
117          t = SharkUtilities.createTransaction();
118          ret = getProcessDefinitionExtendedAttributeNameValuePairs(t,mgrName);
119          //SharkUtilities.commitTransaction(t);
120
} catch (RootException e) {
121          //SharkUtilities.rollbackTransaction(t);
122
SharkUtilities.emptyCaches(t);
123          if (e instanceof BaseException)
124             throw (BaseException)e;
125          else
126             throw new BaseException(e);
127       } finally {
128          SharkUtilities.releaseTransaction(t);
129       }
130       return ret;
131    }
132
133    public String JavaDoc[][] getProcessDefinitionExtendedAttributeNameValuePairs (SharkTransaction t,String JavaDoc mgrName) throws BaseException {
134       try {
135          return SharkUtilities.getProcessDefinitionExtendedAttributeNameValuePairs(t,mgrName);
136       } catch (Exception JavaDoc ex) {
137          throw new BaseException(ex);
138       }
139    }
140
141    public String JavaDoc[] getProcessDefinitionExtendedAttributeNames (String JavaDoc mgrName) throws BaseException {
142       String JavaDoc[] ret = null;
143       SharkTransaction t = null;
144       try {
145          t = SharkUtilities.createTransaction();
146          ret = getProcessDefinitionExtendedAttributeNames(t,mgrName);
147          //SharkUtilities.commitTransaction(t);
148
} catch (RootException e) {
149          //SharkUtilities.rollbackTransaction(t);
150
SharkUtilities.emptyCaches(t);
151          if (e instanceof BaseException)
152             throw (BaseException)e;
153          else
154             throw new BaseException(e);
155       } finally {
156          SharkUtilities.releaseTransaction(t);
157       }
158       return ret;
159    }
160
161    public String JavaDoc[] getProcessDefinitionExtendedAttributeNames (SharkTransaction t,String JavaDoc mgrName) throws BaseException {
162       try {
163          return SharkUtilities.getProcessDefinitionExtendedAttributeNames(t,mgrName);
164       } catch (Exception JavaDoc ex) {
165          throw new BaseException(ex);
166       }
167    }
168
169    public String JavaDoc getProcessDefinitionExtendedAttributeValue (String JavaDoc mgrName,String JavaDoc extAttrName) throws BaseException {
170       String JavaDoc ret = null;
171       SharkTransaction t = null;
172       try {
173          t = SharkUtilities.createTransaction();
174          ret = getProcessDefinitionExtendedAttributeValue(t,mgrName,extAttrName);
175          //SharkUtilities.commitTransaction(t);
176
} catch (RootException e) {
177          //SharkUtilities.rollbackTransaction(t);
178
SharkUtilities.emptyCaches(t);
179          if (e instanceof BaseException)
180             throw (BaseException)e;
181          else
182             throw new BaseException(e);
183       } finally {
184          SharkUtilities.releaseTransaction(t);
185       }
186       return ret;
187    }
188
189    public String JavaDoc getProcessDefinitionExtendedAttributeValue (SharkTransaction t,String JavaDoc mgrName,String JavaDoc extAttrName) throws BaseException {
190       try {
191          return SharkUtilities.getProcessDefinitionExtendedAttributeValue(t,mgrName,extAttrName);
192       } catch (Exception JavaDoc ex) {
193          throw new BaseException(ex);
194       }
195    }
196
197    public String JavaDoc[][] getProcessExtendedAttributeNameValuePairs (String JavaDoc procId) throws BaseException {
198       String JavaDoc[][] ret = null;
199       SharkTransaction t = null;
200       try {
201          t = SharkUtilities.createTransaction();
202          ret = getProcessExtendedAttributeNameValuePairs(t,procId);
203          //SharkUtilities.commitTransaction(t);
204
} catch (RootException e) {
205          //SharkUtilities.rollbackTransaction(t);
206
SharkUtilities.emptyCaches(t);
207          if (e instanceof BaseException)
208             throw (BaseException)e;
209          else
210             throw new BaseException(e);
211       } finally {
212          SharkUtilities.releaseTransaction(t);
213       }
214       return ret;
215    }
216
217    public String JavaDoc[][] getProcessExtendedAttributeNameValuePairs (SharkTransaction t,String JavaDoc procId) throws BaseException {
218       try {
219          return SharkUtilities.getProcessExtendedAttributeNameValuePairs(t,procId);
220       } catch (Exception JavaDoc ex) {
221          throw new BaseException(ex);
222       }
223    }
224
225    public String JavaDoc[] getProcessExtendedAttributeNames (String JavaDoc procId) throws BaseException {
226       String JavaDoc[] ret = null;
227       SharkTransaction t = null;
228       try {
229          t = SharkUtilities.createTransaction();
230          ret = getProcessExtendedAttributeNames(t,procId);
231          //SharkUtilities.commitTransaction(t);
232
} catch (RootException e) {
233          //SharkUtilities.rollbackTransaction(t);
234
SharkUtilities.emptyCaches(t);
235          if (e instanceof BaseException)
236             throw (BaseException)e;
237          else
238             throw new BaseException(e);
239       } finally {
240          SharkUtilities.releaseTransaction(t);
241       }
242       return ret;
243    }
244
245    public String JavaDoc[] getProcessExtendedAttributeNames (SharkTransaction t,String JavaDoc procId) throws BaseException {
246       try {
247          return SharkUtilities.getProcessExtendedAttributeNames(t,procId);
248       } catch (Exception JavaDoc ex) {
249          throw new BaseException(ex);
250       }
251    }
252
253    public String JavaDoc getProcessExtendedAttributeValue (String JavaDoc procId,String JavaDoc extAttrName) throws BaseException {
254       String JavaDoc ret = null;
255       SharkTransaction t = null;
256       try {
257          t = SharkUtilities.createTransaction();
258          ret = getProcessExtendedAttributeValue(t,procId,extAttrName);
259          //SharkUtilities.commitTransaction(t);
260
} catch (RootException e) {
261          //SharkUtilities.rollbackTransaction(t);
262
SharkUtilities.emptyCaches(t);
263          if (e instanceof BaseException)
264             throw (BaseException)e;
265          else
266             throw new BaseException(e);
267       } finally {
268          SharkUtilities.releaseTransaction(t);
269       }
270       return ret;
271    }
272
273    public String JavaDoc getProcessExtendedAttributeValue (SharkTransaction t,String JavaDoc procId,String JavaDoc extAttrName) throws BaseException{
274       try {
275          return SharkUtilities.getProcessExtendedAttributeValue(t,procId,extAttrName);
276       } catch (Exception JavaDoc ex) {
277          throw new BaseException(ex);
278       }
279    }
280
281    public String JavaDoc getActivitiesExtendedAttributes (String JavaDoc procId,String JavaDoc actId) throws BaseException {
282       String JavaDoc ret = null;
283       SharkTransaction t = null;
284       try {
285          t = SharkUtilities.createTransaction();
286          ret = getActivitiesExtendedAttributes(t,procId,actId);
287          //SharkUtilities.commitTransaction(t);
288
} catch (RootException e) {
289          //SharkUtilities.rollbackTransaction(t);
290
SharkUtilities.emptyCaches(t);
291          if (e instanceof BaseException)
292             throw (BaseException)e;
293          else
294             throw new BaseException(e);
295       } finally {
296          SharkUtilities.releaseTransaction(t);
297       }
298       return ret;
299    }
300
301    public String JavaDoc getActivitiesExtendedAttributes (SharkTransaction t,String JavaDoc procId,String JavaDoc actId) throws BaseException{
302       try {
303          return SharkUtilities.getActivitiesExtendedAttributes(t,procId,actId);
304       } catch (Exception JavaDoc ex) {
305          throw new BaseException(ex);
306       }
307    }
308
309    public String JavaDoc[][] getActivitiesExtendedAttributeNameValuePairs (String JavaDoc procId,String JavaDoc actId) throws BaseException {
310       String JavaDoc[][] ret = null;
311       SharkTransaction t = null;
312       try {
313          t = SharkUtilities.createTransaction();
314          ret = getActivitiesExtendedAttributeNameValuePairs(t,procId,actId);
315          //SharkUtilities.commitTransaction(t);
316
} catch (RootException e) {
317          //SharkUtilities.rollbackTransaction(t);
318
SharkUtilities.emptyCaches(t);
319          if (e instanceof BaseException)
320             throw (BaseException)e;
321          else
322             throw new BaseException(e);
323       } finally {
324          SharkUtilities.releaseTransaction(t);
325       }
326       return ret;
327    }
328
329    public String JavaDoc[][] getActivitiesExtendedAttributeNameValuePairs (SharkTransaction t,String JavaDoc procId,String JavaDoc actId) throws BaseException {
330       try {
331          return SharkUtilities.getActivitiesExtendedAttributeNameValuePairs(t,procId,actId);
332       } catch (Exception JavaDoc ex) {
333          throw new BaseException(ex);
334       }
335    }
336
337    public String JavaDoc[] getActivitiesExtendedAttributeNames (String JavaDoc procId,String JavaDoc actId) throws BaseException {
338       String JavaDoc[] ret = null;
339       SharkTransaction t = null;
340       try {
341          t = SharkUtilities.createTransaction();
342          ret = getActivitiesExtendedAttributeNames(t,procId,actId);
343          //SharkUtilities.commitTransaction(t);
344
} catch (RootException e) {
345          //SharkUtilities.rollbackTransaction(t);
346
SharkUtilities.emptyCaches(t);
347          if (e instanceof BaseException)
348             throw (BaseException)e;
349          else
350             throw new BaseException(e);
351       } finally {
352          SharkUtilities.releaseTransaction(t);
353       }
354       return ret;
355    }
356
357    public String JavaDoc[] getActivitiesExtendedAttributeNames (SharkTransaction t,String JavaDoc procId,String JavaDoc actId) throws BaseException {
358       try {
359          return SharkUtilities.getActivitiesExtendedAttributeNames(t,procId,actId);
360       } catch (Exception JavaDoc ex) {
361          throw new BaseException(ex);
362       }
363    }
364
365    public String JavaDoc getActivitiesExtendedAttributeValue (String JavaDoc procId,String JavaDoc actId,String JavaDoc extAttrName) throws BaseException {
366       String JavaDoc ret = null;
367       SharkTransaction t = null;
368       try {
369          t = SharkUtilities.createTransaction();
370          ret = getActivitiesExtendedAttributeValue(t,procId,actId,extAttrName);
371          //SharkUtilities.commitTransaction(t);
372
} catch (RootException e) {
373          //SharkUtilities.rollbackTransaction(t);
374
SharkUtilities.emptyCaches(t);
375          if (e instanceof BaseException)
376             throw (BaseException)e;
377          else
378             throw new BaseException(e);
379       } finally {
380          SharkUtilities.releaseTransaction(t);
381       }
382       return ret;
383    }
384
385    public String JavaDoc getActivitiesExtendedAttributeValue (SharkTransaction t,String JavaDoc procId,String JavaDoc actId,String JavaDoc extAttrName) throws BaseException{
386       try {
387          return SharkUtilities.getActivitiesExtendedAttributeValue(t,procId,actId,extAttrName);
388       } catch (Exception JavaDoc ex) {
389          throw new BaseException(ex);
390       }
391    }
392
393
394    public String JavaDoc[][] getDefVariableExtendedAttributeNameValuePairs (String JavaDoc mgrName,String JavaDoc variableId) throws BaseException {
395       String JavaDoc[][] ret = null;
396       SharkTransaction t = null;
397       try {
398          t = SharkUtilities.createTransaction();
399          ret = getDefVariableExtendedAttributeNameValuePairs(t,mgrName,variableId);
400          //SharkUtilities.commitTransaction(t);
401
} catch (RootException e) {
402          //SharkUtilities.rollbackTransaction(t);
403
SharkUtilities.emptyCaches(t);
404          if (e instanceof BaseException)
405             throw (BaseException)e;
406          else
407             throw new BaseException(e);
408       } finally {
409          SharkUtilities.releaseTransaction(t);
410       }
411       return ret;
412    }
413
414    public String JavaDoc[][] getDefVariableExtendedAttributeNameValuePairs (SharkTransaction t,String JavaDoc mgrName,String JavaDoc variableId) throws BaseException {
415       try {
416          return SharkUtilities.getDefVariableExtendedAttributeNameValuePairs(t,mgrName,variableId);
417       } catch (Exception JavaDoc ex) {
418          throw new BaseException(ex);
419       }
420    }
421
422    public String JavaDoc[] getDefVariableExtendedAttributeNames (String JavaDoc mgrName,String JavaDoc variableId) throws BaseException {
423       String JavaDoc[] ret = null;
424       SharkTransaction t = null;
425       try {
426          t = SharkUtilities.createTransaction();
427          ret = getDefVariableExtendedAttributeNames(t,mgrName,variableId);
428          //SharkUtilities.commitTransaction(t);
429
} catch (RootException e) {
430          //SharkUtilities.rollbackTransaction(t);
431
SharkUtilities.emptyCaches(t);
432          if (e instanceof BaseException)
433             throw (BaseException)e;
434          else
435             throw new BaseException(e);
436       } finally {
437          SharkUtilities.releaseTransaction(t);
438       }
439       return ret;
440    }
441
442    public String JavaDoc[] getDefVariableExtendedAttributeNames (SharkTransaction t,String JavaDoc mgrName,String JavaDoc variableId) throws BaseException {
443       try {
444          return SharkUtilities.getDefVariableExtendedAttributeNames(t,mgrName,variableId);
445       } catch (Exception JavaDoc ex) {
446          throw new BaseException(ex);
447       }
448    }
449
450    public String JavaDoc getDefVariableExtendedAttributeValue (String JavaDoc mgrName,String JavaDoc variableId,String JavaDoc extAttrName) throws BaseException {
451       String JavaDoc ret = null;
452       SharkTransaction t = null;
453       try {
454          t = SharkUtilities.createTransaction();
455          ret = getDefVariableExtendedAttributeValue(t,mgrName,variableId,extAttrName);
456          //SharkUtilities.commitTransaction(t);
457
} catch (RootException e) {
458          //SharkUtilities.rollbackTransaction(t);
459
SharkUtilities.emptyCaches(t);
460          if (e instanceof BaseException)
461             throw (BaseException)e;
462          else
463             throw new BaseException(e);
464       } finally {
465          SharkUtilities.releaseTransaction(t);
466       }
467       return ret;
468    }
469
470    public String JavaDoc getDefVariableExtendedAttributeValue (SharkTransaction t,String JavaDoc mgrName,String JavaDoc variableId,String JavaDoc extAttrName) throws BaseException{
471       try {
472          return SharkUtilities.getDefVariableExtendedAttributeValue(t,mgrName,variableId,extAttrName);
473       } catch (Exception JavaDoc ex) {
474          throw new BaseException(ex);
475       }
476    }
477
478    public String JavaDoc[][] getVariableExtendedAttributeNameValuePairs (String JavaDoc procId,String JavaDoc variableId) throws BaseException {
479       String JavaDoc[][] ret = null;
480       SharkTransaction t = null;
481       try {
482          t = SharkUtilities.createTransaction();
483          ret = getVariableExtendedAttributeNameValuePairs(t,procId,variableId);
484          //SharkUtilities.commitTransaction(t);
485
} catch (RootException e) {
486          //SharkUtilities.rollbackTransaction(t);
487
SharkUtilities.emptyCaches(t);
488          if (e instanceof BaseException)
489             throw (BaseException)e;
490          else
491             throw new BaseException(e);
492       } finally {
493          SharkUtilities.releaseTransaction(t);
494       }
495       return ret;
496    }
497
498    public String JavaDoc[][] getVariableExtendedAttributeNameValuePairs (SharkTransaction t,String JavaDoc procId,String JavaDoc variableId) throws BaseException {
499       try {
500          return SharkUtilities.getVariableExtendedAttributeNameValuePairs(t,procId,variableId);
501       } catch (Exception JavaDoc ex) {
502          throw new BaseException(ex);
503       }
504    }
505
506    public String JavaDoc[] getVariableExtendedAttributeNames (String JavaDoc procId,String JavaDoc variableId) throws BaseException {
507       String JavaDoc[] ret = null;
508       SharkTransaction t = null;
509       try {
510          t = SharkUtilities.createTransaction();
511          ret = getVariableExtendedAttributeNames(t,procId,variableId);
512          //SharkUtilities.commitTransaction(t);
513
} catch (RootException e) {
514          //SharkUtilities.rollbackTransaction(t);
515
SharkUtilities.emptyCaches(t);
516          if (e instanceof BaseException)
517             throw (BaseException)e;
518          else
519             throw new BaseException(e);
520       } finally {
521          SharkUtilities.releaseTransaction(t);
522       }
523       return ret;
524    }
525
526    public String JavaDoc[] getVariableExtendedAttributeNames (SharkTransaction t,String JavaDoc procId,String JavaDoc variableId) throws BaseException {
527       try {
528          return SharkUtilities.getVariableExtendedAttributeNames(t,procId,variableId);
529       } catch (Exception JavaDoc ex) {
530          throw new BaseException(ex);
531       }
532    }
533
534    public String JavaDoc getVariableExtendedAttributeValue (String JavaDoc procId,String JavaDoc variableId,String JavaDoc extAttrName) throws BaseException {
535       String JavaDoc ret = null;
536       SharkTransaction t = null;
537       try {
538          t = SharkUtilities.createTransaction();
539          ret = getVariableExtendedAttributeValue(t,procId,variableId,extAttrName);
540          //SharkUtilities.commitTransaction(t);
541
} catch (RootException e) {
542          //SharkUtilities.rollbackTransaction(t);
543
SharkUtilities.emptyCaches(t);
544          if (e instanceof BaseException)
545             throw (BaseException)e;
546          else
547             throw new BaseException(e);
548       } finally {
549          SharkUtilities.releaseTransaction(t);
550       }
551       return ret;
552    }
553
554    public String JavaDoc getVariableExtendedAttributeValue (SharkTransaction t,String JavaDoc procId,String JavaDoc variableId,String JavaDoc extAttrName) throws BaseException{
555       try {
556          return SharkUtilities.getVariableExtendedAttributeValue(t,procId,variableId,extAttrName);
557       } catch (Exception JavaDoc ex) {
558          throw new BaseException(ex);
559       }
560    }
561
562    public String JavaDoc[][] getParticipantExtendedAttributeNameValuePairs (String JavaDoc pkgId,String JavaDoc pDefId,String JavaDoc participantId) throws BaseException {
563       String JavaDoc[][] ret = null;
564       SharkTransaction t = null;
565       try {
566          t = SharkUtilities.createTransaction();
567          ret = getParticipantExtendedAttributeNameValuePairs(t,pkgId,pDefId,participantId);
568          //SharkUtilities.commitTransaction(t);
569
} catch (RootException e) {
570          //SharkUtilities.rollbackTransaction(t);
571
SharkUtilities.emptyCaches(t);
572          if (e instanceof BaseException)
573             throw (BaseException)e;
574          else
575             throw new BaseException(e);
576       } finally {
577          SharkUtilities.releaseTransaction(t);
578       }
579       return ret;
580    }
581
582    public String JavaDoc[][] getParticipantExtendedAttributeNameValuePairs (SharkTransaction t,String JavaDoc pkgId,String JavaDoc pDefId,String JavaDoc participantId) throws BaseException {
583       try {
584          return SharkUtilities.getParticipantExtendedAttributeNameValuePairs(t,pkgId,pDefId,participantId);
585       } catch (Exception JavaDoc ex) {
586          throw new BaseException(ex);
587       }
588    }
589
590    public String JavaDoc[] getParticipantExtendedAttributeNames (String JavaDoc pkgId,String JavaDoc pDefId,String JavaDoc participantId) throws BaseException {
591       String JavaDoc[] ret = null;
592       SharkTransaction t = null;
593       try {
594          t = SharkUtilities.createTransaction();
595          ret = getParticipantExtendedAttributeNames(t,pkgId,pDefId,participantId);
596          //SharkUtilities.commitTransaction(t);
597
} catch (RootException e) {
598          //SharkUtilities.rollbackTransaction(t);
599
SharkUtilities.emptyCaches(t);
600          if (e instanceof BaseException)
601             throw (BaseException)e;
602          else
603             throw new BaseException(e);
604       } finally {
605          SharkUtilities.releaseTransaction(t);
606       }
607       return ret;
608    }
609
610    public String JavaDoc[] getParticipantExtendedAttributeNames (SharkTransaction t,String JavaDoc pkgId,String JavaDoc pDefId,String JavaDoc participantId) throws BaseException {
611       try {
612          return SharkUtilities.getParticipantExtendedAttributeNames(t,pkgId,pDefId,participantId);
613       } catch (Exception JavaDoc ex) {
614          throw new BaseException(ex);
615       }
616    }
617
618    public String JavaDoc getParticipantExtendedAttributeValue (String JavaDoc pkgId,String JavaDoc pDefId,String JavaDoc participantId,String JavaDoc extAttrName) throws BaseException {
619       String JavaDoc ret = null;
620       SharkTransaction t = null;
621       try {
622          t = SharkUtilities.createTransaction();
623          ret = getParticipantExtendedAttributeValue(t,pkgId,pDefId,participantId,extAttrName);
624          //SharkUtilities.commitTransaction(t);
625
} catch (RootException e) {
626          //SharkUtilities.rollbackTransaction(t);
627
SharkUtilities.emptyCaches(t);
628          if (e instanceof BaseException)
629             throw (BaseException)e;
630          else
631             throw new BaseException(e);
632       } finally {
633          SharkUtilities.releaseTransaction(t);
634       }
635       return ret;
636    }
637
638    public String JavaDoc getParticipantExtendedAttributeValue (SharkTransaction t,String JavaDoc pkgId,String JavaDoc pDefId,String JavaDoc participantId,String JavaDoc extAttrName) throws BaseException{
639       try {
640          return SharkUtilities.getParticipantExtendedAttributeValue(t,pkgId,pDefId,participantId,extAttrName);
641       } catch (Exception JavaDoc ex) {
642          throw new BaseException(ex);
643       }
644    }
645
646    public String JavaDoc[][]