MySQL 5.6.14 Source Code Document
|
Public Member Functions | |
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 () |
void | setUp (Object...props) |
void | tearDown () throws Exception |
Protected Member Functions | |
boolean | getDebug () |
int | getNumberOfInstances () |
String | getTableName () |
Class<?extends IdBase > | getModelClass () |
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 |
Test that Dates can be read and written.
case 1: Write using JDBC, read using JPA. case 2: Write using JPA, read using JDBC. case 3: Write using JDBC, read using JDBC. case 4: Write using JPA, read using JPA. Schema
drop table if exists datetypes; create table datetypes ( id int not null primary key,
date_null_hash date, date_null_btree date, date_null_both date, date_null_none date,
date_not_null_hash date, date_not_null_btree date, date_not_null_both date, date_not_null_none date
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
create unique index idx_date_null_hash using hash on datetypes(date_null_hash); create index idx_date_null_btree on datetypes(date_null_btree); create unique index idx_date_null_both on datetypes(date_null_both);
create unique index idx_date_not_null_hash using hash on datetypes(date_not_null_hash); create index idx_date_not_null_btree on datetypes(date_not_null_btree); create unique index idx_date_not_null_both on datetypes(date_not_null_both);
Definition at line 60 of file DateAsSqlDateTest.java.
|
inlineprotected |
Subclasses must override this method to provide the column descriptors for the test
Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.
Definition at line 196 of file DateAsSqlDateTest.java.
|
inlineprotected |
Subclasses override this method to provide values for rows (i) and columns (j)
Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.
Definition at line 88 of file DateAsSqlDateTest.java.
|
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 DateAsSqlDateTest.java.
|
inlineprotected |
Subclasses override this method to provide the model class for the test
Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.
Definition at line 82 of file DateAsSqlDateTest.java.
|
inlineprotected |
Subclasses must override this method to implement the model factory for the test
Reimplemented from com.mysql.clusterj.jpatest.AbstractJPABaseTest.
Definition at line 94 of file DateAsSqlDateTest.java.
|
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 DateAsSqlDateTest.java.
|
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 DateAsSqlDateTest.java.
|
staticprotected |
Definition at line 188 of file DateAsSqlDateTest.java.