Source Code Cross Referenced for BnNodePerformerAssignBean.java in  » Workflow-Engines » bonita-v3.1 » hero » entity » 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 » bonita v3.1 » hero.entity 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         *
003:         * Bonita
004:         * Copyright (C) 1999 Bull S.A.
005:         * Bull 68 route de versailles  78434 Louveciennes Cedex France
006:         * Further information: bonita@objectweb.org
007:         *
008:         * This library is free software; you can redistribute it and/or
009:         * modify it under the terms of the GNU Lesser General Public
010:         * License as published by the Free Software Foundation; either
011:         * version 2.1 of the License, or any later version.
012:         *
013:         * This library is distributed in the hope that it will be useful,
014:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
015:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
016:         * Lesser General Public License for more details.
017:         *
018:         * You should have received a copy of the GNU Lesser General Public
019:         * License along with this library; if not, write to the Free Software
020:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
021:         * USA
022:         *
023:         *
024:        --------------------------------------------------------------------------
025:         * $Id: BnNodePerformerAssignBean.java,v 1.10 2006/08/21 09:56:41 brice Exp $
026:         *
027:        --------------------------------------------------------------------------
028:         */package hero.entity;
029:
030:        import hero.interfaces.BnNodePerformerAssignPK;
031:        import hero.interfaces.BnNodePerformerAssignValue;
032:        import hero.interfaces.BnNodeLocal;
033:        import hero.interfaces.InvalidValueException;
034:
035:        import javax.ejb.CreateException;
036:        import javax.ejb.EJBException;
037:        import javax.ejb.EntityBean;
038:        import javax.ejb.EntityContext;
039:        import javax.ejb.RemoveException;
040:
041:        /**
042:         * The Entity bean represents a BnNodePerformerAssign
043:         *
044:         * @author Marc Blachon
045:         * @version $Revision: 1.10 $
046:         *
047:         * @ejb:bean name="BnNodePerformerAssign"
048:         *           display-name="BnNode Performer Assign Entity"
049:         *           type="CMP"
050:         *           jndi-name="ejb/hero/BnNodePerformerAssign"
051:         *           local-jndi-name="ejb/hero/BnNodePerformerAssign_L"
052:         *           view-type="both"
053:         *           cmp-version="2.x"
054:         *           reentrant="true"
055:         *
056:         * @ejb:transaction type="Supports"
057:         *
058:         *
059:         * @jonas.bean
060:         * 	   lock-policy="container-read-committed"
061:         * @jonas.jdbc-mapping
062:         *     jndi-name="bonita"
063:         *     jdbc-table-name="BnNodePerformerAssign"
064:         * @jonas.shared false
065:         *
066:         * @ejb:finder signature="java.util.Collection findAll()"
067:         *     query="SELECT object(n) FROM BnNodePerformerAssign n"
068:         *     transaction-type="Supports"
069:         *
070:         * @ejb:finder signature="java.util.Collection findByNode(java.lang.String NodeId)" view-type="local"
071:         *     query="SELECT OBJECT(p) From BnNodePerformerAssign p Where p.bnNode.id = ?1"
072:         *     transaction-type="Supports"
073:         *
074:         * @ejb:finder signature="hero.interfaces.NodeMapperLocal findByName(java.lang.String name)" view-type="local"
075:         *     query="SELECT OBJECT(p) From BnNodePerformerAssign p Where p.name = ?1"
076:         *     transaction-type="Supports"
077:         *
078:         *
079:         * @ejb.value-object
080:         *    match="*"
081:         *    name="BnNodePerformerAssign"
082:         *
083:         * @jboss.persistence
084:         *    table-name="BnNodePerformerAssign"
085:         *    create-table="true"
086:         *    remove-table="false"
087:         * 
088:         * @jboss.container-configuration name="Standard CMP 2.x EntityBean for Bonita"
089:         **/
090:        public abstract class BnNodePerformerAssignBean implements  EntityBean {
091:
092:            // -------------------------------------------------------------------------
093:            // Members
094:            // -------------------------------------------------------------------------
095:
096:            public EntityContext mContext;
097:
098:            // -------------------------------------------------------------------------
099:            // Methods
100:            // -------------------------------------------------------------------------
101:
102:            // -------------------------------------------------------------------------
103:            // Properties (Getters/Setters)
104:            // -------------------------------------------------------------------------
105:
106:            /**
107:             * Retrieve the BnNodePerformerAssign's id.
108:             *
109:             * @return Returns an int representing the id of this BnNodePerformerAssign.
110:             *
111:             * @ejb:pk-field
112:             *
113:             * @ejb:persistence column-name="id"
114:             * @jonas.cmp-field-jdbc-mapping
115:             *    field-name="id"
116:             *    jdbc-field-name="id"
117:             * @ejb:transaction type="Supports"
118:             **/
119:            public abstract String getId();
120:
121:            /**
122:             * Set the PerformerAssign's id.
123:             *
124:             * @param pId The id of this PerformerAssign. Is set at creation time.
125:             * @ejb:transaction type="Required"
126:             **/
127:            public abstract void setId(String pId);
128:
129:            /** Retrieve the node associated with the PerformerAssign.
130:             *
131:             * @return Returns a String representing the Name of the node.
132:             * @ejb:interface-method view-type="both"
133:             * @ejb:relation name="performerAssign-node" role-name="performerAssign2node" cascade-delete="yes"
134:             * @ejb:transaction type="Supports"
135:             * @jboss.relation
136:             *    related-pk-field = "id"
137:             *    fk-column = "bnNodePerformerIdFK"
138:             *
139:             **/
140:            public abstract BnNodeLocal getBnNode();
141:
142:            /**
143:             * Set the BnNode.
144:             *
145:             * @ejb:interface-method view-type="local"
146:             * @param pNode The BnNode of this PerformerAssign.
147:             * @ejb:transaction type="Required"
148:             **/
149:            public abstract void setBnNode(BnNodeLocal pNode);
150:
151:            /**
152:             * Retrieve the Name value.
153:             *
154:             * @return Returns an String representing the PerformerAssign Name value.
155:             *
156:             * @ejb:interface-method view-type="both"
157:             *
158:             * @ejb:persistence column-name="name"
159:             * @ejb:transaction type="Supports"
160:             **/
161:            public abstract String getName();
162:
163:            /**
164:             * Set the Name value.
165:             * @ejb:interface-method view-type="both"
166:             * @param key The Name of this PerformerAssign.
167:             * @ejb:transaction type="Required"
168:             **/
169:            public abstract void setName(String performerAssignName);
170:
171:            /**
172:             * Retrieve the Type value.
173:             *
174:             * @return Returns an int representing the Type value.
175:             *
176:             * @ejb:interface-method view-type="both"
177:             *
178:             * @ejb:persistence column-name="type"
179:             * @ejb:transaction type="Supports"
180:             **/
181:            public abstract int getType();
182:
183:            /**
184:             * Set the Type value.
185:             * @ejb:interface-method view-type="both"
186:             * @param value The Type value of this PerformerAssign.
187:             * @ejb:transaction type="Required"
188:             **/
189:            public abstract void setType(int performerAssignType);
190:
191:            /**
192:             * Retrieve the Name of the property.
193:             *
194:             * @return Returns an String representing the property Name value.
195:             *
196:             * @ejb:interface-method view-type="both"
197:             *
198:             * @ejb:persistence column-name="property"
199:             * @ejb:transaction type="Supports"
200:             **/
201:            public abstract String getPropertyName();
202:
203:            /**
204:             * Set the property name value.
205:             * @ejb:interface-method view-type="both"
206:             * @param propertyName The Name of the property containing the user.
207:             * @ejb:transaction type="Required"
208:             **/
209:            public abstract void setPropertyName(String propertyName);
210:
211:            /**
212:             * @ejb.interface-method
213:             * @ejb:transaction type="Supports"
214:             */
215:            public abstract BnNodePerformerAssignValue getBnNodePerformerAssignValue();
216:
217:            /**
218:             * @ejb.interface-method
219:             * @ejb:transaction type="Required"
220:             */
221:            public abstract void setBnNodePerformerAssignValue(
222:                    BnNodePerformerAssignValue v);
223:
224:            // -------------------------------------------------------------------------
225:            // Framework Callbacks
226:            // -------------------------------------------------------------------------
227:
228:            /**
229:             * Create a PerformerAssign based on the supplied PerformerAssign Value Object.
230:             *
231:             *
232:             * @throws InvalidValueException If one of the values are not correct,
233:             *                               this will not roll back the transaction
234:             *                               because the caller has the chance to
235:             *                               fix the problem and try again
236:             * @throws EJBException If no new unique ID could be retrieved this will
237:             *                      rollback the transaction because there is no
238:             *                      hope to try again
239:             * @throws CreateException Because we have to do so (EJB spec.)
240:             *
241:             * @ejb:create-method view-type="both"
242:             **/
243:            public BnNodePerformerAssignPK ejbCreate(
244:                    BnNodePerformerAssignValue prp)
245:                    throws InvalidValueException, EJBException, CreateException {
246:                this .setId(hero.interfaces.BnNodePerformerAssignUtil
247:                        .generateGUID(this ));
248:                // This is only possible in CMPs. Otherwise return a valid PK.
249:                return null;
250:            }
251:
252:            public void ejbPostCreate(BnNodePerformerAssignValue prp) {
253:                // Assign value object in ejbPostCreate to apply XDoclet best
254:                // practice. If not done, there will be an error in JBoss if
255:                // the Value Object has relations.
256:                this .setBnNodePerformerAssignValue(prp);
257:            }
258:
259:            /**
260:             * Create a PerformerAssign based on the supplied  parameters.
261:             *
262:             *
263:             * @throws InvalidValueException If one of the values are not correct,
264:             *                               this will not roll back the transaction
265:             *                               because the caller has the chance to
266:             *                               fix the problem and try again
267:             * @throws EJBException If no new unique ID could be retrieved this will
268:             *                      rollback the transaction because there is no
269:             *                      hope to try again
270:             * @throws CreateException Because we have to do so (EJB spec.)
271:             *
272:             * @ejb:create-method view-type="both"
273:             **/
274:            public BnNodePerformerAssignPK ejbCreate(
275:                    String performerAssignName, int performerAssignType,
276:                    String propertyName) throws InvalidValueException,
277:                    EJBException, CreateException {
278:                this .setName(performerAssignName);
279:                this .setType(performerAssignType);
280:                this .setPropertyName(propertyName);
281:                this .setId(hero.interfaces.BnNodePerformerAssignUtil
282:                        .generateGUID(this ));
283:                // This is only possible in CMPs. Otherwise return a valid PK.
284:                return null;
285:            }
286:
287:            public void setEntityContext(EntityContext lContext) {
288:                mContext = lContext;
289:            }
290:
291:            public void unsetEntityContext() {
292:                mContext = null;
293:            }
294:
295:            public void ejbActivate() {
296:            }
297:
298:            public void ejbPassivate() {
299:            }
300:
301:            public void ejbLoad() {
302:            }
303:
304:            public void ejbStore() {
305:            }
306:
307:            public void ejbRemove() throws RemoveException {
308:            }
309:
310:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.