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


4.3.1.20 SessionFactory

SessionFactory represents a cluster.

4.3.1.20.1 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

4.3.1.20.2 close()
public abstract void close();

Close this session factory. Release all resources.

4.3.1.20.3 getSession()
public abstract Session getSession();

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

Parameters

return

the session

4.3.1.20.4 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.

Parameters

properties

overriding some properties for this session

return

the session


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