SqlReturnUpdateCount.java :  » J2EE » spring-framework-3.0.0 » org » springframework » jdbc » core » Java Open Source

Java Open Source » J2EE » spring framework 3.0.0 
spring framework 3.0.0 » org » springframework » jdbc » core » SqlReturnUpdateCount.java
package org.springframework.jdbc.core;

import java.sql.Types;

/**
 * Represents a returned update count from a stored procedure call.
 *
 * <p>Returned update counts - like all stored procedure
 * parameters - <b>must</b> have names.
 *
 * @author Thomas Risberg
 */
public class SqlReturnUpdateCount extends SqlParameter {

  /**
   * Create a new instance of the {@link SqlReturnUpdateCount} class.
   * @param name name of the parameter, as used in input and output maps
   */
  public SqlReturnUpdateCount(String name) {
    super(name, Types.INTEGER);
  }


  /**
   * Return whether this parameter holds input values that should be set
   * before execution even if they are <code>null</code>.
   * <p>This implementation always returns <code>false</code>.
   */
  @Override
  public boolean isInputValueProvided() {
    return false;
  }

  /**
   * Return whether this parameter is an implicit return parameter used during the
   * results preocessing of the CallableStatement.getMoreResults/getUpdateCount.
   * <p>This implementation always returns <code>true</code>.
   */
  @Override
  public boolean isResultsParameter() {
    return true;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.