Correct, but from what you describe about your app, I assume what you need is option 2
If you told us more about that java app, the community might advise to integrate with an SAP Business Suite system (regardless whether on HANA or any other database). But if you explicitly look for integration with HANA, JDBC is the way to go
--juergen