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.sql.conn.LanguageConnectionContext; 27 28 import org.apache.derby.iapi.sql.depend.Dependent; 29 import org.apache.derby.iapi.sql.depend.Provider; 30 31 import org.apache.derby.iapi.types.DataTypeDescriptor; 32 import java.sql.Timestamp ; 33 import java.sql.SQLWarning ; 34 35 41 public interface PreparedStatement 42 extends Dependent, Provider 43 { 44 45 65 boolean upToDate() throws StandardException; 66 67 77 void rePrepare(LanguageConnectionContext lcc) 78 throws StandardException; 79 80 94 Activation getActivation(LanguageConnectionContext lcc, boolean scrollable) throws StandardException; 95 96 117 ResultSet execute(Activation activation, 118 boolean rollbackParentContext, 119 long timeoutMillis) 120 throws StandardException; 121 122 126 ResultSet execute(LanguageConnectionContext lcc, 127 boolean rollbackParentContext, 128 long timeoutMillis) 129 throws StandardException; 130 131 141 ResultDescription getResultDescription(); 142 143 148 boolean referencesSessionSchema(); 149 150 159 DataTypeDescriptor[] getParameterTypes(); 160 161 166 String getSource(); 167 168 173 String getSPSName(); 174 175 181 public long getCompileTimeInMillis(); 182 183 188 public long getParseTimeInMillis(); 189 190 195 public long getBindTimeInMillis(); 196 197 202 public long getOptimizeTimeInMillis(); 203 204 209 public long getGenerateTimeInMillis(); 210 211 216 public Timestamp getBeginCompileTimestamp(); 217 218 223 public Timestamp getEndCompileTimestamp(); 224 225 233 boolean isAtomic(); 234 235 238 public SQLWarning getCompileTimeWarnings(); 239 240 } 241 | Popular Tags |