GQL is not part of the Java implementation, and as a replacement, you will use the object Queryto create data warehouse queries.
If you are looking for a GQL implementation for Java, gql4j works quite well. I tested it on a small data set to make sure it works, but I did not use it in the project otherwise.
http://code.google.com/p/gql4j/