| |
|
| net.sourceforge.jtds.test.TestBase net.sourceforge.jtds.test.DatabaseTestCase net.sourceforge.jtds.test.ClientSideCursorTest
ClientSideCursorTest | public class ClientSideCursorTest extends DatabaseTestCase (Code) | | Test case to illustrate use of Cached cursor result set.
version: 1.0 author: Mike Hutchinson |
Method Summary | |
public static void | main(String[] args) | public void | testCachedCursor() General test of scrollable cursor functionality. | public void | testOptimisticUpdates() Test optimistic updates throw exception if row is changed on disk. | public void | testPositionedUpdate() Test support for JDBC 1 style positioned updates with named cursors. | public void | testUpdateNoKeys() Test updateable result set where table is not keyed. |
ClientSideCursorTest | public ClientSideCursorTest(String name)(Code) | | |
testCachedCursor | public void testCachedCursor() throws Exception(Code) | | General test of scrollable cursor functionality.
When running on SQL Server this test will exercise MSCursorResultSet.
When running on Sybase this test will exercise CachedResultSet.
|
testOptimisticUpdates | public void testOptimisticUpdates() throws Exception(Code) | | Test optimistic updates throw exception if row is changed on disk.
When running on SQL Server this test will exercise MSCursorResultSet.
When running on Sybase this test will exercise CachedResultSet.
|
testPositionedUpdate | public void testPositionedUpdate() throws Exception(Code) | | Test support for JDBC 1 style positioned updates with named cursors.
When running on SQL Server this test will exercise MSCursorResultSet.
When running on Sybase this test will exercise CachedResultSet.
|
testUpdateNoKeys | public void testUpdateNoKeys() throws Exception(Code) | | Test updateable result set where table is not keyed.
Uses a server side cursor and positioned updates on Sybase.
|
|
|
|