| org.apache.derbyTesting.junit.BaseJDBCTestSetup org.apache.derbyTesting.functionTests.tests.jdbcapi.BLOBDataModelSetup
BLOBDataModelSetup | final public class BLOBDataModelSetup extends BaseJDBCTestSetup (Code) | | Sets up a data model with very large BLOBs.
The table created will have three fields:
1. a value field (val), which is the value for every byte in the BLOB.
2. a length (length) field which is the actual size of the BLOB
3. the data field (data), which is the actual BLOB data.
author: Andreas Korneliussen |
Method Summary | |
final public static String | getBlobTableName() | final protected void | setUp() The setup creates a Connection to the database, and creates a table
with blob columns. | final protected void | tearDown() Teardown test. |
bigSize | final static int bigSize(Code) | | Size of big record (currently 64 MB)
|
bigVal | final static int bigVal(Code) | | Val for big record
|
regularBlobs | final static int regularBlobs(Code) | | Number of regular Blobs
|
size | final static int size(Code) | | Size of regular Blobs (currently 1MB)
|
BLOBDataModelSetup | public BLOBDataModelSetup(Test test)(Code) | | Constructor
Parameters: test - test object being decorated by this TestSetup |
getBlobTableName | final public static String getBlobTableName()(Code) | | Return table name
table name |
setUp | final protected void setUp() throws Exception(Code) | | The setup creates a Connection to the database, and creates a table
with blob columns.
exception: Exception - any exception will cause test to fail with error. |
tearDown | final protected void tearDown() throws Exception(Code) | | Teardown test.
Rollback connection and close it.
exception: Exceptions - causes the test to fail with error |
|
|