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

Public Member Functions

void checkInitialValue ()
void checkNewValue ()
void checkIdAfterTransactionStartAndCommit ()
void checkIdAfterTransactionStartAndRollback ()
- Public Member Functions inherited from testsuite.clusterj.AbstractClusterJTest
void createSession ()

Protected Member Functions

void localSetUp ()
boolean getDebug ()
void executeJDBCQuery (String where)
void setJDBCCoordinatedTransactionId (String where, String newId)
String getJDBCCoordinatedTransactionId (String where)
void commitConnection ()
void rollbackConnection ()
- Protected Member Functions inherited from testsuite.clusterj.AbstractClusterJTest
void addTearDownClasses (Class<?>...classes)
void createSessionFactory ()
Properties modifyProperties ()
void dumpSystemProperties ()
void error (String message)
void error (String context, Exception ex)
void errorIfNotEqual (String message, Object expected, Object actual)
void errorIfNotEqual (String message, int[] expected, int[] actual)
void errorIfEqual (String message, Object expected, Object actual)
void failOnError ()
void closeConnection ()
void getConnection (Properties extraProperties)
Connection getConnection ()
void getConnection (String propertiesFileName)
void loadDriver ()
void setAutoCommit (Connection connection, boolean b)
void initializeErrorMessages ()
void initializeJDBC ()
void initializeSchema ()
void loadProperties ()
void loadProperties (String propsFileName)
void loadSchema ()
void loadSchemaDefinition ()
void localTearDown ()
final void setUp () throws Exception
final void tearDown () throws Exception
void removeAll (Class<?> cls)
boolean testSchema ()
boolean resetSchema ()
String dump (List< String > list)

Additional Inherited Members

- Static Protected Member Functions inherited from testsuite.clusterj.AbstractClusterJTest
static String dump (String string)
- Protected Attributes inherited from testsuite.clusterj.AbstractClusterJTest
Session session
SessionFactory sessionFactory
Transaction tx
boolean debug
- Static Protected Attributes inherited from testsuite.clusterj.AbstractClusterJTest
static final String JDBC_DRIVER_NAME = "jdbc.driverName"
static final String JDBC_URL = "jdbc.url"
static Connection connection
static String jdbcDriverName
static String jdbcPassword
static String jdbcURL
static String jdbcUsername
static Properties props
static List< StringschemaDefinition = new ArrayList<String>()
static boolean schemaInitialized = false

Detailed Description

Test that mysql session variable ndb_coordinated_transaction_id can be read and written by jdbc.

Definition at line 30 of file CoordinatedTransactionIdVariableTest.java.

Member Function Documentation

void testsuite.clusterj.CoordinatedTransactionIdVariableTest.checkIdAfterTransactionStartAndCommit ( )
inline

Verify that after an ndb transaction is started the coordinated transaction id is not null and is null after commit.

Definition at line 76 of file CoordinatedTransactionIdVariableTest.java.

Here is the call graph for this function:

void testsuite.clusterj.CoordinatedTransactionIdVariableTest.checkIdAfterTransactionStartAndRollback ( )
inline

Verify that after an ndb transaction is started the coordinated transaction id is not null and is null after rollback.

Definition at line 92 of file CoordinatedTransactionIdVariableTest.java.

Here is the call graph for this function:

void testsuite.clusterj.CoordinatedTransactionIdVariableTest.checkInitialValue ( )
inline

Verify that the initial value of the variable ndb_coordinated_transaction_id is null.

Definition at line 53 of file CoordinatedTransactionIdVariableTest.java.

Here is the call graph for this function:

void testsuite.clusterj.CoordinatedTransactionIdVariableTest.checkNewValue ( )
inline

Try to set the ndb_coordinated_transaction_id variable to a new value and verify that it can be read back.

Definition at line 62 of file CoordinatedTransactionIdVariableTest.java.

Here is the call graph for this function:

void testsuite.clusterj.CoordinatedTransactionIdVariableTest.commitConnection ( )
inlineprotected

Commit the connection to clean it up for the next use.

Definition at line 173 of file CoordinatedTransactionIdVariableTest.java.

Here is the caller graph for this function:

void testsuite.clusterj.CoordinatedTransactionIdVariableTest.executeJDBCQuery ( String  where)
inlineprotected

Execute a SQL query. Throw away the results. Keep the transaction open.

Definition at line 107 of file CoordinatedTransactionIdVariableTest.java.

Here is the call graph for this function:

Here is the caller graph for this function:

boolean testsuite.clusterj.CoordinatedTransactionIdVariableTest.getDebug ( )
inlineprotected

Subclasses can override this method to get debugging info printed to System.out

Reimplemented from testsuite.clusterj.AbstractClusterJTest.

Definition at line 47 of file CoordinatedTransactionIdVariableTest.java.

Here is the caller graph for this function:

String testsuite.clusterj.CoordinatedTransactionIdVariableTest.getJDBCCoordinatedTransactionId ( String  where)
inlineprotected

Get the coordinated_transaction_id variable from the server.

Returns
the id from the server

Definition at line 155 of file CoordinatedTransactionIdVariableTest.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void testsuite.clusterj.CoordinatedTransactionIdVariableTest.localSetUp ( )
inlineprotected

Subclasses may override this method to allocate any data and resources that they need in order to successfully execute this testcase. Adding teardown classes and instances is done in the overridden method.

Reimplemented from testsuite.clusterj.AbstractClusterJTest.

Definition at line 39 of file CoordinatedTransactionIdVariableTest.java.

Here is the call graph for this function:

void testsuite.clusterj.CoordinatedTransactionIdVariableTest.rollbackConnection ( )
inlineprotected

Roll back the connection to clean it up for the next use.

Definition at line 183 of file CoordinatedTransactionIdVariableTest.java.

Here is the caller graph for this function:

void testsuite.clusterj.CoordinatedTransactionIdVariableTest.setJDBCCoordinatedTransactionId ( String  where,
String  newId 
)
inlineprotected

Set the coordinated_transaction_id variable in the server.

Parameters
newIdthe id to set

Definition at line 138 of file CoordinatedTransactionIdVariableTest.java.

Here is the caller graph for this function:


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