1 16 17 package org.springframework.jdbc.core; 18 19 28 public class ResultSetSupportingSqlParameter extends SqlParameter { 29 30 private ResultSetExtractor resultSetExtractor; 31 32 private RowCallbackHandler rowCallbackHandler; 33 34 private RowMapper rowMapper; 35 36 37 42 public ResultSetSupportingSqlParameter(String name, int sqlType) { 43 super(name, sqlType); 44 } 45 46 52 public ResultSetSupportingSqlParameter(String name, int sqlType, String typeName) { 53 super(name, sqlType, typeName); 54 } 55 56 62 public ResultSetSupportingSqlParameter(String name, int sqlType, ResultSetExtractor rse) { 63 super(name, sqlType); 64 this.resultSetExtractor = rse; 65 } 66 67 73 public ResultSetSupportingSqlParameter(String name, int sqlType, RowCallbackHandler rch) { 74 super(name, sqlType); 75 this.rowCallbackHandler = rch; 76 } 77 78 84 public ResultSetSupportingSqlParameter(String name, int sqlType, RowMapper rm) { 85 super(name, sqlType); 86 this.rowMapper = rm; 87 } 88 89 90 94 public boolean isResultSetSupported() { 95 return (this.resultSetExtractor != null || this.rowCallbackHandler != null || this.rowMapper != null); 96 } 97 98 101 public ResultSetExtractor getResultSetExtractor() { 102 return resultSetExtractor; 103 } 104 105 108 public RowCallbackHandler getRowCallbackHandler() { 109 return this.rowCallbackHandler; 110 } 111 112 115 public RowMapper getRowMapper() { 116 return this.rowMapper; 117 } 118 119 } 120 | Popular Tags |