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

Public Member Functions

void setUp ()
void setUp (Object...props)
void tearDown () throws Exception

Protected Member Functions

boolean begin ()
boolean commit ()
boolean rollback ()
boolean close ()

Protected Attributes

EntityManager em
EntityTransaction tx
- Protected Attributes inherited from com.mysql.clusterj.jpatest.SingleEMFTestCase
EntityManagerFactory emf
- Protected Attributes inherited from com.mysql.clusterj.jpatest.PersistenceTestCase
TestResult testResult
Map map

Detailed Description

A base test case for a single EntityManager at any given time.

Definition at line 27 of file SingleEMTestCase.java.

Member Function Documentation

boolean com.mysql.clusterj.jpatest.SingleEMTestCase.begin ( )
inlineprotected

Start a new transaction if there isn't currently one active.

Returns
true if a transaction was started, false if one already existed

Definition at line 56 of file SingleEMTestCase.java.

Here is the caller graph for this function:

boolean com.mysql.clusterj.jpatest.SingleEMTestCase.close ( void  )
inlineprotected

Closes the current EntityManager if it is open.

Returns
false if the EntityManager was already closed

Definition at line 99 of file SingleEMTestCase.java.

Here is the call graph for this function:

Here is the caller graph for this function:

boolean com.mysql.clusterj.jpatest.SingleEMTestCase.commit ( )
inlineprotected

Commit the current transaction, if it is active.

Returns
true if the transaction was committed

Definition at line 68 of file SingleEMTestCase.java.

Here is the caller graph for this function:

boolean com.mysql.clusterj.jpatest.SingleEMTestCase.rollback ( )
inlineprotected

Roll back the current transaction, if it is active.

Returns
true if the transaction was rolled back

Definition at line 81 of file SingleEMTestCase.java.

Here is the caller graph for this function:

void com.mysql.clusterj.jpatest.SingleEMTestCase.setUp ( Object...  props)
inline

Initialize entity manager factory.

Parameters
propsconfiguration values in the form key, value, key, value...

Reimplemented from com.mysql.clusterj.jpatest.SingleEMFTestCase.

Definition at line 40 of file SingleEMTestCase.java.

void com.mysql.clusterj.jpatest.SingleEMTestCase.tearDown ( ) throws Exception
inline

Closes the entity manager factory.

Reimplemented from com.mysql.clusterj.jpatest.SingleEMFTestCase.

Definition at line 46 of file SingleEMTestCase.java.

Here is the call graph for this function:


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