From: Vance K. <va...@us...> - 2006-01-03 01:05:46
|
User: vancek Date: 06/01/02 17:05:35 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: fixed to work with ejb3 session bean Revision Changes Path 1.2 +48 -13 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- SessionBeanImpl.vsl 28 Dec 2005 00:32:55 -0000 1.1 +++ SessionBeanImpl.vsl 3 Jan 2006 01:05:35 -0000 1.2 @@ -11,30 +11,65 @@ public class ${service.serviceImplementationName} extends ${service.serviceName} { -#foreach ($operation in $service.operations) -#set ($returnType = $operation.returnType.fullyQualifiedName) -#set ($signature = $operation.signature) -#set ($visibility = $operation.visibility) -## Public static methods are exposed on the home -## interface instead of the component interface and must -## be prepended with "ejbHome" -#if ($visibility == "public" && $operation.static) -#set ($signature = "ejbHome${stringUtils.capitalize($signature)}") + // --------------- Constructors --------------- + +## Default create method with no arguments. + public ${service.serviceImplementationName}() + { + super(); + } +#foreach ($operation in $service.getCreateMethods(false)) + + /** +$operation.getDocumentation(" * ") + * + */ + public ${service.serviceImplementationName}($operation.typedArgumentList) + { + // implementation + } +#end +## Autogenerated create method with all attributes. Only present for stateful beans. +#set ($allAttributes = $service.allInstanceAttributes) +#if (!$allAttributes.empty) + + /** + * Constructor with all attribute values. +#**##foreach($attribute in $allAttributes) + * @param $attribute.name Value for the ${attribute.name} property +#**##end + */ + public ${service.serviceImplementationName}(${service.getAttributesAsList($allAttributes, true, true)}) + { +#**##if(!$allAttributes.empty) + super($service.getAttributesAsList($allAttributes, false, true)); +#**##end + } #end +#set ($operations = $service.operations) +#if (!$operations.empty) + + // -------- Business Methods -------------- + +#**##foreach ($operation in $operations) +#* *##set ($returnType = $operation.returnType.fullyQualifiedName) +#* *##set ($signature = $operation.signature) +#* *##set ($visibility = $operation.visibility) /** * @see ${service.fullyQualifiedName}#${operation.getSignature(false)} */ $visibility $returnType $signature -#if ($operation.exceptionsPresent) +#* *##if ($operation.exceptionsPresent) throws $operation.exceptionList -#end +#* *##end { //TODO: put your implementation here. -#if ($operation.returnTypePresent) +#* *##if ($operation.returnTypePresent) // Dummy return value, just that the file compiles return $operation.returnType.javaNullString; -#end +#* *##end } +#**##end #end } |
From: Vance K. <va...@us...> - 2006-01-06 13:51:12
|
User: vancek Date: 06/01/06 05:50:35 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: extends fully qualified service name Revision Changes Path 1.3 +2 -4 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- SessionBeanImpl.vsl 3 Jan 2006 01:05:35 -0000 1.2 +++ SessionBeanImpl.vsl 6 Jan 2006 13:50:35 -0000 1.3 @@ -3,13 +3,11 @@ package $service.packageName; #end -import javax.ejb.SessionContext; - /** * @see ${service.fullyQualifiedServiceName} */ public class ${service.serviceImplementationName} - extends ${service.serviceName} + extends ${service.fullyQualifiedServiceName} { // --------------- Constructors --------------- @@ -46,7 +44,7 @@ #**##end } #end -#set ($operations = $service.operations) +#set ($operations = $service.businessOperations) #if (!$operations.empty) // -------- Business Methods -------------- |
From: Vance K. <va...@us...> - 2006-01-29 01:51:06
|
User: vancek Date: 06/01/28 17:50:58 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: session implementation class now has the handle<operation name> method which contains the implementation for the session operation. it throws UnsupportedOperationException if not yet implemented. Revision Changes Path 1.6 +12 -10 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- SessionBeanImpl.vsl 17 Jan 2006 03:14:41 -0000 1.5 +++ SessionBeanImpl.vsl 29 Jan 2006 01:50:58 -0000 1.6 @@ -51,23 +51,25 @@ // -------- Business Methods -------------- #**##foreach ($operation in $operations) -#* *##set ($returnType = $operation.returnType.fullyQualifiedName) -#* *##set ($signature = $operation.signature) -#* *##set ($visibility = $operation.visibility) /** - * @see ${service.fullyQualifiedName}#${operation.getSignature(false)} + * @see ${service.fullyQualifiedServiceName}#${operation.getSignature(false)} */ - $visibility $returnType $signature -#* *##if ($operation.exceptionsPresent) - $operation.throwsClause -#* *##end +#* *##set ($abstract = $service.abstract && $operation.abstract) + protected#if ($abstract) abstract#end $operation.returnType.fullyQualifiedName $operation.implementationSignature +#* *##if ($abstract) + throws java.lang.Exception; +#* *##else + throws java.lang.Exception { //TODO: put your implementation here. #* *##if ($operation.returnTypePresent) // Dummy return value, just that the file compiles return $operation.returnType.javaNullString; +#* *##else + throw new java.lang.UnsupportedOperationException("${service.fullyQualifiedServiceName}.${operation.implementationSignature} Not implemented!"); #* *##end } +#* *##end #**##end #end |
From: Vance K. <va...@us...> - 2006-02-06 03:18:55
|
User: vancek Date: 06/02/05 19:18:49 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: added handleRemove implementation called from embeddable superclass remove method that has the @Remove annotation Revision Changes Path 1.7 +9 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -r1.6 -r1.7 --- SessionBeanImpl.vsl 29 Jan 2006 01:50:58 -0000 1.6 +++ SessionBeanImpl.vsl 6 Feb 2006 03:18:49 -0000 1.7 @@ -73,4 +73,13 @@ #**##end #end + // ----------- Generic Methods ----------- + + /** + * @see ${service.fullyQualifiedServiceName}#remove()} + */ + protected void handleRemove() + { + //TODO: put your implementation here + } } |
From: Vance K. <va...@us...> - 2006-02-08 10:09:34
|
User: vancek Date: 06/02/08 02:09:28 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: replaced tab with spaces Revision Changes Path 1.8 +4 -4 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 |
From: Vance K. <va...@us...> - 2006-03-05 05:55:52
|
User: vancek Date: 06/03/04 21:55:52 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: added support for lifecycle callbacks Revision Changes Path 1.9 +28 -8 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -r1.8 -r1.9 --- SessionBeanImpl.vsl 8 Feb 2006 10:09:28 -0000 1.8 +++ SessionBeanImpl.vsl 5 Mar 2006 05:55:52 -0000 1.9 @@ -48,9 +48,10 @@ #set ($operations = $service.businessOperations) #if (!$operations.empty) - // -------- Business Methods -------------- + // -------- Business Methods Impl -------------- #**##foreach ($operation in $operations) +#* *##if (!$operation.lifecycleCallback) /** * @see ${service.fullyQualifiedServiceName}#${operation.getSignature(false)} */ @@ -72,11 +73,30 @@ #* *##end #**##end +#**##end #end +#if (!$operations.empty) + + // -------- Lifecycle Callback Impl -------------- + +#**##foreach ($operation in $operations) +#* *##if ($operation.lifecycleCallback) + /** + * @see ${service.fullyQualifiedServiceName}#${operation.name}() + */ + protected void handle${stringUtils.capitalize(${operation.name})}() + { + // TODO put your lifecycle callback implementation here. + } + +#* *##end +#**##end +#end + // ----------- Generic Methods ----------- /** - * @see ${service.fullyQualifiedServiceName}#remove()} + * @see ${service.fullyQualifiedServiceName}#remove() */ protected void handleRemove() { |
From: Vance K. <va...@us...> - 2006-03-14 06:11:50
|
User: vancek Date: 06/03/13 22:11:49 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: if stateful session bean, then add remove method implementation handle that has @Remove annotations. Revision Changes Path 1.10 +3 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.9 retrieving revision 1.10 diff -u -w -r1.9 -r1.10 --- SessionBeanImpl.vsl 5 Mar 2006 05:55:52 -0000 1.9 +++ SessionBeanImpl.vsl 14 Mar 2006 06:11:49 -0000 1.10 @@ -92,8 +92,9 @@ #* *##end #**##end #end +#if ($service.stateful) - // ----------- Generic Methods ----------- + // ----------- Remove Method Impl ----------- /** * @see ${service.fullyQualifiedServiceName}#remove() @@ -102,4 +103,5 @@ { //TODO: put your implementation here } +#end } |
From: Vance K. <va...@us...> - 2006-04-11 15:43:36
|
User: vancek Date: 06/04/11 08:43:34 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: fixed constructor naming - impl class name is now the bean name Revision Changes Path 1.11 +19 -6 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -r1.10 -r1.11 --- SessionBeanImpl.vsl 14 Mar 2006 06:11:49 -0000 1.10 +++ SessionBeanImpl.vsl 11 Apr 2006 15:43:34 -0000 1.11 @@ -2,18 +2,31 @@ #if ($stringUtils.isNotBlank($service.packageName)) package $service.packageName; #end -#set ($generatedFile = "${stringUtils.replace($service.fullyQualifiedServiceImplementationName,'.','/')}.java") +#set ($generatedFile = "${stringUtils.replace($service.fullyQualifiedServiceName,'.','/')}.java") /** * @see ${service.fullyQualifiedServiceName} */ -public class ${service.serviceImplementationName} - extends ${service.fullyQualifiedServiceName} +/** + * Do not specify the javax.ejb.${service.type} annotation + * Instead, define the session bean in the ejb-jar.xml descriptor + * @javax.ejb.${service.type} + */ +#if ($service.webServiceEnabled) +@javax.jws.WebService(endpointInterface = "${service.fullyQualifiedWebServiceInterfaceName}") +#else +/** + * Uncomment to enable webservices for ${service.serviceName} + *@javax.jws.WebService(endpointInterface = "${service.fullyQualifiedWebServiceInterfaceName}") + */ +#end +public class ${service.serviceName} + extends ${service.fullyQualifiedServiceBaseName} { // --------------- Constructors --------------- ## Default create method with no arguments. - public ${service.serviceImplementationName}() + public ${service.serviceName}() { super(); } @@ -23,7 +36,7 @@ $operation.getDocumentation(" * ") * */ - public ${service.serviceImplementationName}($operation.typedArgumentList) + public ${service.serviceName}($operation.typedArgumentList) { // implementation } @@ -38,7 +51,7 @@ * @param $attribute.name Value for the ${attribute.name} property #**##end */ - public ${service.serviceImplementationName}(${service.getAttributesAsList($allAttributes, true, true)}) + public ${service.serviceName}(${service.getAttributesAsList($allAttributes, true, true)}) { #**##if(!$allAttributes.empty) super($service.getAttributesAsList($allAttributes, false, true)); |
From: Vance K. <va...@us...> - 2006-04-17 01:56:39
|
User: vancek Date: 06/04/16 18:56:38 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanImpl.vsl Log: fixed comments Revision Changes Path 1.12 +1 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -r1.11 -r1.12 --- SessionBeanImpl.vsl 11 Apr 2006 15:43:34 -0000 1.11 +++ SessionBeanImpl.vsl 17 Apr 2006 01:56:36 -0000 1.12 @@ -66,7 +66,7 @@ #**##foreach ($operation in $operations) #* *##if (!$operation.lifecycleCallback) /** - * @see ${service.fullyQualifiedServiceName}#${operation.getSignature(false)} + * @see ${service.fullyQualifiedServiceBaseName}#${operation.getSignature(false)} */ #* *##set ($abstract = $service.abstract && $operation.abstract) protected#if ($abstract) abstract#end $operation.returnType.fullyQualifiedName $operation.implementationSignature |