From: <th...@us...> - 2004-01-06 10:06:58
|
Update of /cvsroot/jaxme/JaxMe/src/generator/de/ispsoft/jaxme/generator/beanwriter In directory sc8-pr-cvs1:/tmp/cvs-serv17877/src/generator/de/ispsoft/jaxme/generator/beanwriter Modified Files: EntityBeanClassWriter.java Log Message: special handling of transaction exceptions needed Index: EntityBeanClassWriter.java =================================================================== RCS file: /cvsroot/jaxme/JaxMe/src/generator/de/ispsoft/jaxme/generator/beanwriter/EntityBeanClassWriter.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- EntityBeanClassWriter.java 8 Jul 2003 21:01:56 -0000 1.12 +++ EntityBeanClassWriter.java 6 Jan 2004 10:06:55 -0000 1.13 @@ -1,1109 +1,1022 @@ +// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. +// Jad home page: http://www.geocities.com/kpdus/jad.html +// Decompiler options: packimports(3) +// Source File Name: EntityBeanClassWriter.java + package de.ispsoft.jaxme.generator.beanwriter; -import de.ispsoft.jaxme.JMFactory; -import de.ispsoft.jaxme.generator.BeanWriter; -import de.ispsoft.jaxme.generator.SchemaException; -import de.ispsoft.jaxme.generator.JavaSourceWriter; [...1977 lines suppressed...] + { + jm.addLine(" Exception ex=e.getException();"); + jm.addLine(" if(ex instanceof com.ibm.websphere.ce.cm.StaleConnectionException)"); + jm.addLine(" throw new EJBException(ex);"); + } + jm.addLine(" throw new FinderException(e.getClass().getName() + \": \" + e.getMessage());"); + jm.addLine("}"); + return jm; } - jm.addLine("} catch (SAXException e) {"); - jm.addLine(" throw new FinderException(e.getClass().getName() + \": \" + e.getMessage());"); - jm.addLine("}"); - return jm; - } + + protected SchemaComplexElement element; + protected static Attributes emptyAttributes = new AttributesImpl(); + protected static SourceWriterImpl sourceWriter; + } |