Java Code Examples for java.sql.CallableStatement.setQueryTimeout()

The following are Jave code examples for showing how to use setQueryTimeout() of the java.sql.CallableStatement class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: spwrap   File: StatementProps.java   Source Code and License Vote up 5 votes
public Void apply(CallableStatement input, Object ... args) {
    if (!skip){
        log.debug("applying {} on input CallableStatement", this);
        try {
            input.setQueryTimeout(this.queryTimeout);
        } catch (SQLException e) {
            throw new CallException(e);
        }
    }
    return null;
}