How to use conditional operator in xaction query .In conditional operator value is dynamic value given by user.

In java give the following format
e.x:select name,sum(amount) from account group by(amount) having(sum(amount)>'"+useramount+"'


How to give in the xaction query the above sql statement?