Issue with using teradata jdbc driver to execute stored procedure.

Database
Fan

Issue with using teradata jdbc driver to execute stored procedure.

Hi,i'm calling a stored procedure using teradata jdbc driver 12.0.0.104.Now i know there is one way below to execute a stored procedure.

CallableStatement cstmt = con.prepareCall(
"{call getTestData('001', ?)}");

cstmt.registerOutParameter(1,java.sql.Types.Integer);
cstmt.execute();
String retVal = cstmt.getString(1);

I want to confirm whether it's the only way to execute a stored procedure.And if there are some other ways tell me plz.

thanks,best regards.

BeingS