This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to tag REL7_3_4
in repository libpostgresql-jdbc-java.

commit b8641c4adaa369f09d23c0ccab70f541a75a69f4
Author: Dave Cramer <[email protected]>
Date:   Tue Apr 8 17:26:39 2003 +0000

    added addDataType to the interface
---
 org/postgresql/PGConnection.java | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/org/postgresql/PGConnection.java b/org/postgresql/PGConnection.java
index a66eca8..617424d 100644
--- a/org/postgresql/PGConnection.java
+++ b/org/postgresql/PGConnection.java
@@ -68,6 +68,28 @@ public interface PGConnection
         */
        public Object getObject(String type, String value) throws SQLException;
 
+       /*
+        * This allows client code to add a handler for one of org.postgresql's
+        * more unique data types.
+        *
+        * <p><b>NOTE:</b> This is not part of JDBC, but an extension.
+        *
+        * <p>The best way to use this is as follows:
+        *
+        * <p><pre>
+        * ...
+        * 
((org.postgresql.PGConnection)myconn).addDataType("mytype","my.class.name");
+        * ...
+        * </pre>
+        *
+        * <p>where myconn is an open Connection to org.postgresql.
+        *
+        * <p>The handling class must extend org.postgresql.util.PGobject
+        *
+        * @see org.postgresql.util.PGobject
+        */
+       public void addDataType(String type, String name);
+
 
        /*
         * This method returns any notifications that have been received

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to