protected void setup() { if (getSession().getPlatform().isDB2() || getSession().getPlatform().isAccess() || getSession().getPlatform().isTimesTen()) { throw new TestWarningException("ScrollableCursor is not supported on this platform"); } TYPE_SCROLL_INSENSITIVE_isSupported = true; CONCUR_UPDATABLE_isSupported = true; if (getSession().getPlatform().isSQLServer()) { // In case either TYPE_SCROLL_INSENSITIVE or CONCUR_UPDATABLE used // MS SQL Server Version: 9.00.2050; MS SQL Server 2005 JDBC Driver Version: 1.2.2828.100 // throws exception: // com.microsoft.sqlserver.jdbc.SQLServerException: The cursor type/concurrency combination is // not supported. TYPE_SCROLL_INSENSITIVE_isSupported = false; CONCUR_UPDATABLE_isSupported = false; } readWithNext = new Vector(); readWithPrevious = new Vector(); getSession().getIdentityMapAccessor().initializeAllIdentityMaps(); if (configuration != null) { configuration.setup(getSession()); getExecutor().setSession(configuration.getUnitOfWork()); } }
public void reset() { if (configuration != null) { getExecutor().setSession(configuration.getUnitOfWork().getParent()); configuration.reset(); } getSession().getIdentityMapAccessor().initializeIdentityMaps(); }