doc-exports/docs/dws/dev/dws_04_0112.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:24:04 +00:00

66 lines
5.1 KiB
HTML

<a name="EN-US_TOPIC_0000001233761799"></a><a name="EN-US_TOPIC_0000001233761799"></a>
<h1 class="topictitle1">javax.sql.DataSource</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001233761799__a417e31c57cff4a079b3c609640126b21">This section describes <strong id="EN-US_TOPIC_0000001233761799__b842352706165334">javax.sql.DataSource</strong>, the interface for data sources.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233761799__t03805d292ad14f76863404bf4782ad87" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Support status for javax.sql.DataSource</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233761799__r2e6c939de1ec436d923e074c96ad0240"><th align="left" class="cellrowborder" valign="top" width="59.160000000000004%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001233761799__ab088ada33ac94aac8f27b828120b9cc4">Method Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.23%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001233761799__ae24bb23fbc8246a1af21fb7629695d0b">Return Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.61%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001233761799__a44a996da214847bca012d4d930a00b45">Support JDBC 4</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233761799__rf5e7868f67624ccba53ccfa22b66e467"><td class="cellrowborder" valign="top" width="59.160000000000004%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761799__abc9a66c22ef3431aa3da3a85fd1acced">getConneciton()</p>
</td>
<td class="cellrowborder" valign="top" width="21.23%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761799__a1211ad06745c494e88ecf0d9788c3067">Connection</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761799__a723b162ede344942ae56d4673c9fce0d">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761799__r0362ae3a16b44064ab267d9db8d9c7b1"><td class="cellrowborder" valign="top" width="59.160000000000004%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761799__a1779ab4a9b484370a07955e3766c63a9">getConnection(String username,String password)</p>
</td>
<td class="cellrowborder" valign="top" width="21.23%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761799__aa91e89cbed604f3594274826c5619527">Connection</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761799__af597f2183f1d41d5a5b2cd15ef3db8b9">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761799__r17a0f10f954d47ed8a9bdeeaff263159"><td class="cellrowborder" valign="top" width="59.160000000000004%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761799__a59f4e918575a42b3aaa4d6e002ea21a1">getLoginTimeout()</p>
</td>
<td class="cellrowborder" valign="top" width="21.23%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761799__a20e11c032e9144fa8f46a7abdbe36e9b">int</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761799__a0b2fd10faecd4344b895552561642a3f">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761799__re8e244f881144227ab9f39b476af5818"><td class="cellrowborder" valign="top" width="59.160000000000004%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761799__a8917e0e671f346c98acc4c2baa1fe47f">getLogWriter()</p>
</td>
<td class="cellrowborder" valign="top" width="21.23%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761799__af67b90f96554430bbda98140fa90c6dd">PrintWriter</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761799__a4e27a7f23c8244f5803e89b6c77e5577">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761799__r315945f2f66e459b905545bf035956a8"><td class="cellrowborder" valign="top" width="59.160000000000004%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761799__aebcd28be04804af097dd930b8f50bca6">setLoginTimeout(int seconds)</p>
</td>
<td class="cellrowborder" valign="top" width="21.23%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761799__a2a02a5a8f9d044eeabcf4c6f6b27159e">void</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761799__ae6f90b06115a4c529a3d02f7d7dcda23">Yes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761799__r8c3d85bb1ea241ed9fcb9df53153fefa"><td class="cellrowborder" valign="top" width="59.160000000000004%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761799__ad7b8cc5c1dfc4e1da84e794d7693fb68">setLogWriter(PrintWriter out)</p>
</td>
<td class="cellrowborder" valign="top" width="21.23%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761799__a1d9484f4efae45009bd690db59d25240">void</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761799__aeb3b7bccd4094545bd553e0fe2e0a345">Yes</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0102.html">JDBC Interface Reference</a></div>
</div>
</div>