IConnectionPoolDataSource.GetPooledConnection(String, String) Method

Definition

Attempts to establish a physical database connection that can be used as a pooled connection.

[Android.Runtime.Register("getPooledConnection", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/sql/PooledConnection;", "GetGetPooledConnection_Ljava_lang_String_Ljava_lang_String_Handler:Javax.Sql.IConnectionPoolDataSourceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Javax.Sql.IPooledConnection? GetPooledConnection (string? user, string? password);
[<Android.Runtime.Register("getPooledConnection", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/sql/PooledConnection;", "GetGetPooledConnection_Ljava_lang_String_Ljava_lang_String_Handler:Javax.Sql.IConnectionPoolDataSourceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetPooledConnection : string * string -> Javax.Sql.IPooledConnection

Parameters

user
String

the database user on whose behalf the connection is being made

password
String

the user's password

Returns

a PooledConnection object that is a physical connection to the database that this ConnectionPoolDataSource object represents

Attributes

Exceptions

if there is a problem accessing the database.

Remarks

Attempts to establish a physical database connection that can be used as a pooled connection.

Added in 1.4.

Java documentation for javax.sql.ConnectionPoolDataSource.getPooledConnection(java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to