Public Member Functions |
void | test () |
void | deleteAll () |
void | verifyDeleteAll () |
void | createAll () |
void | findAll () |
void | updateThenVerifyAll () |
void | deleteThenVerifyAll () |
void | setUp () |
void | setUp (Object...props) |
void | tearDown () throws Exception |
Protected Member Functions |
boolean | getDebug () |
void | remove () |
void | insert () |
void | update () |
void | createBlobInstances (int number) |
byte[] | getBlobbytes (int size) |
void | checkBlobbytes (String where, byte[] bytes, int number, boolean updated) |
InputStream | getBlobStream (final int i) |
void | dumpBlob (String where, byte[] blob) |
int | getBlobSizeFor (int i) |
void | getConnection () |
void | setAutoCommit (Connection connection, boolean b) |
void | verifyEmployee (Employee e, int updateOffset) |
int | getNumberOfEmployees () |
List< Object[]> | getExpected () |
String | getTableName () |
int | getNumberOfInstances () |
ColumnDescriptor[] | getColumnDescriptors () |
IdBase | getNewInstance (Class<?extends IdBase > modelClass) |
Class<?extends IdBase > | getModelClass () |
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) |
boolean | begin () |
boolean | commit () |
boolean | rollback () |
boolean | close () |
Additional Inherited Members |
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) |
static TimeZone | localSystemTimeZone = TimeZone.getDefault() |
static boolean | debug |
Detailed Description
Definition at line 28 of file BlobTest.java.
Member Function Documentation
void com.mysql.clusterj.jpatest.BlobTest.checkBlobbytes |
( |
String |
where, |
|
|
byte[] |
bytes, |
|
|
int |
number, |
|
|
boolean |
updated |
|
) |
| |
|
inlineprotected |
Check the byte[] to be sure it matches the pattern in both size and contents.
- See Also
- getBlobBytes
- Parameters
-
bytes | the byte[] to check |
number | the expected length of the byte[] |
Definition at line 143 of file BlobTest.java.
byte [] com.mysql.clusterj.jpatest.BlobTest.getBlobbytes |
( |
int |
size | ) |
|
|
inlineprotected |
Create a new byte[] of the specified size containing a pattern of bytes in which each byte is the unsigned value of the index modulo 256. This pattern is easy to test.
- Parameters
-
size | the length of the returned byte[] |
- Returns
- the byte[] filled with the pattern
Definition at line 129 of file BlobTest.java.
boolean com.mysql.clusterj.jpatest.BlobTest.getDebug |
( |
| ) |
|
|
inlineprotected |
Member Data Documentation
The blob instances for testing.
Definition at line 34 of file BlobTest.java.
The documentation for this class was generated from the following file:
- storage/ndb/clusterj/clusterj-jpatest/src/main/java/com/mysql/clusterj/jpatest/BlobTest.java