MySQL 5.6.14 Source Code Document
|
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 |
A base test case for a single EntityManager at any given time.
Definition at line 27 of file SingleEMTestCase.java.
|
inlineprotected |
Start a new transaction if there isn't currently one active.
Definition at line 56 of file SingleEMTestCase.java.
|
inlineprotected |
Closes the current EntityManager if it is open.
Definition at line 99 of file SingleEMTestCase.java.
|
inlineprotected |
Commit the current transaction, if it is active.
Definition at line 68 of file SingleEMTestCase.java.
|
inlineprotected |
Roll back the current transaction, if it is active.
Definition at line 81 of file SingleEMTestCase.java.
|
inline |
Check system properties so the tests can be run with overrides.
Reimplemented from com.mysql.clusterj.jpatest.SingleEMFTestCase.
Reimplemented in com.mysql.clusterj.jpatest.TimestampAsUtilDateTest, com.mysql.clusterj.jpatest.TimestampAsSqlTimestampTest, com.mysql.clusterj.openjpatest.LongLongStringPKOneManyTest, com.mysql.clusterj.openjpatest.OneToManyRelationshipTest, com.mysql.clusterj.openjpatest.LongIntStringPKOneOneTest, com.mysql.clusterj.openjpatest.BasicTest, com.mysql.clusterj.openjpatest.LongLongStringPKTest, com.mysql.clusterj.openjpatest.CrundTest, and com.mysql.clusterj.openjpatest.EmbeddedTest.
Definition at line 34 of file SingleEMTestCase.java.
|
inline |
Initialize entity manager factory.
props | configuration values in the form key, value, key, value... |
Reimplemented from com.mysql.clusterj.jpatest.SingleEMFTestCase.
Definition at line 40 of file SingleEMTestCase.java.
|
inline |
Closes the entity manager factory.
Reimplemented from com.mysql.clusterj.jpatest.SingleEMFTestCase.
Definition at line 46 of file SingleEMTestCase.java.