| org.apache.derbyTesting.junit.BaseJDBCTestSetup org.apache.derbyTesting.functionTests.tests.jdbc4.BlobClobTestSetup
BlobClobTestSetup | public class BlobClobTestSetup extends BaseJDBCTestSetup (Code) | | Create a table with one column for a blob and one column for a clob.
This is shared between tests that need a blob or a clob, and is required
because the createBlob/-Clob methods are not yet implemented.
|
Field Summary | |
final public static int | ID_NULLVALUES Constant for accessing the row with null values. | final public static int | ID_SAMPLEVALUES Constant for accessing the row with sample values. |
Constructor Summary | |
public | BlobClobTestSetup(Test test) Create a test setup for the specified blob or clob test. |
Method Summary | |
public static Blob | getSampleBlob(Connection con) Fetch a sample Blob.
If this method fails, the test fails.
Parameters: con - database connection to fetch data from. | public static Clob | getSampleClob(Connection con) Fetch a sample Clob.
If this method fails, the test fails.
Parameters: con - database connection to fetch data from. | protected void | setUp() Create a table with BLOB and CLOB, so that such objects can be
accessed/used from JDBC. | protected void | tearDown() Drop the table we created during setup. |
ID_NULLVALUES | final public static int ID_NULLVALUES(Code) | | Constant for accessing the row with null values.
|
ID_SAMPLEVALUES | final public static int ID_SAMPLEVALUES(Code) | | Constant for accessing the row with sample values.
|
BlobClobTestSetup | public BlobClobTestSetup(Test test)(Code) | | Create a test setup for the specified blob or clob test.
Parameters: test - the test to provide setup for. |
getSampleBlob | public static Blob getSampleBlob(Connection con) throws SQLException(Code) | | Fetch a sample Blob.
If this method fails, the test fails.
Parameters: con - database connection to fetch data from. a sample Blob object. |
getSampleClob | public static Clob getSampleClob(Connection con) throws SQLException(Code) | | Fetch a sample Clob.
If this method fails, the test fails.
Parameters: con - database connection to fetch data from. a sample Clob object. |
setUp | protected void setUp() throws IOException, SQLException(Code) | | Create a table with BLOB and CLOB, so that such objects can be
accessed/used from JDBC.
|
|
|