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

Public Member Functions

void test ()
- 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 ()
void remove ()
void insert ()
void update ()
void createClobInstances (int number)
String getString (int size)
void checkString (String where, String string, int number, boolean updated)
InputStream getClobStream (final int i)
void dumpClob (String where, String string)
int getClobSizeFor (int i)
- 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 ()
String getTableName ()
int getNumberOfInstances ()
ColumnDescriptor[] getColumnDescriptors ()
IdBase getNewInstance (Class<?extends IdBase > modelClass)
Class<?extends IdBasegetModelClass ()
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)
- Protected Member Functions inherited from com.mysql.clusterj.jpatest.SingleEMTestCase
boolean begin ()
boolean commit ()
boolean rollback ()
boolean close ()

Protected Attributes

List< ClobTypesclobs = new ArrayList<ClobTypes>()
- Protected Attributes inherited from com.mysql.clusterj.jpatest.AbstractJPABaseTest
Connection connection
- Protected Attributes inherited from com.mysql.clusterj.jpatest.SingleEMTestCase
EntityManager em
EntityTransaction tx
- Protected Attributes inherited from com.mysql.clusterj.jpatest.SingleEMFTestCase
EntityManagerFactory emf
- Protected Attributes inherited from com.mysql.clusterj.jpatest.PersistenceTestCase
TestResult testResult
Map map

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)
- Static Protected Attributes inherited from com.mysql.clusterj.jpatest.AbstractJPABaseTest
static TimeZone localSystemTimeZone = TimeZone.getDefault()
static boolean debug

Detailed Description

Test clobs

Schema: drop table if exists charsetlatin1; create table charsetlatin1 ( id int not null primary key, smallcolumn varchar(200), mediumcolumn varchar(500), largecolumn text(10000)

) ENGINE=ndbcluster DEFAULT CHARSET=latin1;

Definition at line 43 of file ClobTest.java.

Member Function Documentation

void com.mysql.clusterj.jpatest.ClobTest.checkString ( String  where,
String  string,
int  number,
boolean  updated 
)
inlineprotected

Check the string to be sure it matches the pattern in both size and contents.

See Also
getString
Parameters
stringthe string to check
numberthe expected length of the string
updatedwhether the string is original or updated

Definition at line 194 of file ClobTest.java.

Here is the call graph for this function:

boolean com.mysql.clusterj.jpatest.ClobTest.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 55 of file ClobTest.java.

Here is the caller graph for this function:

String com.mysql.clusterj.jpatest.ClobTest.getString ( int  size)
inlineprotected

Create a new String of the specified size containing a pattern of characters in which each character is the value of encodable characters at position modulo 128. This pattern is easy to test.

Parameters
sizethe length of the returned string
Returns
the string filled with the pattern

Definition at line 179 of file ClobTest.java.

Member Data Documentation

List<ClobTypes> com.mysql.clusterj.jpatest.ClobTest.clobs = new ArrayList<ClobTypes>()
protected

The clob instances for testing.

Definition at line 49 of file ClobTest.java.


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