1 21 22 package org.apache.derby.iapi.sql; 23 24 import org.apache.derby.iapi.error.StandardException; 25 26 import org.apache.derby.iapi.types.DataTypeDescriptor; 27 import org.apache.derby.iapi.types.DataValueDescriptor; 28 29 37 public interface ParameterValueSet 38 { 39 44 void initialize(DataTypeDescriptor[] types); 45 46 47 51 void setParameterMode(int position, int mode); 52 53 59 69 void registerOutParameter(int parameterIndex, int sqlType, int scale) 70 throws StandardException; 71 72 78 84 void clearParameters(); 85 86 91 public int getParameterCount(); 92 93 99 public DataValueDescriptor getParameter( int position ) throws StandardException; 100 101 102 111 public DataValueDescriptor getParameterForSet( int position ) throws StandardException; 112 113 118 void setParameterAsObject(int parameterIndex, Object value) throws StandardException; 119 120 126 public DataValueDescriptor getParameterForGet( int position ) throws StandardException; 127 128 135 boolean allAreSet(); 136 137 142 ParameterValueSet getClone(); 143 144 156 void validate() throws StandardException; 157 158 168 public boolean hasReturnOutputParameter(); 169 170 178 public boolean checkNoDeclaredOutputParameters(); 179 180 191 public void transferDataValues(ParameterValueSet pvstarget) throws StandardException; 192 193 200 public short getParameterMode(int parameterIndex); 201 202 203 209 DataValueDescriptor getReturnValueForSet() throws StandardException; 210 211 218 public int getScale(int parameterIndex); 219 220 227 public int getPrecision(int parameterIndex); 228 229 230 } 231 232 | Popular Tags |