Added OR-4 Query functions in java.