Examples of CallMetaDataContext


Examples of org.springframework.jdbc.core.metadata.CallMetaDataContext

        "specified as a negative number.");
    Assert.state(refCursorPosition == 0 || refCursorPosition > 0,
        "invalid refCursorPosition specified as " + refCursorPosition + "; there are " +
            parameters.length + " parameters defined.");

    CallMetaDataContext callContext = new CallMetaDataContext();
    callContext.setAccessCallParameterMetaData(false);
    callContext.setProcedureName(procedureName);
    callContext.setFunction(function);
    callContext.initializeMetaData(getDataSource());
    callContext.processParameters(Arrays.asList(parameters));
    SqlParameter cursorParameter = callContext.createReturnResultSetParameter("cursor", rowMapper);
    this.callString = callContext.createCallString();

    log.debug("Call string is: " + callString);

    int cursorSqlType = Types.OTHER;
    if (function) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.