Revision 13753 branches/v10/extensions/extSDE/src/com/iver/cit/gvsig/fmap/drivers/sde/ConnectionSDE.java
ConnectionSDE.java | ||
---|---|---|
97 | 97 |
} |
98 | 98 |
|
99 | 99 |
public void setDataConnection(String connectionStr, String user, String _pw) throws DBException { |
100 |
StringTokenizer st=new StringTokenizer(connectionStr,":"); |
|
101 |
st.nextToken(); |
|
102 |
String server=st.nextToken(); |
|
103 |
int instance=Integer.parseInt(st.nextToken()); |
|
104 |
String database=st.nextToken(); |
|
105 | 100 |
try { |
101 |
StringTokenizer st=new StringTokenizer(connectionStr,":"); |
|
102 |
st.nextToken(); |
|
103 |
String server=st.nextToken(); |
|
104 |
int instance=Integer.parseInt(st.nextToken()); |
|
105 |
String database=st.nextToken(); |
|
106 | 106 |
connection=new SeConnection(server, instance, database, user, _pw); |
107 | 107 |
} catch (SeException e) { |
108 | 108 |
throw new DBException(e); |
109 |
} catch (Exception e) { |
|
110 |
throw new DBException(e); |
|
109 | 111 |
} |
110 | 112 |
} |
111 | 113 |
|
Also available in: Unified diff