Package javax.ejb

Examples of javax.ejb.FinderException.initCause()


/*  256 */       JDBCUtil.safeClose(ps);
/*  257 */       JDBCUtil.safeClose(con);
/*      */
/*  259 */       log.error("Find failed", e);
/*  260 */       FinderException fe = new FinderException("Find failed: " + e);
/*  261 */       fe.initCause(e);
/*  262 */       throw fe;
/*      */     }
/*      */
/*  265 */     return this.collectionFactory.createCollection(con, ps, rs, limit, count, selectEntity, selectField, selectFunction, selectManager, onFindCMRList, eagerLoadMask, factory);
/*      */   }
View Full Code Here


            }
        } catch (FinderException e) {
            throw e;
        } catch (Exception e) {
            FinderException fe = new FinderException(e.getMessage());
            fe.initCause(e);
            throw fe;
        } finally {
            JDBCUtil.safeClose(rs);
            JDBCUtil.safeClose(ps);
            JDBCUtil.safeClose(con);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.