MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl Class Reference
Inheritance diagram for com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl:
Collaboration diagram for com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl:

Public Member Functions

 NdbOpenJPAConfigurationImpl ()
 NdbOpenJPAConfigurationImpl (boolean loadGlobals)
 NdbOpenJPAConfigurationImpl (boolean derivations, boolean loadGlobals)
 NdbOpenJPAConfigurationImpl (NdbOpenJPAConfiguration conf)
String getConnectString ()
void setConnectString (String value)
int getConnectRetries ()
void setConnectRetries (int value)
int getConnectDelay ()
void setConnectDelay (int value)
int getConnectVerbose ()
void setConnectVerbose (int value)
int getConnectTimeoutBefore ()
void setConnectTimeoutBefore (int value)
int getConnectTimeoutAfter ()
void setConnectTimeoutAfter (int value)
String getUsername ()
void setUsername (String value)
String getPassword ()
void setPassword (String value)
String getDatabase ()
void setDatabase (String value)
int getMaxTransactions ()
void setMaxTransactions (int value)
boolean getFailOnJDBCPath ()
void setFailOnJDBCPath (boolean value)
SessionFactoryImpl getSessionFactory ()
void setSessionFactory (SessionFactory value)
SessionFactoryImpl createSessionFactory ()
NdbOpenJPADomainTypeHandlerImpl<?> getDomainTypeHandler (ClassMapping cmd, Dictionary dictionary)

Public Attributes

StringValue connectString
IntValue connectRetries
IntValue connectDelay
IntValue connectVerbose
IntValue connectTimeoutBefore
IntValue connectTimeoutAfter
StringValue username
StringValue password
StringValue database
IntValue maxTransactions
BooleanValue failOnJDBCPath
SessionFactoryImpl sessionFactory

Protected Member Functions

void preClose ()
boolean isInvalidProperty (String propName)

Additional Inherited Members

- Static Public Attributes inherited from com.mysql.clusterj.openjpa.NdbOpenJPAConfiguration
static final String LOG_NDB_SQL = "openjpa.ndb.SQL"
static final String LOG_NDB_JDBC = "openjpa.ndb.JDBC"
- Static Public Attributes inherited from com.mysql.clusterj.Constants
static final String PROPERTY_CLUSTER_CONNECTION_SERVICE = "com.mysql.clusterj.connection.service"
static final String PROPERTY_CLUSTER_CONNECTSTRING = "com.mysql.clusterj.connectstring"
static final String PROPERTY_CLUSTER_CONNECT_RETRIES = "com.mysql.clusterj.connect.retries"
static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_RETRIES = 4
static final String PROPERTY_CONNECTION_POOL_SIZE = "com.mysql.clusterj.connection.pool.size"
static final int DEFAULT_PROPERTY_CONNECTION_POOL_SIZE = 1
static final String PROPERTY_CONNECTION_POOL_NODEIDS = "com.mysql.clusterj.connection.pool.nodeids"
static final String PROPERTY_CLUSTER_CONNECT_DELAY = "com.mysql.clusterj.connect.delay"
static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_DELAY = 5
static final String PROPERTY_CLUSTER_CONNECT_VERBOSE = "com.mysql.clusterj.connect.verbose"
static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_VERBOSE = 0
static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE = "com.mysql.clusterj.connect.timeout.before"
static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_BEFORE = 30
static final String PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER = "com.mysql.clusterj.connect.timeout.after"
static final int DEFAULT_PROPERTY_CLUSTER_CONNECT_TIMEOUT_AFTER = 20
static final String PROPERTY_CLUSTER_DATABASE = "com.mysql.clusterj.database"
static final String DEFAULT_PROPERTY_CLUSTER_DATABASE = "test"
static final String PROPERTY_CLUSTER_MAX_TRANSACTIONS = "com.mysql.clusterj.max.transactions"
static final int DEFAULT_PROPERTY_CLUSTER_MAX_TRANSACTIONS = 4
static final String PROPERTY_DEFER_CHANGES = "com.mysql.clusterj.defer.changes"
static final String SESSION_FACTORY_SERVICE_CLASS_NAME = "com.mysql.clusterj.SessionFactoryService"
static final String SESSION_FACTORY_SERVICE_FILE_NAME = "META-INF/services/" + SESSION_FACTORY_SERVICE_CLASS_NAME
static final String PROPERTY_JDBC_DRIVER_NAME = "com.mysql.clusterj.jdbc.driver"
static final String PROPERTY_JDBC_URL = "com.mysql.clusterj.jdbc.url"
static final String PROPERTY_JDBC_USERNAME = "com.mysql.clusterj.jdbc.username"
static final String PROPERTY_JDBC_PASSWORD = "com.mysql.clusterj.jdbc.password"

Detailed Description

Default implementation of the NdbOpenJPAConfiguration interface. This implementation extends the JDBCConfiguration so both access to MySQLd via JDBC and access to Ndb via ClusterJ are supported. Type safety: The return type Map for getCacheMarshallerInstances() from the type OpenJPAConfigurationImpl needs unchecked conversion to conform to Map<String,CacheMarshaller> from the type OpenJPAConfiguration

Definition at line 55 of file NdbOpenJPAConfigurationImpl.java.

Constructor & Destructor Documentation

com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl.NdbOpenJPAConfigurationImpl ( )
inline

Default constructor. Attempts to load default properties.

Definition at line 128 of file NdbOpenJPAConfigurationImpl.java.

com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl.NdbOpenJPAConfigurationImpl ( boolean  loadGlobals)
inline

Constructor.

Parameters
loadGlobalswhether to attempt to load the global properties

Definition at line 137 of file NdbOpenJPAConfigurationImpl.java.

com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl.NdbOpenJPAConfigurationImpl ( boolean  derivations,
boolean  loadGlobals 
)
inline

Constructor.

Parameters
derivationswhether to apply product derivations
loadGlobalswhether to attempt to load the global properties

Definition at line 147 of file NdbOpenJPAConfigurationImpl.java.

com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl.NdbOpenJPAConfigurationImpl ( NdbOpenJPAConfiguration  conf)
inline

Copy constructor

Definition at line 181 of file NdbOpenJPAConfigurationImpl.java.

Member Function Documentation

NdbOpenJPADomainTypeHandlerImpl<?> com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl.getDomainTypeHandler ( ClassMapping  cmd,
Dictionary  dictionary 
)
inline

Get the domain type handler for this class mapping. A cached handler is returned if possible. Synchronize on the class-to-handler map.

Parameters
cmdthe openjpa class mapping
Returns
the domain type handler

Implements com.mysql.clusterj.openjpa.NdbOpenJPAConfiguration.

Definition at line 321 of file NdbOpenJPAConfigurationImpl.java.

Here is the caller graph for this function:

void com.mysql.clusterj.openjpa.NdbOpenJPAConfigurationImpl.preClose ( )
inlineprotected

Free the data sources.

Definition at line 354 of file NdbOpenJPAConfigurationImpl.java.

Here is the call graph for this function:


The documentation for this class was generated from the following file: