mirror of
https://github.com/postgres/postgres.git
synced 2025-11-28 11:44:57 +03:00
added addDataType to the interface
This commit is contained in:
@@ -7,7 +7,7 @@ import org.postgresql.core.Encoding;
|
|||||||
import org.postgresql.fastpath.Fastpath;
|
import org.postgresql.fastpath.Fastpath;
|
||||||
import org.postgresql.largeobject.LargeObjectManager;
|
import org.postgresql.largeobject.LargeObjectManager;
|
||||||
|
|
||||||
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/PGConnection.java,v 1.3 2002/09/06 21:23:05 momjian Exp $
|
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/PGConnection.java,v 1.3.2.1 2003/04/08 17:26:39 davec Exp $
|
||||||
* This interface defines PostgreSQL extentions to the java.sql.Connection interface.
|
* This interface defines PostgreSQL extentions to the java.sql.Connection interface.
|
||||||
* Any java.sql.Connection object returned by the driver will also implement this
|
* Any java.sql.Connection object returned by the driver will also implement this
|
||||||
* interface
|
* interface
|
||||||
@@ -68,6 +68,28 @@ public interface PGConnection
|
|||||||
*/
|
*/
|
||||||
public Object getObject(String type, String value) throws SQLException;
|
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
|
* This method returns any notifications that have been received
|
||||||
|
|||||||
Reference in New Issue
Block a user