SessionFactory represents a cluster.
public interface com.mysql.clusterj.SessionFactory {
// Public Methodspublic void close();
public com.mysql.clusterj.Session getSession();
public com.mysql.clusterj.Session getSession(java.util.Map properties);
}
public com.mysql.clusterj.Session getSession();
Create a Session to use with the cluster, using all the properties of the SessionFactory.
Parameters | |
return |
the session |
public com.mysql.clusterj.Session getSession(java.util.Map properties);
Create a session to use with the cluster, overriding some properties. Properties PROPERTY_CLUSTER_CONNECTSTRING, PROPERTY_CLUSTER_DATABASE, and PROPERTY_CLUSTER_MAX_TRANSACTIONS may not be overridden.
Parameters | |
properties |
overriding some properties for this session |
return |
the session |