How to know wich changeset will be executed - Spring integration

Hi all,


In the thread below i learned some basics on how can i programatically retrieve the

changesets that are written to the available changlog xml file.http://forum.liquibase.org/topic/how-to-show-an-executed-sql-for-a-changelog


Now i would like to know if there is a way to check (or filter) which will be executed

and which is already in synch.


I could of course use Spring SimpleJdbcTemplate to get out the max id from the 

databasechangelog table. But i was wondering if there is a more sophisticated

way to achive my goal.


Just so you know: the task i’m trying to solve is to print out the SQL statements

that will be executed on application startup via the Spring integration. I know about

the CLI option but i’m trying to avoid that.


Thanks in advance,

Dave


P.S.: Have a nice weekend!