]> git.mxchange.org Git - jjobs-ejb.git/commitdiff
Implemented allQueuedAddressesAsList() + updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:16:47 +0000 (19:16 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:25:30 +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 b7958d6ac5d6b0cd420b61901edf4ebd7a447143..8623c6fed343d158147425ff88547028bf16abea 100644 (file)
@@ -52,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