]> git.mxchange.org Git - jfinancials-mailer-ejb.git/commitdiff
added logger messages
authorRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 10:33:55 +0000 (12:33 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 11:50:38 +0000 (13:50 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java

index b79f78bf33082def9a34bee4b3b5bc5af75e4433..f75aeb316f5d8e715c66286f86717fcf2315c236 100644 (file)
@@ -111,6 +111,9 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb
 
        @Override
        public boolean isAddressbookIdUsed (final Long addressbookId) {
+               // Trace message
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("isAddressbookIdUsed: addressbookId={0} - CALLED!", addressbookId)); //NOI18N
+
                // Is it null or zero?
                if (null == addressbookId) {
                        // Throw NPE
@@ -134,6 +137,9 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb
                        // Get single result
                        Addressbook addressbook = (Addressbook) query.getSingleResult();
 
+                       // Debug message
+                       this.getLoggerBeanLocal().logDebug(MessageFormat.format("isAddressbookIdUsed: addressbook={0} - FOUND!", addressbook)); //NOI18N
+
                        // Found one!
                        isValid = true;
                } catch (final NoResultException ex) {
@@ -141,6 +147,9 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb
                        this.getLoggerBeanLocal().logDebug(MessageFormat.format("isAddressbookIdUsed: addressbookId={0} is not valid: {1}", addressbookId, ex)); //NOI18N
                }
 
+               // Trace message
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("isAddressbookIdUsed: isValid={0} - EXIT!", isValid)); //NOI18N
+
                // Return result
                return isValid;
        }