diff options
author | Dave Cramer <davec@fastcrypt.com> | 2003-04-14 10:39:51 +0000 |
---|---|---|
committer | Dave Cramer <davec@fastcrypt.com> | 2003-04-14 10:39:51 +0000 |
commit | 810e0b982b299e2ed4eb58c9f478e25297d7d7bd (patch) | |
tree | e4a56d222aee155188e3c8571d4f3df46f0cba18 /src | |
parent | 6ff82c67428f0c74247b97dbe4654955e257aab1 (diff) | |
download | postgresql-810e0b982b299e2ed4eb58c9f478e25297d7d7bd.tar.gz postgresql-810e0b982b299e2ed4eb58c9f478e25297d7d7bd.zip |
exposed the addDataType method to the PGConnection, allows users to add datatypes
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/PGConnection.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/PGConnection.java b/src/interfaces/jdbc/org/postgresql/PGConnection.java index 1a10347a18f..e2eb81dc447 100644 --- a/src/interfaces/jdbc/org/postgresql/PGConnection.java +++ b/src/interfaces/jdbc/org/postgresql/PGConnection.java @@ -9,7 +9,7 @@ * Copyright (c) 2003, PostgreSQL Global Development Group * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/PGConnection.java,v 1.4 2003/03/07 18:39:41 barry Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/PGConnection.java,v 1.5 2003/04/14 10:39:51 davec Exp $ * *------------------------------------------------------------------------- */ @@ -44,6 +44,28 @@ public interface PGConnection */ public Fastpath getFastpathAPI() 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); + /** @deprecated */ public Encoding getEncoding() throws SQLException; |