此規則會標示是否使用已淘汰的資源配接器方法。 在 WebSphere 的各不同版本中,這些方法已淘汰如下:
在 WebSphere 6.0 版中淘汰:
- com.ibm.websphere.rsadapter.WSRdbRecord.getBigDecimal(int, int)
此方法在 WebSphere Application Server 6.0 版中已淘汰,並可能在將來的版本中移除。
請改用 getBigDecimal(int parameterIndex) 或 getBigDecimal(String parameterName)。
- com.ibm.websphere.rsadapter.WSDataSource.getConnection(WSCciConnectionSpec)。
此方法在 WebSphere Application Server 6.0 版中已淘汰,不打算供客戶應用程式使用。
- com.ibm.websphere.rsadapter.Reassociateable.supportsImplicitReactivation()
此方法在 WebSphere Application Server 6.0 版中已淘汰,並可能在將來的版本中移除。
在 WebSphere 6.1 版中淘汰:
- com.ibm.websphere.rsadapter.DataStoreHelperMetaData.setDatabaseDefaultIsolationLevel(int)
此方法在 WebSphere Application Server 6.1 版中已淘汰,並可能在將來的版本中移除。
請改用 DataStoreHelperMetaData.setDatabaseDefaultIsolationLevel(int, int)。
在 WebSphere 7.0 版中淘汰:
- com.ibm.websphere.rsadapter.WSCallHelper.call(java.lang.Object target, java.lang.String methName, java.lang.Object[] params, java.lang.Class[] types)
此方法在 WebSphere 7.0 版中已淘汰,並可能在將來的版本中移除。
請利用標準 Java 反射 API 來取代此方法。
- com.ibm.websphere.rsadapter.WSCallHelper.setConnectionError(java.lang.Object conn)
此方法在 WebSphere 7.0 版中已淘汰,並可能在將來的版本中移除。
請改用 com.ibm.websphere.rsadapter.WSCallHelper.setConnectionError (Object conn, boolean logEvent)。
新的方法提供一個布林參數,供您控制是否將連線錯誤事件記載到系統輸出串流中。
- com.ibm.websphere.rsadapter.WSConnection.getClientInformation()
此方法在 WebSphere 7.0 版中已淘汰,並可能在將來的版本中移除。
請改用 JDBC 4.0 用戶端資訊 API。
- com.ibm.websphere.rsadapter.WSConnection.setClientInformation(Properties)
此方法在 WebSphere 7.0 版中已淘汰,並可能在將來的版本中移除。
請改用 JDBC 4.0 用戶端資訊 API。
- com.ibm.ws.rsadapter.cci.WSResourceAdapterBase.getNativeConnection (javax.resource.cci.Connection)
此方法在 WebSphere 7.0 版中已淘汰,並可能在將來的版本中移除。
此方法適用於 WebSphere 元件,不適用於應用程式。
- com.ibm.ws.rsadapter.cci.WSResourceAdapterBase.getNativeConnection (com.ibm.ws.rsadapter.jdbc.WSJdbcConnection)
此方法在 WebSphere 7.0 版中已淘汰,並可能在將來的版本中移除。
此方法適用於 WebSphere 元件,不適用於應用程式。
- com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.getNativeConnection (com.ibm.ws.rsadapter.jdbc.WSJdbcConnection)
此方法在 WebSphere 7.0 版中已淘汰,並可能在將來的版本中移除。
此方法適用於 WebSphere 元件,不適用於應用程式。
如需相關資訊,請參閱: