Source Code Cross Referenced for CurrentStepEJB.java in  » Workflow-Engines » OSWorkflow » com » opensymphony » workflow » spi » ejb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » OSWorkflow » com.opensymphony.workflow.spi.ejb 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (c) 2002-2003 by OpenSymphony
003:         * All rights reserved.
004:         */
005:        package com.opensymphony.workflow.spi.ejb;
006:
007:        import com.opensymphony.ejb.ExceptionlessEntityAdapter;
008:
009:        import java.sql.Timestamp;
010:
011:        import javax.ejb.CreateException;
012:
013:        /**
014:         * EJB implementation for current steps.
015:         *
016:         * @ejb.bean
017:         *  type="CMP"
018:         *  view-type="local"
019:         *  name="CurrentStep"
020:         *  reentrant="False"
021:         *  schema="CurrentStep"
022:         *  primkey-field="id"
023:         *
024:         * @ejb.pk class="java.lang.Long" extends="java.lang.Object"
025:         *
026:         * @ejb.persistence table-name="OS_CURRENTSTEP"
027:         *
028:         * @ejb.home local-extends="javax.ejb.EJBLocalHome"
029:         *
030:         * @ejb.interface local-extends="javax.ejb.EJBLocalObject,com.opensymphony.workflow.spi.ejb.AbstractLocalStep"
031:         *
032:         * @ejb.env-entry
033:         *  name="sequenceName"
034:         *  type="java.lang.String"
035:         *  value="WorkflowEntryEJB"
036:         *
037:         * @ejb.ejb-external-ref
038:         *  ref-name="ejb/SequenceGenerator"
039:         *  type="Session"
040:         *  view-type="remote"
041:         *  link="SequenceGenerator"
042:         *  home="com.opensymphony.module.sequence.SequenceGeneratorHome"
043:         *  business="com.opensymphony.module.sequence.SequenceGenerator"
044:         *
045:         * @ejb.finder
046:         *  signature="java.util.Collection findByEntryId(long entryId)"
047:         *  query="SELECT DISTINCT OBJECT(o) from CurrentStep o where o.entryId = ?1"
048:         *
049:         * @ejb.permission unchecked="true"
050:         * @ejb.transaction type="Supports"
051:         *
052:         * @author <a href="mailto:hani@formicary.net">Hani Suleiman</a>
053:         * @author <a href="mailto:plightbo@hotmail.com">Pat Lightbody</a>
054:         */
055:        public abstract class CurrentStepEJB extends ExceptionlessEntityAdapter {
056:            //~ Methods ////////////////////////////////////////////////////////////////
057:
058:            /**
059:             * @ejb.interface-method
060:             */
061:            public abstract void setActionId(int actionId);
062:
063:            /**
064:             * @ejb.interface-method
065:             * @ejb.persistence column-name="ACTION_ID"
066:             */
067:            public abstract int getActionId();
068:
069:            /**
070:             * @ejb.interface-method
071:             */
072:            public abstract void setCaller(String caller);
073:
074:            /**
075:             * @ejb.interface-method
076:             * @ejb.persistence column-name="CALLER"
077:             */
078:            public abstract String getCaller();
079:
080:            /**
081:             * @ejb.interface-method
082:             */
083:            public abstract void setDueDate(Timestamp dueDate);
084:
085:            /**
086:             * @ejb.interface-method
087:             * @ejb.persistence column-name="DUE_DATE"
088:             */
089:            public abstract Timestamp getDueDate();
090:
091:            public abstract void setEntryId(long entryId);
092:
093:            /**
094:             * @ejb.interface-method
095:             * @ejb.persistence column-name="ENTRY_ID"
096:             */
097:            public abstract long getEntryId();
098:
099:            /**
100:             * @ejb.interface-method
101:             */
102:            public abstract void setFinishDate(Timestamp finishDate);
103:
104:            /**
105:             * @ejb.interface-method
106:             * @ejb.persistence column-name="FINISH_DATE"
107:             */
108:            public abstract Timestamp getFinishDate();
109:
110:            public abstract void setId(Long id);
111:
112:            /**
113:             * @ejb.pk-field
114:             * @ejb.interface-method
115:             * @ejb.persistence column-name="ID"
116:             */
117:            public abstract Long getId();
118:
119:            public abstract void setOwner(String owner);
120:
121:            /**
122:             * @ejb.interface-method
123:             * @ejb.persistence column-name="OWNER"
124:             */
125:            public abstract String getOwner();
126:
127:            public abstract void setStartDate(Timestamp startDate);
128:
129:            /**
130:             * @ejb.interface-method
131:             * @ejb.persistence column-name="START_DATE"
132:             */
133:            public abstract Timestamp getStartDate();
134:
135:            /**
136:             * @ejb.interface-method
137:             */
138:            public abstract void setStatus(String status);
139:
140:            /**
141:             * @ejb.interface-method
142:             * @ejb.persistence column-name="STATUS"
143:             */
144:            public abstract String getStatus();
145:
146:            public abstract void setStepId(int stepId);
147:
148:            /**
149:             * @ejb.interface-method
150:             * @ejb.persistence column-name="STEP_ID"
151:             */
152:            public abstract int getStepId();
153:
154:            /**
155:             * @ejb.create-method
156:             */
157:            public Long ejbCreate(long entryId, int stepId, String owner,
158:                    Timestamp startDate, Timestamp dueDate, String status)
159:                    throws CreateException {
160:                try {
161:                    Long id = new Long(nextLong());
162:                    setId(id);
163:                    setEntryId(entryId);
164:                    setStepId(stepId);
165:                    setOwner(owner);
166:                    setStartDate(startDate);
167:                    setDueDate(dueDate);
168:                    setStatus(status);
169:
170:                    return id;
171:                } catch (Exception e) {
172:                    throw new CreateException(e.getMessage());
173:                }
174:            }
175:
176:            public void ejbPostCreate(long entryId, int stepId, String owner,
177:                    Timestamp startDate, Timestamp dueDate, String status)
178:                    throws CreateException {
179:            }
180:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.