
292 DB2 UDB V8 and WebSphere V5 Performance Tuning and Operations Guide
Application Server exceptions. The following code segment illustrates how to add
two error codes into the error map.
Example 8-1 DataStoreHelper
public class NewDSHelper extends GenericDataStoreHelper
{
public NewDSHelper()
{
super(null);
java.util.Hashtable myErrorMap = null;
myErrorMap = new java.util.Hashtable(2);
myErrorMap.put(new Integer(-803), myDuplicateKeyException.class);
myErrorMap.put(new Integer(-1015), myStaleConnectionException.class);
myErrorMap.put("S1000", MyTableNotFoundException.class);
setUserDefinedMap(myErrorMap);
...
}
}
8.1.2 Prepared statement cache ...