共用方式為


getObjectInstance Method (SQLServerDataSourceObjectFactory)

Retrieves an instance of the specified data source object.

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

參數

ref

An Object value.

name

The name of the object.

c

The context relative to the specified name.

h

The environment that is used in creating the object.

傳回值

An Object value.

例外狀況

java.sql.SQLException

備註

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

另請參閱

參考

SQLServerDataSourceObjectFactory Class

概念

SQLServerDataSourceObjectFactory Methods
SQLServerDataSourceObjectFactory Members