Documentation Home
MySQL Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 5.0Mb
PDF (A4) - 4.9Mb
EPUB - 1.9Mb
HTML Download (TGZ) - 1.9Mb
HTML Download (Zip) - 1.9Mb SessionFactory

SessionFactory represents a cluster. Synopsis
 public interface SessionFactory {
// Public Methods  public abstract void close();
  public abstract Session getSession();
  public abstract Session getSession(Map properties);

Figure 4.19 SessionFactory Class

SessionFactory Class close()
public abstract void close();

Close this session factory. Release all resources. getSession()
public abstract Session getSession();

Create a Session to use with the cluster, using all the properties of the SessionFactory.



the session getSession(Map)
public abstract Session getSession(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.



overriding some properties for this session


the session

User Comments
Sign Up Login You must be logged in to post a comment.