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

Public Member Functions

void setUp ()
void testWriteJDBCReadJPA ()
void testWriteJPAReadJDBC ()
void testWriteJDBCReadJDBC ()
void testWriteJPAReadJPA ()
- 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

boolean getDebug ()
int getNumberOfInstances ()
String getTableName ()
Class<?extends IdBasegetModelClass ()
Object getColumnValue (int i, int j)
IdBase getNewInstance (Class<?extends IdBase > modelClass)
ColumnDescriptor[] getColumnDescriptors ()
- 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 ()
List< Object[]> getExpected ()
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 ()

Static Protected Attributes

static ColumnDescriptor[] columnDescriptors
- Static Protected Attributes inherited from com.mysql.clusterj.jpatest.AbstractJPABaseTest
static TimeZone localSystemTimeZone = TimeZone.getDefault()
static boolean debug

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

Detailed Description

Test that Timestamps can be read and written. 

case 1: Write using JDBC, read using NDB. case 2: Write using NDB, read using JDBC. Schema

drop table if exists timestamptypes; create table timestamptypes ( id int not null primary key,

timestamp_not_null_hash timestamp, timestamp_not_null_btree timestamp, timestamp_not_null_both timestamp, timestamp_not_null_none timestamp

) ENGINE=ndbcluster DEFAULT CHARSET=latin1;

create unique index idx_timestamp_not_null_hash using hash on timestamptypes(timestamp_not_null_hash); create index idx_timestamp_not_null_btree on timestamptypes(timestamp_not_null_btree); create unique index idx_timestamp_not_null_both on timestamptypes(timestamp_not_null_both);

Definition at line 50 of file TimestampAsSqlTimestampTest.java.

Member Function Documentation

ColumnDescriptor [] com.mysql.clusterj.jpatest.TimestampAsSqlTimestampTest.getColumnDescriptors ( )
inlineprotected

Subclasses must override this method to provide the column descriptors for the test

Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.

Definition at line 193 of file TimestampAsSqlTimestampTest.java.

Object com.mysql.clusterj.jpatest.TimestampAsSqlTimestampTest.getColumnValue ( int  i,
int  j 
)
inlineprotected

Subclasses override this method to provide values for rows (i) and columns (j)

Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.

Definition at line 87 of file TimestampAsSqlTimestampTest.java.

Here is the call graph for this function:

boolean com.mysql.clusterj.jpatest.TimestampAsSqlTimestampTest.getDebug ( )
inlineprotected

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

Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.

Definition at line 65 of file TimestampAsSqlTimestampTest.java.

Class<? extends IdBase> com.mysql.clusterj.jpatest.TimestampAsSqlTimestampTest.getModelClass ( )
inlineprotected

Subclasses override this method to provide the model class for the test

Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.

Definition at line 81 of file TimestampAsSqlTimestampTest.java.

IdBase com.mysql.clusterj.jpatest.TimestampAsSqlTimestampTest.getNewInstance ( Class<?extends IdBase modelClass)
inlineprotected

Subclasses must override this method to implement the model factory for the test

Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.

Definition at line 93 of file TimestampAsSqlTimestampTest.java.

int com.mysql.clusterj.jpatest.TimestampAsSqlTimestampTest.getNumberOfInstances ( )
inlineprotected

Subclasses must override this method to provide the number of instances to create

Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.

Definition at line 70 of file TimestampAsSqlTimestampTest.java.

String com.mysql.clusterj.jpatest.TimestampAsSqlTimestampTest.getTableName ( )
inlineprotected

Subclasses must override this method to provide the name of the table for the test

Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.

Definition at line 75 of file TimestampAsSqlTimestampTest.java.

void com.mysql.clusterj.jpatest.TimestampAsSqlTimestampTest.setUp ( )
inline

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

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

Definition at line 53 of file TimestampAsSqlTimestampTest.java.

Here is the call graph for this function:

Member Data Documentation

ColumnDescriptor [] com.mysql.clusterj.jpatest.TimestampAsSqlTimestampTest.columnDescriptors
staticprotected
Initial value:
new ColumnDescriptor[] {
not_null_hash,
not_null_btree,
not_null_both,
not_null_none
}

Definition at line 185 of file TimestampAsSqlTimestampTest.java.


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