postgresql-42.2.5.jar
登录
|
org.postgresql:postgresql:42.2.5
META-INF
org
postgresql
core
ds
PGSimpleDataSource.java
PGConnectionPoolDataSource.java
PGPooledConnection.java
common
PGPoolingDataSource.java
geometric
jdbc
replication
Driver.java
largeobject
PGStatement.java
PGResultSetMetaData.java
gss
util
PGRefCursorResultSet.java
osgi
ssl
PGConnection.java
jdbc3
PGNotification.java
sspi
fastpath
copy
translation
hostchooser
jdbc2
PGProperty.java
xa
jre8
PGSimpleDataSource.java
清空
类结构
/* * Copyright (c) 2004, PostgreSQL Global Development Group * See the LICENSE file in the project root for more information. */ package org.postgresql.ds; import org.postgresql.ds.common.
BaseDataSource
; import java.io.
IOException
; import java.io.
ObjectInputStream
; import java.io.
ObjectOutputStream
; import java.io.
Serializable
; import java.sql.
SQLException
; import javax.sql.
DataSource
; /** * Simple DataSource which does not perform connection pooling. In order to use the DataSource, you * must set the property databaseName. The settings for serverName, portNumber, user, and password * are optional. Note: these properties are declared in the superclass. * * @author Aaron Mulder (ammulder@chariotsolutions.com) */ public class
PGSimpleDataSource
extends
BaseDataSource
implements
DataSource
,
Serializable
{ /** * Gets a description of this DataSource. */ public
String
getDescription
() { return "Non-Pooling DataSource from " + org.postgresql.util.
DriverInfo
.
DRIVER_FULL_NAME
; } private void
writeObject
(
ObjectOutputStream
out
) throws
IOException
{
writeBaseObject
(
out
); } private void
readObject
(
ObjectInputStream
in
) throws
IOException
,
ClassNotFoundException
{
readBaseObject
(
in
); } public boolean
isWrapperFor
(
Class
<?>
iface
) throws
SQLException
{ return
iface
.
isAssignableFrom
(
getClass
()); } public <T> T
unwrap
(
Class
<T>
iface
) throws
SQLException
{ if (
iface
.
isAssignableFrom
(
getClass
())) { return
iface
.
cast
(this); } throw new
SQLException
("Cannot unwrap to " +
iface
.
getName
()); } }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口