Frequently seen method

getObjectInstance 方法 (SQLServerDataSourceObjectFactory)

Retrieve an instance of the specified data source object.

grammar:

public java.lang.Object getObjectInstance(java.lang.Object ref,  
                                          javax.naming.Name name,  
                                          javax.naming.Context c,  
                                          java.util.Hashtable h)

parameter:

ref : Object value.

name : The name of the object.

c : Relative to the context of the specified name.

h : The environment used when creating the object.

return value:

Object value.

abnormal:

java.sql.SQLException

annotation:

This getObjectInstance method is specified by the getObjectInstance method in the javax.naming.spi.ObjectFactory interface.

 

Reference link:

https://docs.microsoft.com/zh-cn/sql/connect/jdbc/reference/getobjectinstance-method-sqlserverdatasourceobjectfactory?view=sql-server-ver15

Guess you like

Origin blog.csdn.net/Candyys/article/details/108837589