1 package com.quantum.adapters;
3 import java.net.InetAddress;
4 import java.net.UnknownHostException;
5 import java.util.HashMap;
11 public class InformixAdapter extends GenericAdapter {
16 protected InformixAdapter() {
17 super(AdapterFactory.INFORMIX);
21 * Get the default connection properties for Informix. These defaults assume that
22 * the database is located on the user's local machine. Informix doesn't allow
25 public Map getDefaultConnectionParameters() {
26 Map map = new HashMap();
27 map.put("hostname", getHostName());
28 map.put("informixserver", "ol_" + getHostName());
29 map.put("port", "1526");
36 private String getHostName() {
38 return InetAddress.getLocalHost().getHostName();
39 } catch (UnknownHostException e) {