Welcome to Ireland Reaching Out!
The Cloonclare RC baptismal records start in 1841 and marriages in 1850 so a marriage record and baptismal records for James and Rosanne would not be available. Also it would be difficult to link James and Andrew as brothers.
On the subscription site Roots Ireland, I can see five baptismal records for children of James Foley and Rosanne Gallagher: Agnes 1844 Patrick 1849 James 1850 Mary Grace 1853 Andrew 1855
I did not see James Foley in the 1857 Griffiths Valuation survey.
The free site www.irishgenealogy.ie has images of civil death records from 1878-1968. Index record are available from 1864-1877. I see a couple of James Foley possibilities.
Did the family stay in Ireland?