]> git.mxchange.org Git - addressbook-mailer-ejb.git/commitdiff
Implemented allQueuedAddressesAsList() + updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:16:43 +0000 (19:16 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:25:24 +0000 (19:25 +0100)
lib/juser-core.jar
src/java/org/mxchange/jusercore/model/email_address/EmailChangeSessionBean.java

index 1924b0bcb057c30248932d2d3e5063b69db3e4ce..a9550a8da868bb57ea5208676cefe48f4d942689 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index a049514509c546cb2d3f19c33a756e809a766e3b..cbda9e2162619e8c0e24e874a17198d1f7881db0 100644 (file)
@@ -34,7 +34,6 @@ import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
 @Stateless (name = "email-change", mappedName = "ejb/stateless-addressbook-email-change", description = "A bean handling email changes")
 public class EmailChangeSessionBean extends BaseDatabaseBean implements EmailChangeSessionBeanRemote {
 
-
        /**
         * Serial number
         */
@@ -53,8 +52,22 @@ public class EmailChangeSessionBean extends BaseDatabaseBean implements EmailCha
        }
 
        @Override
+       @SuppressWarnings ("unchecked")
        public List<String> allQueuedAddressesAsList () {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               // Trace message
+               this.getLoggerBeanLocal().logTrace("allQueuedAddressesAsList: CALLED!"); //NOI18N
+
+               // Get named query
+               Query query = this.getEntityManager().createNamedQuery("AllEmailAddressChanges", List.class);
+
+               // Get all entries
+               List<String> emailAddresses = query.getResultList();
+
+               // Trace message
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("allQueuedAddressesAsList: emailAddresses.size()={0} - EXIT!", emailAddresses.size())); //NOI18N
+
+               // Return it
+               return emailAddresses;
        }
 
        @Override