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

Public Member Functions

void setUp ()
void test ()
void verify (LongLongStringOid oid, LongLongStringPKOneMany instance)
- Public Member Functions inherited from com.mysql.clusterj.jpatest.AbstractJPABaseTest
void deleteAll ()
void verifyDeleteAll ()
void createAll ()
void findAll ()
void updateThenVerifyAll ()
void deleteThenVerifyAll ()
- Public Member Functions inherited from com.mysql.clusterj.jpatest.SingleEMTestCase
void setUp (Object...props)
void tearDown () throws Exception

Protected Member Functions

String getPersistenceUnitName ()
- Protected Member Functions inherited from com.mysql.clusterj.jpatest.AbstractJPABaseTest
void getConnection ()
void setAutoCommit (Connection connection, boolean b)
void verifyEmployee (Employee e, int updateOffset)
int getNumberOfEmployees ()
boolean getDebug ()
List< Object[]> getExpected ()
String getTableName ()
int getNumberOfInstances ()
ColumnDescriptor[] getColumnDescriptors ()
IdBase getNewInstance (Class<?extends IdBase > modelClass)
Class<?extends IdBasegetModelClass ()
Object getColumnValue (int i, int j)
void generateInstances (ColumnDescriptor[] columnDescriptors)
void verify (String where, List< Object[]> expecteds, List< Object[]> actuals)
void removeAll (Class<?extends IdBase > modelClass)
void writeJDBCreadJPA ()
void writeJDBCreadJDBC ()
void writeJPAreadJPA ()
void writeJPAreadJDBC ()
void writeToJPA (ColumnDescriptor[] columnDescriptors, List< IdBase > instances)
void writeToJDBC (ColumnDescriptor[] columnDescriptors, List< IdBase > instances)
List< Object[]> readFromJPA (ColumnDescriptor[] columnDescriptors)
List< Object[]> readFromJDBC (ColumnDescriptor[] columnDescriptors)
- Protected Member Functions inherited from com.mysql.clusterj.jpatest.SingleEMTestCase
boolean begin ()
boolean commit ()
boolean rollback ()
boolean close ()

Additional Inherited Members

- Static Protected Member Functions inherited from com.mysql.clusterj.jpatest.AbstractJPABaseTest
static long getMillisFor (int year, int month, int day, int hour, int minute, int second)
static long getMillisFor (int year, int month, int day)
static long getMillisFor (int days, int hour, int minute, int second)
static void resetLocalSystemDefaultTimeZone (Connection connection)
- Protected Attributes inherited from com.mysql.clusterj.jpatest.AbstractJPABaseTest
Connection connection
- Static Protected Attributes inherited from com.mysql.clusterj.jpatest.AbstractJPABaseTest
static TimeZone localSystemTimeZone = TimeZone.getDefault()
static boolean debug

Detailed Description

Definition at line 33 of file LongLongStringPKOneManyTest.java.

Member Function Documentation

String com.mysql.clusterj.openjpatest.LongLongStringPKOneManyTest.getPersistenceUnitName ( )
inlineprotected

The name of the persistence unit that this test class should use by default. This defaults to "ndb".

Reimplemented from com.mysql.clusterj.jpatest.PersistenceTestCase.

Definition at line 52 of file LongLongStringPKOneManyTest.java.

void com.mysql.clusterj.openjpatest.LongLongStringPKOneManyTest.setUp ( )
inline

Check system properties so the tests can be run with overrides.

Reimplemented from com.mysql.clusterj.jpatest.SingleEMTestCase.

Definition at line 47 of file LongLongStringPKOneManyTest.java.

void com.mysql.clusterj.openjpatest.LongLongStringPKOneManyTest.test ( )
inline

This tests delete, insert, find, and update of entities with compound primary and foreign keys.

Update every other instance of B to refer to a different A.

Definition at line 59 of file LongLongStringPKOneManyTest.java.

Here is the call graph for this function:

void com.mysql.clusterj.openjpatest.LongLongStringPKOneManyTest.verify ( LongLongStringOid  oid,
LongLongStringPKOneMany  instance 
)
inline

Verify that the primary keys match the oid.

Parameters
oidthe oid used to find the instance

Definition at line 167 of file LongLongStringPKOneManyTest.java.


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