1. /*
  2. * Copyright 2002-2004 the original author or authors.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.springframework.jdbc.core;
  17. /**
  18. * Subclass of SqlParameter to represent an output parameter.
  19. * No additional properties: instanceof will be used to check
  20. * for such types.
  21. *
  22. * <p>Output parameters - like all stored procedure parameters -
  23. * must have names.
  24. *
  25. * @author Rod Johnson
  26. * @author Thomas Risberg
  27. * @author Juergen Hoeller
  28. */
  29. public class SqlOutParameter extends ResultSetSupportingSqlParameter {
  30. /**
  31. * Create a new SqlOutParameter, supplying name and SQL type.
  32. * @param name name of the parameter, as used in input and output maps
  33. * @param type SQL type of the parameter according to java.sql.Types
  34. */
  35. public SqlOutParameter(String name, int type) {
  36. super(name, type);
  37. }
  38. public SqlOutParameter(String name, int type, String typeName) {
  39. super(name, type, typeName);
  40. }
  41. public SqlOutParameter(String name, int type, ResultSetExtractor rse) {
  42. super(name, type, rse);
  43. }
  44. public SqlOutParameter(String name, int type, RowCallbackHandler rch) {
  45. super(name, type, rch);
  46. }
  47. public SqlOutParameter(String name, int type, RowMapper rm) {
  48. super(name, type, rm);
  49. }
  50. public SqlOutParameter(String name, int type, RowMapper rm, int rowsExpected) {
  51. super(name, type, rm, rowsExpected);
  52. }
  53. }