java.sql.CallableStatement
java.sql.CallableStatement是存储过程执行接口。
| 
       方法名  | 
     
       返回值类型  | 
     
       支持JDBC4  | 
     
       支持计划外ALT  | 
    
|---|---|---|---|
| 
       getArray(int parameterIndex)  | 
     
       Array  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getBigDecimal(int parameterIndex)  | 
     
       BigDecimal  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getBlob(int parameterIndex)  | 
     
       Blob  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getBoolean(int parameterIndex)  | 
     
       boolean  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getByte(int parameterIndex)  | 
     
       byte  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getBytes(int parameterIndex)  | 
     
       byte[]  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getClob(int parameterIndex)  | 
     
       Clob  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getDate(int parameterIndex)  | 
     
       Date  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getDate(int parameterIndex, Calendar cal)  | 
     
       Date  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getDouble(int parameterIndex)  | 
     
       double  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getFloat(int parameterIndex)  | 
     
       float  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getInt(int parameterIndex)  | 
     
       int  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getLong(int parameterIndex)  | 
     
       long  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getObject(int parameterIndex)  | 
     
       Object  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getObject(int parameterIndex, Class<T> type)  | 
     
       Object  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getShort(int parameterIndex)  | 
     
       short  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getSQLXML(int parameterIndex)  | 
     
       SQLXML  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getString(int parameterIndex)  | 
     
       String  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getNString(int parameterIndex)  | 
     
       String  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getTime(int parameterIndex)  | 
     
       Time  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getTime(int parameterIndex, Calendar cal)  | 
     
       Time  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getTimestamp(int parameterIndex)  | 
     
       Timestamp  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       getTimestamp(int parameterIndex, Calendar cal)  | 
     
       Timestamp  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       registerOutParameter(int parameterIndex, int type)  | 
     
       void  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       registerOutParameter(int parameterIndex, int sqlType, int type)  | 
     
       void  | 
     
       Yes  | 
     
       Yes  | 
    
| 
       wasNull()  | 
     
       boolean  | 
     
       Yes  | 
     
       Yes  | 
    
 
  - 不允许含有OUT参数的语句执行批量操作。
 - 以下方法是从java.sql.Statement继承而来:close、execute、executeQuery、executeUpdate、getConnection、getResultSet、getUpdateCount、isClosed、setMaxRows、setFetchSize。
 - 以下方法是从java.sql.PreparedStatement继承而来:addBatch、clearParameters、execute、executeQuery、executeUpdate、getMetaData、setBigDecimal、setBoolean、setByte、setBytes、setDate、setDouble、setFloat、setInt、setLong、setNull、setObject、setString、setTime、setTimestamp。
 - registerOutParameter(int parameterIndex, int sqlType, int type)方法仅用于注册复合数据类型,其它类型不支持。