您的位置:首页 > 数据库

PostgreSQL JDBC API

2017-03-24 15:02 288 查看

The PostgreSQL JDBC Interface

Table of Contents

1.
Introduction2.
Setting up the JDBC Driver
Getting the DriverSetting up the Class PathPreparing the Database Server for
JDBCCreating a Database3.
Initializing the Driver
Importing
JDBCLoading the DriverConnecting to the Database
Connection Parameters4.
Using SSL
Configuring the ServerConfiguring the Client
Using SSL without Certificate ValidationCustom SSLSocketFactory5.
Issuing a Query and Processing the Result
Getting results based on a cursorUsing the Statement or PreparedStatement InterfaceUsing the ResultSet InterfacePerforming UpdatesCreating and Modifying Database Objects6.
Calling Stored Functions
Obtaining a ResultSet from a stored function
From a Function Returning SETOF typeFrom a Function Returning a
refcursor7.
Storing Binary Data8.
JDBC escapes
Escape for like escape characterEscape for outer joinsDate-time escapesEscaped scalar functions9.
PostgreSQL™ Extensions to the JDBC
API
Accessing the ExtensionsGeometric Data TypesLarge ObjectsListen / NotifyServer Prepared Statements10.
Using the Driver in a Multithreaded or a Servlet Environment11.
Connection Pools and Data Sources
OverviewApplication Servers: ConnectionPoolDataSourceApplications: DataSourceTomcat setupData Sources and
JNDI12.
Further Reading

List of Tables

8.1.
Supported escaped numeric functions8.2.
Supported escaped string functions8.3.
Supported escaped date/time functions8.4.
Supported escaped misc functions11.1.
ConnectionPoolDataSource Configuration Properties11.2.
DataSource Implementations11.3.
DataSource Configuration Properties11.4.
Additional Pooling DataSource Configuration Properties

List of Examples

5.1.
Processing a Simple Query in JDBC5.2.
Setting fetch size to turn cursors on and off.5.3.
Deleting Rows in JDBC5.4.
Dropping a Table in JDBC6.1.
Calling a built in stored function6.2.
Getting SETOF type values fr
4000
om a function6.3.
Getting refcursor Value From a Function6.4.
Treating refcursor as a cursor name7.1.
Processing Binary Data in JDBC8.1.
Using jdbc escapes9.1.
Using the CIRCLE datatype from JDBC9.2.
Receiving Notifications9.3.
Using server side prepared statements11.1.
DataSource Code Example11.2.
DataSource JNDI Code Example
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息