01: /*-------------------------------------------------------------------------
02: *
03: * Copyright (c) 2004-2005, PostgreSQL Global Development Group
04: *
05: * IDENTIFICATION
06: * $PostgreSQL: pgjdbc/org/postgresql/jdbc4/Jdbc4CallableStatement.java,v 1.1 2006/06/08 10:34:52 jurka Exp $
07: *
08: *-------------------------------------------------------------------------
09: */
10: package org.postgresql.jdbc4;
11:
12: import java.sql.*;
13: import java.util.Map;
14:
15: class Jdbc4CallableStatement extends Jdbc4PreparedStatement implements
16: CallableStatement {
17: Jdbc4CallableStatement(Jdbc4Connection connection, String sql,
18: int rsType, int rsConcurrency, int rsHoldability)
19: throws SQLException {
20: super (connection, sql, true, rsType, rsConcurrency,
21: rsHoldability);
22: if (!connection.haveMinimumServerVersion("8.1")
23: || connection.getProtocolVersion() == 2) {
24: // if there is no out parameter before the function determined by modifyJdbcCall then do not
25: // set adjustIndex to true
26: adjustIndex = outParmBeforeFunc;
27: }
28: }
29:
30: public Object getObject(int i, Map<String, Class<?>> map)
31: throws SQLException {
32: return getObjectImpl(i, map);
33: }
34:
35: public Object getObject(String s, Map<String, Class<?>> map)
36: throws SQLException {
37: return getObjectImpl(s, map);
38: }
39:
40: }
|