1 /* 2 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 3 * The software in this package is published under the terms of the CPAL v1.0 4 * license, a copy of which has been included with this distribution in the 5 * LICENSE.txt file. 6 */ 7 package org.mule.transport.jdbc.sqlstrategy; 8 9 /** 10 * Implements strategy for executing simple stored procedures. Only IN parameters 11 * can be used and no OUT values can be returned from the stored procedure. 12 */ 13 public class CallableSqlStatementStrategy extends SimpleUpdateSqlStatementStrategy 14 { 15 protected static final String STORED_PROCEDURE_PREFIX = "{ "; 16 protected static final String STORED_PROCEDURE_SUFFIX = " }"; 17 18 @Override 19 protected String escapeStatement(String statement) 20 { 21 return STORED_PROCEDURE_PREFIX + statement + STORED_PROCEDURE_SUFFIX; 22 } 23 }