public class MysqlStatementCreator extends java.lang.Object implements CallableStatementCreator
Depending on which version of the mysql jdbc driver you use, you can either use MysqlStatementCreator
or
DefaultStatementCreator
In the adapter configuration file this class is aliased as mysql-statement-creator which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
MysqlStatementCreator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createCall(java.lang.String procedureName,
int parameterCount)
Creates a String of
CALL my_stored_procedure(?, ?, ?); which is valid for mysql-connector-5. |
public java.lang.String createCall(java.lang.String procedureName, int parameterCount)
CALL my_stored_procedure(?, ?, ?);
which is valid for mysql-connector-5.createCall
in interface CallableStatementCreator
procedureName
- the procedure nameparameterCount
- The number of parameters for this stored procedure call.{ CALL my_stored_procedure(?, ?, ?); }
depending on the database.CallableStatementCreator.createCall(java.lang.String, int)