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