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

Public Member Functions

void localSetUp ()
void test ()
- Public Member Functions inherited from testsuite.clusterj.AbstractClusterJTest
void createSession ()

Protected Member Functions

void insert ()
void find ()
void update ()
void delete ()
void createInstances ()
HashOnlyLongIntStringPK createInstance (int index)
String toString (HashOnlyLongIntStringPK instance)
long getPK1 (int index)
int getPK2 (int index)
String getPK3 (int index)
String getValue (int index)
void verify (HashOnlyLongIntStringPK instance, int index, boolean updated)
- Protected Member Functions inherited from testsuite.clusterj.AbstractClusterJTest
boolean getDebug ()
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)

Protected Attributes

int PK_MODULUS = 2
int NUMBER_OF_INSTANCES = PK_MODULUS * PK_MODULUS * PK_MODULUS
long PRETTY_BIG_NUMBER = 1000000000000000L
List< HashOnlyLongIntStringPKinstances = new ArrayList<HashOnlyLongIntStringPK>()
- Protected Attributes inherited from testsuite.clusterj.AbstractClusterJTest
Session session
SessionFactory sessionFactory
Transaction tx
boolean debug

Additional Inherited Members

- Static Protected Member Functions inherited from testsuite.clusterj.AbstractClusterJTest
static String dump (String string)
- 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

Definition at line 25 of file HashOnlyLongIntStringPKTest.java.

Member Function Documentation

HashOnlyLongIntStringPK testsuite.clusterj.HashOnlyLongIntStringPKTest.createInstance ( int  index)
inlineprotected

Create an instance of HashOnlyLongIntStringPK.

Parameters
indexthe index to use to generate data
Returns
the instance

Definition at line 131 of file HashOnlyLongIntStringPKTest.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void testsuite.clusterj.HashOnlyLongIntStringPKTest.createInstances ( )
inlineprotected

The strategy for instances is for the "instance number" to create the three keys, such that the value of the instance is: pk1 * PK_MODULUS^2 + pk2 * PK_MODULUS + pk3

Definition at line 119 of file HashOnlyLongIntStringPKTest.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void testsuite.clusterj.HashOnlyLongIntStringPKTest.delete ( )
inlineprotected

Blind delete every fifth instance.

Definition at line 96 of file HashOnlyLongIntStringPKTest.java.

Here is the call graph for this function:

void testsuite.clusterj.HashOnlyLongIntStringPKTest.find ( )
inlineprotected

Find all instances.

Definition at line 64 of file HashOnlyLongIntStringPKTest.java.

Here is the call graph for this function:

void testsuite.clusterj.HashOnlyLongIntStringPKTest.insert ( )
inlineprotected

Insert all instances.

Definition at line 58 of file HashOnlyLongIntStringPKTest.java.

Here is the call graph for this function:

void testsuite.clusterj.HashOnlyLongIntStringPKTest.localSetUp ( )
inline

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 33 of file HashOnlyLongIntStringPKTest.java.

Here is the call graph for this function:

void testsuite.clusterj.HashOnlyLongIntStringPKTest.update ( )
inlineprotected

Blind update every fourth instance.

Definition at line 74 of file HashOnlyLongIntStringPKTest.java.

Here is the call graph for this function:


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