MySQL NDB Cluster API 开发人员指南 / 第 4 章 MySQL NDB Cluster Connector for Java / 4.3 ClusterJ API 参考 / 4.3.1 com.mysql.clusterj /
4.3.1.23 SessionFactoryService
This interface defines the service to create a SessionFactory from a Map<String, String> of properties.
public interface SessionFactoryService {
// Public Methodspublic abstract SessionFactory getSessionFactory(Map<String, String> props);
}
public abstract SessionFactory getSessionFactory(Map<String, String> props);
Create or get a session factory. If a session factory with the same value for PROPERTY_CLUSTER_CONNECTSTRING has already been created in the VM, the existing factory is returned, regardless of whether other properties of the factory are the same as specified in the Map.
Table 4.74 getSessionFactory(Map<String, String>)
Parameter | Description |
---|---|
props | the properties for the session factory, in which the keys are defined in Constants and the values describe the environment |
return | the session factory |
- See Also
- com.mysql.clusterj.Constants