Package org.apache.openjpa.lib.log

Examples of org.apache.openjpa.lib.log.Log.error()


            if (log.isTraceEnabled())
                log.trace("creating contact");
            try {      
                contact = createContact(myEMF);     
            } catch (Exception e) {
                log.error("Create Contact failed.", e);
                throw e;
            }
           
            try {
                verifyContactValues(myEMF, contact);
View Full Code Here


            }
           
            try {
                verifyContactValues(myEMF, contact);
            } catch (Exception e) {
                log.error("Create Contact verification failed.", e);
                throw e;
                // do not return, as this might be a small bug that we can bypass
            }
           
            if (log.isTraceEnabled())
View Full Code Here

                log.trace("creating annuity holder");
            IAnnuityHolder annuityHolder = null;
            try {
                annuityHolder = createAnnuityHolder(myEMF, contact);          
            } catch (Exception e) {
                log.error("failed to create Annuity Holder Successfully.", e);
                throw e;
            }
           
            try {
                verifyAnnuityHolderValues(myEMF, annuityHolder);
View Full Code Here

                log.trace("creating payor");
            IPayor payor = null;
            try {
                payor = createPayor(myEMF);
            } catch(Exception e) {
                log.error("failed to create payor successfuly.", e);
                throw e;
            }
           
            try {
                verifyPayorValues(myEMF, payor);
View Full Code Here

            }
           
            try {
                verifyPayorValues(myEMF, payor);
            } catch (Exception e) {
                log.error("failed to verify create payor successfuly.", e);
                throw e;
            }
           
            if (log.isTraceEnabled())
                log.trace("creating annuity");
View Full Code Here

            IAnnuity annuity =null;    
            AnnuityType annuityType = AnnuityType.FIXED;
            try {          
                annuity = createAnnuityWithRider(myEMF, annuityType);
            } catch (Exception e) {
                log.error("failed to create annuity successfuly.", e);
                throw e;
            }
           
            try {
                log.trace("verify annuity with rider");
View Full Code Here

           
            try {
                log.trace("verify annuity with rider");
                verifyAnnuityValues(myEMF, annuity, annuityType);
            } catch (Exception e) {
                log.error("failed to verify create annuity successfuly.", e);
                throw e;
            }      
           
            if (log.isTraceEnabled())
                log.trace("upating annuity");
View Full Code Here

                log.trace("upating annuity");
            try {
                log.trace("create annuity with payout");
                annuity = createAnnuityPayout(myEMF, annuity);
            } catch (Exception e) {
                log.error("failed to create annuity successfuly.", e);
                throw e;
            }
           
            try {
                verifyAnnuityValues(myEMF, annuity, annuityType);
View Full Code Here

            }
           
            try {
                verifyAnnuityValues(myEMF, annuity, annuityType);
            } catch (Exception e) {
                log.error("failed to verify create annuity successfuly.", e);
                throw e;
            }      
           
            if (log.isTraceEnabled())
                log.trace("upating annuity");
View Full Code Here

                    annuity.setAnnuityHolderId(annuityHolder.getId());
                    annuity = em.merge(annuity);
                em.getTransaction().commit();
                closeEM(em);
            } catch (Exception e) {
                log.error("failed to update annuity successfuly.", e);
                throw e;
            }
           
            try {
                verifyAnnuityValues(myEMF, annuity, annuityType);
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.