I am not sure exactly what you want, but you can execute CLP commands from java. There is a sample of how to to it located at: http://www.developer.ibm.com/tech/sampdb2.html
it is "runstats.zip". Basically you run the java application from the DB2 command window. This allows for "executing" the CLP commands from the java app.