summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/postgresql/CallableStatement.java
diff options
context:
space:
mode:
authorMarc G. Fournier1997-08-16 20:51:53 +0000
committerMarc G. Fournier1997-08-16 20:51:53 +0000
commitff246d7b64e41278cf1ac68a9245529a29dc98eb (patch)
tree0523ee20e74c251e39588913c3927d70d168264c /src/interfaces/jdbc/postgresql/CallableStatement.java
parentfd86ae151aaf3e1e444a8a990e0ccb35c5dc2108 (diff)
Bring in Adrian's JDBC driver as an interface
Diffstat (limited to 'src/interfaces/jdbc/postgresql/CallableStatement.java')
-rw-r--r--src/interfaces/jdbc/postgresql/CallableStatement.java126
1 files changed, 126 insertions, 0 deletions
diff --git a/src/interfaces/jdbc/postgresql/CallableStatement.java b/src/interfaces/jdbc/postgresql/CallableStatement.java
new file mode 100644
index 00000000000..ff7ec7c26f2
--- /dev/null
+++ b/src/interfaces/jdbc/postgresql/CallableStatement.java
@@ -0,0 +1,126 @@
+package postgresql;
+
+import java.math.*;
+import java.sql.*;
+
+/**
+ * @version 1.0 15-APR-1997
+ * @author <A HREF="mailto:[email protected]">Adrian Hall</A>
+ *
+ * CallableStatement is used to execute SQL stored procedures.
+ *
+ * JDBC provides a stored procedure SQL escape that allows stored procedures
+ * to be called in a standard way for all RDBMS's. This escape syntax has
+ * one form that includes a result parameter and one that does not. If used,
+ * the result parameter must be generated as an OUT parameter. The other
+ * parameters may be used for input, output or both. Parameters are refered
+ * to sequentially, by number. The first parameter is 1.
+ *
+ * <PRE>
+ * {?= call <procedure-name>[<arg1>,<arg2>, ...]}
+ * {call <procedure-name>[<arg1>,<arg2>, ...]}
+ * </PRE>
+ *
+ * IN parameters are set using the set methods inherited from
+ * PreparedStatement. The type of all OUT parameters must be registered
+ * prior to executing the stored procedure; their values are retrieved
+ * after execution via the get methods provided here.
+ *
+ * A CallableStatement may return a ResultSet or multiple ResultSets. Multiple
+ * ResultSets are handled using operations inherited from Statement.
+ *
+ * For maximum portability, a call's ResultSets and update counts should be
+ * processed prior to getting the values of output parameters.
+ *
+ * @see java.sql.Connection#prepareCall
+ * @see java.sql.ResultSet
+ * @see java.sql.CallableStatement
+ */
+public class CallableStatement implements java.sql.CallableStatement
+{
+ public void registerOutParameter (int paramterIndex, int sqlType) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public void registerOutParameter (int parameterIndex, int sqlType, int scale) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public boolean wasNull () throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public String getString (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public boolean getBoolean (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public byte getByte (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public short getShort (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public int getInt (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public long getLong (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public float getFloat (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public double getDouble (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public BigDecimal getBigDecimal (int parameterIndex, int scale) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public byte[] getBytes (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public Date getDate (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public Time getTime (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public Timestamp getTimestamp (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+ public Object getObject (int parameterIndex) throws SQLException
+ {
+ // XXX-Not Implemented
+ }
+
+}