SQLServerDataSourceObjectFactory Class
Represents an object factory to materialize data sources from the Java Naming and Directory Interface (JNDI).
Package: com.microsoft.sqlserver.jdbc
Extends: java.lang.Object
Implements: javax.naming.spi.ObjectFactory
Syntax
public class SQLServerDataSourceObjectFactory
Remarks
This method is inherited by all the data source classes. As part of its support for the Referenceable interface, Microsoft JDBC Driver for SQL Server exposes this class that implements an ObjectFactory. Java Application Servers will call getReference on a data source class, and this will create a Reference object that internally uses the class name as its class factory.
When the Java Application Server has to dereference the Reference object, it creates an instance of the SQLServerDataSourceObjectFactory object and calls the getObjectInstance method, passing in the Reference object, to retrieve the data source instance.
See Also
SQLServerDataSourceObjectFactory Members
JDBC Driver API Reference
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho