Re: Java Interop for a static method call that returns an ArrayList

2016-02-10 Thread Adrian Cooley
Thanks a million Gary, this has been extremely helpful. I'm from an object oriented background and I'm having the usual problems of crossing into the functional thinking land, hence the straightforward question. I appreciate the help, it worked exactly as you've outlined below, Thanks, Adrian.

Java Interop for a static method call that returns an ArrayList

2016-02-10 Thread Adrian Cooley
Hi, I have a Java class that has a static method call that returns a Java Array List of users as follows: public final class DAO { public static List getUsers() { List userList = new ArrayList(); User user = new User("Mike"); userList.add(user); return userLi

Re: State Change Listener in Clojure on a Database

2015-10-22 Thread Adrian Cooley
Thank you guys so much for all the helpful information. I'll have a look at each suggestion and figure out the best approach, thanks again, much appreciated, Adrian. On Monday, 19 October 2015 16:06:01 UTC+1, Adrian Cooley wrote: > > Hi all, > > I'm new to Clojure and I

Re: State Change Listener in Clojure on a Database

2015-10-22 Thread Adrian Cooley
Thanks Ole, will check that out, On Wednesday, 21 October 2015 10:30:32 UTC+1, Ole Krüger wrote: > > Check out https://github.com/relaynetwork/irmgard > > On Monday, October 19, 2015 at 5:06:01 PM UTC+2, Adrian Cooley wrote: >> >> Hi all, >> >> I'm n

State Change Listener in Clojure on a Database

2015-10-19 Thread Adrian Cooley
Hi all, I'm new to Clojure and I've been exploring the possibility of using it to handle a large list of Users stored in a Postgresql Database. I can see that there are some great sql libraries for clojure to query a Postgresql database and this is fine. However, I was wondering if there are an