Static Protected Member Functions |
static< T > Class< T > | getClassForProxy (T object) |
static String | getStringProperty (Map<?,?> props, String propertyName) |
static String | getStringProperty (Map<?,?> props, String propertyName, String defaultValue) |
static String | getRequiredStringProperty (Map<?,?> props, String propertyName) |
static int | getIntProperty (Map<?,?> props, String propertyName, int defaultValue) |
Protected Attributes |
Map<?,?> | props |
Detailed Description
Definition at line 49 of file SessionFactoryImpl.java.
Constructor & Destructor Documentation
com.mysql.clusterj.core.SessionFactoryImpl.SessionFactoryImpl |
( |
Map<?,?> |
props | ) |
|
|
inlineprotected |
Member Function Documentation
synchronized void com.mysql.clusterj.core.SessionFactoryImpl.close |
( |
| ) |
|
|
inline |
static <T> DomainTypeHandler<T> com.mysql.clusterj.core.SessionFactoryImpl.getDomainTypeHandler |
( |
Class< T > |
cls | ) |
|
|
inlinestatic |
Get the DomainTypeHandler for a class. If the handler is not already available, null is returned.
- Parameters
-
cls | the Class for which to get domain type handler |
- Returns
- the DomainTypeHandler or null if not available
Definition at line 316 of file SessionFactoryImpl.java.
static int com.mysql.clusterj.core.SessionFactoryImpl.getIntProperty |
( |
Map<?,?> |
props, |
|
|
String |
propertyName, |
|
|
int |
defaultValue |
|
) |
| |
|
inlinestaticprotected |
Get the property from the properties map as an int. If the user has not provided a value in the props, use the supplied default value.
- Parameters
-
props | the properties |
propertyName | the name of the property |
defaultValue | the value to return if there is no property by that name |
- Returns
- the value from the properties or the default value
Definition at line 444 of file SessionFactoryImpl.java.
static String com.mysql.clusterj.core.SessionFactoryImpl.getRequiredStringProperty |
( |
Map<?,?> |
props, |
|
|
String |
propertyName |
|
) |
| |
|
inlinestaticprotected |
Get the property from the properties map as a String. If the user has not provided a value in the props, throw an exception.
- Parameters
-
props | the properties |
propertyName | the name of the property |
- Returns
- the value from the properties (may not be null)
Definition at line 428 of file SessionFactoryImpl.java.
Session com.mysql.clusterj.core.SessionFactoryImpl.getSession |
( |
| ) |
|
|
inline |
Session com.mysql.clusterj.core.SessionFactoryImpl.getSession |
( |
Map |
properties | ) |
|
|
inline |
Get 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 |
- Returns
- the session
Implements com.mysql.clusterj.SessionFactory.
Definition at line 268 of file SessionFactoryImpl.java.
static SessionFactoryImpl com.mysql.clusterj.core.SessionFactoryImpl.getSessionFactory |
( |
Map<?,?> |
props | ) |
|
|
inlinestatic |
Get a session factory. If using connection pooling and there is already a session factory with the same connect string and database, return it, regardless of whether other properties of the factory are the same as specified in the Map. If not using connection pooling (maximum sessions per connection == 0), create a new session factory.
- Parameters
-
props | properties of the session factory |
- Returns
- the session factory
Definition at line 118 of file SessionFactoryImpl.java.
static String com.mysql.clusterj.core.SessionFactoryImpl.getStringProperty |
( |
Map<?,?> |
props, |
|
|
String |
propertyName |
|
) |
| |
|
inlinestaticprotected |
Get the property from the properties map as a String.
- Parameters
-
props | the properties |
propertyName | the name of the property |
- Returns
- the value from the properties (may be null)
Definition at line 403 of file SessionFactoryImpl.java.
static String com.mysql.clusterj.core.SessionFactoryImpl.getStringProperty |
( |
Map<?,?> |
props, |
|
|
String |
propertyName, |
|
|
String |
defaultValue |
|
) |
| |
|
inlinestaticprotected |
Get the property from the properties map as a String. If the user has not provided a value in the props, use the supplied default value.
- Parameters
-
props | the properties |
propertyName | the name of the property |
defaultValue | the value to return if there is no property by that name |
- Returns
- the value from the properties or the default value
Definition at line 414 of file SessionFactoryImpl.java.
Member Data Documentation
Map<?, ?> com.mysql.clusterj.core.SessionFactoryImpl.props |
|
protected |
final Map<Class<?>, DomainTypeHandler<?> > com.mysql.clusterj.core.SessionFactoryImpl.typeToHandlerMap |
|
staticprotected |
The documentation for this class was generated from the following file: