⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oracle.jdbc.pool.oracledatasource.html

📁 Oracle JDBC 的javaDoc
💻 HTML
📖 第 1 页 / 共 2 页
字号:
 public synchronized String getTNSEntryName()</pre><dl>  <dd> Get the TNS entry name for this instance if set. Returns nullif not set.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> TNS entry name  </dl></dd></dl><a name="setDataSourceName(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setDataSourceName"><b>setDataSourceName</b></a><pre> public synchronized void setDataSourceName(String dsname)</pre><dl>  <dd> Set the DataSourceName. Users need not set this as it will be setset automatically depending upon the instance created. ReturnsOracleDataSource for an OracleDataSource instance. ReturnsOracleXADataSource for an OracleXADataSource instance. <p><p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> dsname - DataSource Name to be set.  </dl></dd></dl><a name="getDataSourceName()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDataSourceName"><b>getDataSourceName</b></a><pre> public synchronized String getDataSourceName()</pre><dl>  <dd> Get the datasource name for this instance if set. Returns nullif not set.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> DaraSource name  </dl></dd></dl><a name="getDatabaseName()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDatabaseName"><b>getDatabaseName</b></a><pre> public synchronized String getDatabaseName()</pre><dl>  <dd> Get the name of the database set on this DataSource instance.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> database name set on this instance or null if not set.  </dl></dd></dl><a name="setDatabaseName(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setDatabaseName"><b>setDatabaseName</b></a><pre> public synchronized void setDatabaseName(String dsname)</pre><dl>  <dd> Set the name of a particular database on a server. In Oracle'sjargon this is called SID (System Identifier). <p>If URL is set, this property will be ignored.<p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> dsname - database name to be set.  </dl></dd></dl><a name="setServerName(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setServerName"><b>setServerName</b></a><pre> public synchronized void setServerName(String sn)</pre><dl>  <dd> Set the name of the Server on which database is  running.If URL is set, this property will be ignored.<p><p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> sn - server/host name to be set.  </dl></dd></dl><a name="getServerName()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getServerName"><b>getServerName</b></a><pre> public synchronized String getServerName()</pre><dl>  <dd> Get the name of the server on which database is  running.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> server name set on this instance or null if not set.  </dl></dd></dl><a name="setURL(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setURL"><b>setURL</b></a><pre> public synchronized void setURL(String url)</pre><dl>  <dd> Set the URL from which connections have to be obtained. If URL isset all other properties like databasename, servername, portNumber,network protocol, tnsentry, and driver Type will be ignored.<p><p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> url - URL to be set.  </dl></dd></dl><a name="getURL()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getURL"><b>getURL</b></a><pre> public synchronized String getURL() throws SQLException</pre><dl>  <dd> Get the URL for this datasource. Will return the defaultvalue "jdbc:oracle:oci8:@" if not set before.<p><p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> s URL for this datasource.  </dl></dd></dl><a name="setUser(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setUser"><b>setUser</b></a><pre> public synchronized void setUser(String user)</pre><dl>  <dd> Set the user name with which connections have to be obtained.<p><p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> user - Username to be set.  </dl></dd></dl><a name="getUser()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getUser"><b>getUser</b></a><pre> public synchronized String getUser()</pre><dl>  <dd> Get the user name for this datasource. Will return the defaultvalue ("scott") if not set before.<p></dl><a name="setPassword(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setPassword"><b>setPassword</b></a><pre> public synchronized void setPassword(String pd)</pre><dl>  <dd> Set the password with which connections have to be obtained.The default value is "tiger".<p><p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> pd - Passowrd to be set.  </dl></dd></dl><a name="getDescription()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDescription"><b>getDescription</b></a><pre> public synchronized String getDescription()</pre><dl>  <dd> Get the Desciption of this data source.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> Description that was set or will return null if not set.  </dl></dd></dl><a name="setDescription(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setDescription"><b>setDescription</b></a><pre> public synchronized void setDescription(String des)</pre><dl>  <dd> Set the Desciption for this data source instance.<p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> des - Desciption to be set.  </dl></dd></dl><a name="getDriverType()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDriverType"><b>getDriverType</b></a><pre> public synchronized String getDriverType()</pre><dl>  <dd> Get the Oracle JDBC driver type set for this datasource instance<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> Driver Type that was set or null if not set.  </dl></dd></dl><a name="setDriverType(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setDriverType"><b>setDriverType</b></a><pre> public synchronized void setDriverType(String dt)</pre><dl>  <dd> Set the JDBC driver type. Possible values are thin, oci8, and kprb.If URL is set, this property will be ignored. <p>If set to kprb, nothing else is needed to open a connection. This ismeant for Server side JDBC driver when running inside server. <p>If set to thin, serverName, portNumber and databaseName are need toopen a connection. <p>If set to oci, and network protocol is set to IPC or TNSEntryNameis set then nothing else is needed. If not, serverName, portNumber and databaseName have to be provided. <p><p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> dt - Driver Type tp be set.  </dl></dd></dl><a name="getNetworkProtocol()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getNetworkProtocol"><b>getNetworkProtocol</b></a><pre> public synchronized String getNetworkProtocol()</pre><dl>  <dd> Get the network protocol set.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> network protocol that was set or null if not.  </dl></dd></dl><a name="setNetworkProtocol(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setNetworkProtocol"><b>setNetworkProtocol</b></a><pre> public synchronized void setNetworkProtocol(String np)</pre><dl>  <dd> Set the network protocol for the connections. Default is "tcp".Can be set to all possible protocols Net8 supports. Only needed forJDBC OCI driver. <p><p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> np - set the network protocol to be used.  </dl></dd></dl><a name="setPortNumber(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setPortNumber"><b>setPortNumber</b></a><pre> public synchronized void setPortNumber(int pn)</pre><dl>  <dd> Set the port number where a server is listening for requests.Not required when URL is set.<p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> pn - port number on which server is listening  </dl></dd></dl><a name="getPortNumber()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getPortNumber"><b>getPortNumber</b></a><pre> public synchronized int getPortNumber()</pre><dl>  <dd> Get the port number on which server is listening for requests.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> port number if set or null if not set.  </dl></dd></dl><a name="getReference()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getReference"><b>getReference</b></a><pre> public Reference getReference() throws NamingException</pre><hr><pre><a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-oracle.jdbc.pool.html">This Package</a>  <a href="oracle.jdbc.pool.OracleConnectionPoolDataSource.html#_top_">Previous</a>  <a href="oracle.jdbc.pool.OracleDataSourceFactory.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -