|
9 | 9 | * Copyright (c) 2003, PostgreSQL Global Development Group
|
10 | 10 | *
|
11 | 11 | * IDENTIFICATION
|
12 |
| - * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/PGConnection.java,v 1.4 2003/03/07 18:39:41 barry Exp $ |
| 12 | + * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/PGConnection.java,v 1.5 2003/04/14 10:39:51 davec Exp $ |
13 | 13 | *
|
14 | 14 | *-------------------------------------------------------------------------
|
15 | 15 | */
|
@@ -44,6 +44,28 @@ public interface PGConnection
|
44 | 44 | */
|
45 | 45 | publicFastpathgetFastpathAPI()throwsSQLException;
|
46 | 46 |
|
| 47 | +/* |
| 48 | + * This allows client code to add a handler for one of org.postgresql's |
| 49 | + * more unique data types. |
| 50 | + * |
| 51 | + * <p><b>NOTE:</b> This is not part of JDBC, but an extension. |
| 52 | + * |
| 53 | + * <p>The best way to use this is as follows: |
| 54 | + * |
| 55 | + * <p><pre> |
| 56 | + * ... |
| 57 | + * ((org.postgresql.PGConnection)myconn).addDataType("mytype","my.class.name"); |
| 58 | + * ... |
| 59 | + * </pre> |
| 60 | + * |
| 61 | + * <p>where myconn is an open Connection to org.postgresql. |
| 62 | + * |
| 63 | + * <p>The handling class must extend org.postgresql.util.PGobject |
| 64 | + * |
| 65 | + * @see org.postgresql.util.PGobject |
| 66 | + */ |
| 67 | +publicvoidaddDataType(Stringtype,Stringname); |
| 68 | + |
47 | 69 |
|
48 | 70 | /** @deprecated */
|
49 | 71 | publicEncodinggetEncoding()throwsSQLException;
|
|