KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > instancepersistence > PersistentManagerInterface


1 package org.enhydra.shark.api.internal.instancepersistence;
2
3 import java.util.List JavaDoc;
4 import org.enhydra.shark.api.RootException;
5 import org.enhydra.shark.api.SharkTransaction;
6 import org.enhydra.shark.api.internal.working.CallbackUtilities;
7
8 /**
9  * Interface that has to be implemented for each persistent layer that
10  * is supposed to be used.
11  *
12  * @author Sasa Bojanic
13  * @version 1.0
14  *
15  */

16 public interface PersistentManagerInterface {
17
18    /**
19     * Method configure is called at Shark start up, to configure
20     * implementation of PersistentManagerInterface.
21     *
22     * @param cus an instance of CallbackUtilities used to get
23     * properties for configuring Persistent Manager in Shark.
24     *
25     * @exception RootException Thrown if configuring doesn't succeed.
26     */

27    void configure(CallbackUtilities cus) throws RootException;
28
29    /**
30     * Method shutdownDatabase.
31     *
32     * @exception PersistenceException on error.
33     */

34    public void shutdownDatabase() throws PersistenceException;
35
36    /**
37     * Method persist stores the process manager data into repository
38     * (usually database) using supplied transaction.
39     *
40     * @param pm ProcessMgrPersistenceInterface contiaing the data.
41     * @param ti SharkTransaction to use.
42     *
43     * @exception PersistenceException on error while writing.
44     */

45    public void persist(ProcessMgrPersistenceInterface pm, boolean isInitialPersistence,
46    SharkTransaction ti)
47       throws PersistenceException;
48
49    /**
50     * Method persist stores the process data into repository
51     * (usually database) using supplied transaction.
52     *
53     * @param pr ProcessPersistenceInterface containing the data.
54     * @param ti SharkTransaction to use.
55     *
56     * @exception PersistenceException on error.
57     */

58    public void persist(ProcessPersistenceInterface pr, boolean isInitialPersistence,
59    SharkTransaction ti)
60       throws PersistenceException;
61
62    /**
63     * Method persist stores the activity data into repository
64     * (usually database) using supplied transaction.
65     *
66     * @param act ActivityPersistenceInterface contianing the data.
67     * @param ti SharkTransaction to use.
68     *
69     * @exception PersistenceException on error
70     */

71    public void persist(ActivityPersistenceInterface act, boolean isInitialPersistence,
72    SharkTransaction ti)
73       throws PersistenceException;
74
75    /**
76     * Method persist stores the resource data into repository
77     * (usually database) using supplied transaction.
78     *
79     * @param res ResourcePersistenceInterface.
80     * @param ti SharkTransaction to use.
81     *
82     * @exception PersistenceException on error.
83     */

84    public void persist(ResourcePersistenceInterface res, boolean isInitialPersistence,SharkTransaction ti)
85       throws PersistenceException;
86
87    /**
88     * Method persist stores the assignment data into repository
89     * (usually database) using supplied transaction.
90     *
91     * @param ass AssignmentPersistenceInterface containing the data.
92     * @param ti SharkTransaction to use.
93     *
94     * @exception PersistenceException on error.
95     */

96    public void persist(AssignmentPersistenceInterface ass, boolean isInitialPersistence,SharkTransaction ti)
97       throws PersistenceException;
98
99    /**
100     * Method persist updates the assignment data into repository
101     * (usually database) using supplied transaction.
102     *
103     * @param ass AssignmentPersistenceInterface containing the data.
104     * @param oldResUname previous resource username.
105     * @param ti SharkTransaction to use.
106     *
107     * @exception PersistenceException on error.
108     */

109    public void persist (AssignmentPersistenceInterface ass,String JavaDoc oldResUname,SharkTransaction ti) throws PersistenceException;
110
111    /**
112     * Method persist stores the process relevant data into repository
113     * (usually database) using supplied transaction.
114     *
115     * @param var ProcessVariablePersistenceInterface.
116     * @param ti SharkTransaction to use.
117     *
118     * @exception PersistenceException on error.
119     */

120    public void persist(ProcessVariablePersistenceInterface var,
121                        boolean isInitialPersistence,
122                        SharkTransaction ti)
123       throws PersistenceException;
124
125    /**
126     * Method persist stores the activity variable into repository
127     * (usually database) using supplied transaction.
128     *
129     * @param var ActivityVariablePersistenceInterface.
130     * @param ti SharkTransaction to use.
131     *
132     * @exception PersistenceException on error.
133     */

134    public void persist(ActivityVariablePersistenceInterface var,
135                        boolean isInitialPersistence,
136                        SharkTransaction ti)
137       throws PersistenceException;
138
139    /**
140     * Method persist stores the AND join data into repository
141     * (usually database) using supplied transaction.
142     *
143     * @param aje AndJoinEntryInterface
144     * @param ti SharkTransaction to use.
145     *
146     * @exception PersistenceException on error.
147     */

148    public void persist(AndJoinEntryInterface aje, SharkTransaction ti)
149       throws PersistenceException;
150
151    /**
152     * Method persist stores the Deadline data into repository
153     * (usually database) using supplied transaction.
154     *
155     * @param dpe a DeadlinePersistenceInterface
156     * @param ti SharkTransaction to use.
157     *
158     * @exception PersistenceException on error.
159     *
160     */

161    public void persist(DeadlinePersistenceInterface dpe, boolean isInitialPersistence, SharkTransaction ti)
162       throws PersistenceException;
163
164    /**
165     * Method restoreProcessMgr restores process manager from the
166     * repository using supplied transaction.
167     *
168     * @param mgrName name of the manager to restore
169     * @param ti SharkTransaction to use.
170     *
171     * @return a ProcessMgrPersistenceInterface
172     *
173     * @exception PersistenceException on error.
174     */

175    public ProcessMgrPersistenceInterface restoreProcessMgr(String JavaDoc mgrName,
176                                                            SharkTransaction ti)
177       throws PersistenceException;
178
179    /**
180     * Method restoreProcess restores process from the
181     * repository using supplied transaction.
182     *
183     * @param procId id of a process to restore
184     * @param ti SharkTransaction to use.
185     *
186     * @return a ProcessPersistenceInterface
187     *
188     * @exception PersistenceException on error.
189     */

190    public ProcessPersistenceInterface restoreProcess(String JavaDoc procId,
191                                                      SharkTransaction ti)
192       throws PersistenceException;
193
194    /**
195     * Method restoreActivity restores activity from the
196     * repository using supplied transaction.
197     *
198     * @param actId id of activity to restore
199     * @param ti SharkTransaction to use.
200     *
201     * @return an ActivityPersistenceInterface
202     *
203     * @exception PersistenceException on error.
204     */

205    public ActivityPersistenceInterface restoreActivity(String JavaDoc actId,
206                                                        SharkTransaction ti)
207       throws PersistenceException;
208
209    /**
210     * Method restoreResource restores resource from the
211     * repository using supplied transaction.
212     *
213     * @param resUsername username of the resource to restore
214     * @param ti SharkTransaction to use.
215     *
216     * @return a ResourcePersistenceInterface
217     *
218     * @exception PersistenceException on error.
219     */

220    public ResourcePersistenceInterface restoreResource(String JavaDoc resUsername,
221                                                        SharkTransaction ti)
222       throws PersistenceException;
223
224    /**
225     * Method restoreAssignment restores assignment from the
226     * repository using supplied transaction.
227     *
228     * @param actId id of activity linked to assignment
229     * @param resUsername username of the resource linked to assignment
230     * @param ti SharkTransaction to use.
231     *
232     * @return an AssignmentPersistenceInterface
233     *
234     * @exception PersistenceException on error.
235     */

236    public AssignmentPersistenceInterface restoreAssignment(String JavaDoc actId,
237                                                            String JavaDoc resUsername,
238                                                            SharkTransaction ti)
239       throws PersistenceException;
240
241    /**
242     * Method restore retrieves process variable from the
243     * repository using supplied transaction.
244     *
245     * @param var ProcessVariablePersistenceInterface
246     * must contain both process id and variable definition id
247     * @param ti SharkTransaction to use.
248     *
249     * @return true on success, false otherwise
250     *
251     * @exception PersistenceException on error.
252     */

253    public boolean restore(ProcessVariablePersistenceInterface var,
254                           SharkTransaction ti)
255       throws PersistenceException;
256
257    /**
258     * Method restore retrieves activity variable from the
259     * repository using supplied transaction.
260     *
261     * @param var ActivityVariablePersistenceInterface
262     * must contain both activity id and variable definition id
263     * @param ti SharkTransaction to use.
264     *
265     * @return true on success, false otherwise
266     *
267     * @exception PersistenceException on error.
268     */

269    public boolean restore(ActivityVariablePersistenceInterface var,
270                           SharkTransaction ti)
271       throws PersistenceException;
272
273    /**
274     * Method deleteProcessMgr
275     *
276     * @param mgrName a String
277     * @param ti SharkTransaction to use.
278     *
279     * @exception PersistenceException on error.
280     */

281    public void deleteProcessMgr(String JavaDoc mgrName,SharkTransaction ti)
282       throws PersistenceException;
283
284    /**
285     * Method deleteProcess
286     *
287     * @param procId a String
288     * @param ti SharkTransaction to use.
289     *
290     * @exception PersistenceException on error.
291     */

292    public void deleteProcess(String JavaDoc procId,boolean administrative,SharkTransaction ti)
293       throws PersistenceException;
294
295
296    /**
297     * Method deleteActivity
298     *
299     * @param actId a String
300     * @param ti SharkTransaction to use.
301     *
302     * @exception PersistenceException on error.
303     */

304    public void deleteActivity(String JavaDoc actId,SharkTransaction ti)
305       throws PersistenceException;
306
307    /**
308     * Method deleteResource
309     *
310     * @param resUsername a String
311     * @param ti SharkTransaction to use.
312     *
313     * @exception PersistenceException on error.
314     */

315    public void deleteResource(String JavaDoc resUsername,SharkTransaction ti)
316       throws PersistenceException;
317
318    /**
319     * Method deleteAssignment
320     *
321     * @param actId a String
322     * @param resUsername a String
323     * @param ti SharkTransaction to use.
324     *
325     * @exception PersistenceException on error.
326     */

327    public void deleteAssignment(String JavaDoc actId,
328                                 String JavaDoc resUsername,
329                                 SharkTransaction ti)
330       throws PersistenceException;
331
332    /**
333     * Method deleteAndJoinEntries
334     *
335     * @param procId a String
336     * @param asDefId a String
337     * @param aDefId a String
338     * @param ti SharkTransaction to use.
339     *
340     * @exception PersistenceException on error.
341     */

342    public void deleteAndJoinEntries(String JavaDoc procId,
343                                     String JavaDoc asDefId,
344                                     String JavaDoc aDefId,
345                                     SharkTransaction ti)
346       throws PersistenceException;
347
348    /**
349     * Deletes all deadlines for all activities of given process.
350     *
351     * @param procId a String
352     * @param ti a SharkTransaction
353     *
354     * @throws PersistenceException
355     *
356     */

357    public void deleteDeadlines (String JavaDoc procId,
358                                 SharkTransaction ti)
359       throws PersistenceException;
360
361    /**
362     * Method delete all deadlines for a given activity.
363     *
364     * @param procId a String
365     * @param actId a String
366     * @param ti a SharkTransaction
367     *
368     * @throws PersistenceException
369     *
370     */

371    public void deleteDeadlines (String JavaDoc procId,
372                                 String JavaDoc actId,
373                                 SharkTransaction ti)
374       throws PersistenceException;
375
376    /**
377     * Method delete
378     *
379     * @param var a ProcessVariablePersistenceInterface
380     * @param ti SharkTransaction to use.
381     *
382     * @exception PersistenceException on error.
383     */

384    public void delete(ProcessVariablePersistenceInterface var,
385                       SharkTransaction ti)
386       throws PersistenceException;
387
388    /**
389     * Method delete
390     *
391     * @param var an ActivityVariablePersistenceInterface
392     * @param ti SharkTransaction to use.
393     *
394     * @exception PersistenceException on error.
395     */

396    public void delete(ActivityVariablePersistenceInterface var,
397                       SharkTransaction ti)
398       throws PersistenceException;
399
400    // Methods for various querying
401

402    /**
403     * @param ti
404     * @param sqlWhere
405     * @return list of process manager objects complying to sqlWhere clause
406     * @throws PersistenceException
407     */

408    public List JavaDoc getProcessMgrsWhere(SharkTransaction ti, String JavaDoc sqlWhere)
409       throws PersistenceException;
410
411    /**
412     * Method getAllProcessMgrs
413     *
414     * @param ti SharkTransaction to use.
415     *
416     * @return a List
417     *
418     * @exception PersistenceException on error.
419     */

420    public List JavaDoc getAllProcessMgrs(SharkTransaction ti)
421       throws PersistenceException;
422
423
424    /**
425     * @param t
426     * @param sqlWhere
427     * @return list of resource objects complying to sqlWhere clause
428     * @throws PersistenceException
429     */

430    List JavaDoc getResourcesWhere(SharkTransaction t, String JavaDoc sqlWhere) throws PersistenceException;
431
432    /**
433     * Method getAllResources
434     *
435     * @param ti SharkTransaction to use.
436     *
437     * @return a List
438     *
439     * @exception PersistenceException on error.
440     */

441    public List JavaDoc getAllResources(SharkTransaction ti)
442       throws PersistenceException;
443
444    /**
445     * Method getAllAssignments
446     *
447     * @param ti SharkTransaction to use.
448     *
449     * @return a List
450     *
451     * @exception PersistenceException on error.
452     */

453    public List JavaDoc getAllAssignments(SharkTransaction ti)
454       throws PersistenceException;
455
456    /**
457     * Method getAllProcesses
458     *
459     * @param ti SharkTransaction to use.
460     *
461     * @return a List
462     *
463     * @exception PersistenceException on error.
464     */

465    public List JavaDoc getAllProcesses(SharkTransaction ti) throws PersistenceException;
466
467    /**
468     * Method getAllActivities
469     *
470     * @param ti SharkTransaction to use.
471     *
472     * @return a List
473     *
474     * @exception PersistenceException on error.
475     */

476    public List JavaDoc getAllActivities(SharkTransaction ti)
477       throws PersistenceException;
478
479    /**
480     * Method getAllProcessesForMgr
481     *
482     * @param mgrName a String
483     * @param ti SharkTransaction to use.
484     *
485     * @return a List
486     *
487     * @exception PersistenceException on error.
488     */

489    public List JavaDoc getAllProcessesForMgr(String JavaDoc mgrName, SharkTransaction ti)
490       throws PersistenceException;
491
492    public List JavaDoc getProcessesForMgr(String JavaDoc mgrName, String JavaDoc procState,SharkTransaction ti)
493       throws PersistenceException;
494
495    /**
496     * Returns a list of processes which state is open.running.
497     *
498     * @param ti SharkTransaction to use.
499     *
500     * @return a List
501     *
502     * @exception PersistenceException on error.
503     */

504    public List JavaDoc getAllRunningProcesses(SharkTransaction ti) throws PersistenceException;
505
506    /**
507     * Returns a list of processes which state starts with closed.
508     *
509     * @param ti SharkTransaction to use.
510     *
511     * @return a List
512     *
513     * @exception PersistenceException on error.
514     */

515    public List JavaDoc getAllFinishedProcesses(SharkTransaction ti) throws PersistenceException;
516
517    /**
518     * Returns a list of processes which state starts with closed.
519     *
520     * @param ti SharkTransaction to use.
521     * @param finishedBefore the time until when the processes should be finished
522     *
523     * @return a List
524     *
525     * @exception PersistenceException on error.
526     */

527    public List JavaDoc getAllFinishedProcesses(SharkTransaction ti,java.util.Date JavaDoc finishedBefore) throws PersistenceException;
528
529    /**
530     * Returns a list of processes which state starts with closed.
531     *
532     * @param ti SharkTransaction to use.
533     * @param pkgId the package id of processes
534     *
535     * @return a List
536     *
537     * @exception PersistenceException on error.
538     */

539    public List JavaDoc getAllFinishedProcesses(SharkTransaction ti,String JavaDoc pkgId) throws PersistenceException;
540
541    /**
542     * Returns a list of processes which state starts with closed.
543     *
544     * @param ti SharkTransaction to use.
545     * @param pkgId the package id of processes
546     * @param procDefId the process definition id of processes
547     *
548     * @return a List
549     *
550     * @exception PersistenceException on error.
551     */

552    public List JavaDoc getAllFinishedProcesses(SharkTransaction ti,String JavaDoc pkgId,String JavaDoc procDefId) throws PersistenceException;
553
554    /**
555     * Returns a list of processes which state starts with closed.
556     *
557     * @param ti SharkTransaction to use.
558     * @param pkgId the package id of processes
559     * @param procDefId the process definition id of processes
560     * @param pkgVer the package version
561     *
562     * @return a List
563     *
564     * @exception PersistenceException on error.
565     */

566    public List JavaDoc getAllFinishedProcesses(SharkTransaction ti,String JavaDoc pkgId,String JavaDoc procDefId,String JavaDoc pkgVer) throws PersistenceException;
567
568    /**
569     * Method getAllActivitiesForProcess
570     *
571     * @param procId a String
572     * @param ti SharkTransaction to use.
573     *
574     * @return a List
575     *
576     * @exception PersistenceException on error.
577     */

578    public List JavaDoc getAllActivitiesForProcess(String JavaDoc procId, SharkTransaction ti)
579       throws PersistenceException;
580
581    public List JavaDoc getActivitiesForProcess(String JavaDoc procId, String JavaDoc actState, SharkTransaction ti)
582       throws PersistenceException;
583
584    /**
585     * Method getAllActivitiesForProcess
586     *
587     * @param procId a String
588     * @param ti SharkTransaction to use.
589     *
590     * @return a List
591     *
592     * @exception PersistenceException on error.
593     */

594    public List JavaDoc getAllFinishedActivitiesForProcess(String JavaDoc procId, SharkTransaction ti)
595       throws PersistenceException;
596
597    /**
598     * Method getAllActiveActivitiesForProcess
599     *
600     * @param procId a String
601     * @param ti SharkTransaction to use.
602     *
603     * @return a List
604     *
605     * @exception PersistenceException on error.
606     */

607    public List JavaDoc getAllActiveActivitiesForProcess(String JavaDoc procId, SharkTransaction ti)
608       throws PersistenceException;
609
610    /**
611     * Method getAllAssignmentsForResource
612     *
613     * @param resUsername a String
614     * @param ti SharkTransaction to use.
615     *
616     * @return a List
617     *
618     * @exception PersistenceException on error.
619     */

620    public List JavaDoc getAllAssignmentsForResource(String JavaDoc resUsername,
621                                             SharkTransaction ti)
622       throws PersistenceException;
623
624    /**
625     * Method getAllAssignmentsForNotClosedActivitiesForResource
626     *
627     * @param resUsername a String
628     * @param ti SharkTransaction to use.
629     *
630     * @return a List
631     *
632     * @exception PersistenceException on error.
633     */

634    /*public List getAllAssignmentsForNotClosedActivitiesForResource(String resUsername,
635                                                                   SharkTransaction ti)
636       throws PersistenceException;*/

637
638    /**
639     * Method getAllValidAssignmentsForResource
640     *
641     * @param resUsername a String
642     * @param ti SharkTransaction to use.
643     *
644     * @return a List
645     *
646     * @exception PersistenceException on error.
647     */

648    public List JavaDoc getAllValidAssignmentsForResource(String JavaDoc resUsername,
649                                                  SharkTransaction ti)
650       throws PersistenceException;
651
652    /**
653     * Method getAllAssignmentsForActivity
654     *
655     * @param actId a String
656     * @param ti SharkTransaction to use.
657     *
658     * @return a List
659     *
660     * @exception PersistenceException on error.
661     */

662    public List JavaDoc getAllAssignmentsForActivity(String JavaDoc actId,SharkTransaction ti)
663       throws PersistenceException;
664
665    /**
666     * Method getAllAssignmentsForNotClosedActivity
667     *
668     * @param actId a String
669     * @param ti SharkTransaction to use.
670     *
671     * @return a List
672     *
673     * @exception PersistenceException on error.
674     */

675    /*public List getAllAssignmentsForNotClosedActivity(String actId,
676                                                      SharkTransaction ti)
677       throws PersistenceException;*/

678
679    /**
680     * Method getAllValidAssignmentsForActivity
681     *
682     * @param actId a String
683     * @param ti SharkTransaction to use.
684     *
685     * @return a List
686     *
687     * @exception PersistenceException on error.
688     */

689    public List JavaDoc getAllValidAssignmentsForActivity(String JavaDoc actId,
690                                                  SharkTransaction ti)
691       throws PersistenceException;
692
693    /**
694     * Method getAllVariablesForProcess
695     *
696     * @param procId a String
697     * @param ti SharkTransaction to use.
698     *
699     * @return a List
700     *
701     * @exception PersistenceException on error.
702     */

703    public List JavaDoc getAllVariablesForProcess(String JavaDoc procId,SharkTransaction ti)
704       throws PersistenceException;
705
706    /**
707     * Method getProcessVariables
708     *
709     * @param procId a String
710     * @param ti SharkTransaction to use.
711     *
712     * @return a List
713     *
714     * @exception PersistenceException on error.
715     */

716    public List JavaDoc getProcessVariables(String JavaDoc procId,List JavaDoc variableIds,SharkTransaction ti)
717       throws PersistenceException;
718
719    /**
720     * Method getAllVariablesForActivity
721     *
722     * @param actId a String
723     * @param ti SharkTransaction to use.
724     *
725     * @return a List
726     *
727     * @exception PersistenceException on error.
728     */

729    public List JavaDoc getAllVariablesForActivity(String JavaDoc actId,SharkTransaction ti)
730       throws PersistenceException;
731
732    /**
733     * Method getActivityVariables
734     *
735     * @param actId a String
736     * @param ti SharkTransaction to use.
737     *
738     * @return a List
739     *
740     * @exception PersistenceException on error.
741     */

742    public List JavaDoc getActivityVariables(String JavaDoc actId,List JavaDoc variableIds,SharkTransaction ti)
743       throws PersistenceException;
744
745    /**
746     * Method getResourceRequestersProcessIds
747     *
748     * @param resUsername a String
749     * @param ti SharkTransaction to use.
750     *
751     * @return a List
752     *
753     * @exception PersistenceException on error.
754     */

755    public List JavaDoc getResourceRequestersProcessIds(String JavaDoc resUsername,
756                                                SharkTransaction ti)
757       throws PersistenceException;
758
759    /**
760     * Method getAndJoinEntries
761     *
762     * @param procId a String
763     * @param asDefId a String
764     * @param aDefId a String
765     * @param ti SharkTransaction to use.
766     *
767     * @return a List
768     *
769     * @exception PersistenceException on error.
770     */

771    public List JavaDoc getAndJoinEntries(String JavaDoc procId,
772                                  String JavaDoc asDefId,
773                                  String JavaDoc aDefId,
774                                  SharkTransaction ti)
775       throws PersistenceException;
776
777    /**
778     * Method howManyAndJoinEntries
779     *
780     * @param procId a String
781     * @param asDefId a String
782     * @param aDefId a String
783     * @param ti SharkTransaction to use.
784     *
785     * @return an int
786     *
787     * @exception PersistenceException on error.
788     */

789    public int howManyAndJoinEntries(String JavaDoc procId,
790                                     String JavaDoc asDefId,
791                                     String JavaDoc aDefId,
792                                     SharkTransaction ti)
793       throws PersistenceException;
794
795    /**
796     * Returns deadlines of all activities of given process.
797     *
798     * @param procId a String
799     * @param ti a SharkTransaction
800     *
801     * @return a List
802     *
803     * @throws PersistenceException
804     *
805     */

806    public List JavaDoc getAllDeadlinesForProcess (String JavaDoc procId,
807                                           SharkTransaction ti)
808       throws PersistenceException;
809
810    /**
811     * Returns deadlines of all activities of given process which time limit is broken.
812     *
813     * @param procId a String
814     * @param ti a SharkTransaction
815     *
816     * @return a List
817     *
818     * @throws PersistenceException
819     *
820     */

821    public List JavaDoc getAllDeadlinesForProcess (String JavaDoc procId,
822                                           long timeLimitBoundary,
823                                           SharkTransaction ti)
824       throws PersistenceException;
825
826    /**
827     * Returns process ids for which deadline time limit is broken on any running activity .
828     */

829     public List JavaDoc getAllIdsForProcessesWithExpiriedDeadlines (long timeLimitBoundary,SharkTransaction ti) throws PersistenceException;
830          
831    /**
832     * Returns all deadlines of a given activity.
833     *
834     * @param procId a String
835     * @param actId a String
836     * @param ti a SharkTransaction
837     *
838     * @return a List
839     *
840     * @throws PersistenceException
841     *
842     */

843    public List JavaDoc getAllDeadlinesForActivity (String JavaDoc procId,
844                                            String JavaDoc actId,
845                                            SharkTransaction ti)
846       throws PersistenceException;
847
848    /**
849     * Returns all deadlines of a given activity which time limit is broken.
850     *
851     * @param procId a String
852     * @param actId a String
853     * @param ti a SharkTransaction
854     *
855     * @return a List
856     *
857     * @throws PersistenceException
858     *
859     */

860    public List JavaDoc getAllDeadlinesForActivity (String JavaDoc procId,
861                                            String JavaDoc actId,
862                                            long timeLimitBoundary,
863                                            SharkTransaction ti)
864       throws PersistenceException;
865
866    /**
867     * Method getExecuteCount
868     *
869     * @param procId a String
870     * @param asDefId a String
871     * @param aDefId a String
872     * @param ti a SharkTransaction
873     *
874     * @return an int
875     *
876     * @exception PersistenceException
877     */

878    public int getExecuteCount(String JavaDoc procId,
879                               String JavaDoc asDefId,
880                               String JavaDoc aDefId,
881                               SharkTransaction ti)
882       throws PersistenceException;
883
884    /**
885     * Method createActivity
886     *
887     * @return an ActivityPersistenceInterface
888     */

889    public ActivityPersistenceInterface createActivity();
890
891    /**
892     * Method createProcess
893     *
894     * @return a ProcessPersistenceInterface
895     */

896    public ProcessPersistenceInterface createProcess();
897
898    /**
899     * Method createProcessMgr
900     *
901     * @return a ProcessMgrPersistenceInterface
902     */

903    public ProcessMgrPersistenceInterface createProcessMgr();
904
905    /**
906     * Method createAssignment
907     *
908     * @return an AssignmentPersistenceInterface
909     */

910    public AssignmentPersistenceInterface createAssignment();
911
912    /**
913     * Method createResource
914     *
915     * @return a ResourcePersistenceInterface
916     */

917    public ResourcePersistenceInterface createResource();
918
919    /**
920     * Method createProcessVariable
921     *
922     * @return a ProcessVariablePersistenceInterface
923     */

924    public ProcessVariablePersistenceInterface createProcessVariable();
925
926    /**
927     * Method createActivityVariable
928     *
929     * @return an ActivityVariablePersistenceInterface
930     */

931    public ActivityVariablePersistenceInterface createActivityVariable();
932
933    /**
934     * Method createAndJoinEntry
935     *
936     * @return an AndJoinEntryInterface
937     */

938    public AndJoinEntryInterface createAndJoinEntry();
939
940    /**
941     * Method createDeadline
942     *
943     * @return a DeadlinePersistenceInterface
944     *
945     */

946    public DeadlinePersistenceInterface createDeadline();
947
948    /**
949     * Method getNextId
950     *
951     * @param idName a String
952     *
953     * @return a String
954     *
955     * @exception PersistenceException on error.
956     */

957    public String JavaDoc getNextId(String JavaDoc idName) throws PersistenceException;
958
959    /**
960     * @param t
961     * @param sqlWhere
962     * @return list of assignment objects complying to sqlWhere clause
963     */

964    List JavaDoc getAssignmentsWhere(SharkTransaction t, String JavaDoc sqlWhere) throws PersistenceException;
965
966    /**
967     * @param t
968     * @param sqlWhere
969     * @return list of process objects complying to sqlWhere clause
970     * @throws PersistenceException
971     */

972    List JavaDoc getProcessesWhere(SharkTransaction t, String JavaDoc sqlWhere) throws PersistenceException;
973
974    /**
975     * @param t
976     * @param sqlWhere
977     * @return list of activity objects complying to sqlWhere clause
978     * @throws PersistenceException
979     */

980    List JavaDoc getActivitiesWhere(SharkTransaction t, String JavaDoc sqlWhere) throws PersistenceException;
981 }
982
Popular Tags