Revision 8500 trunk/libraries/libJCRS/src/org/gvsig/crs/repository/Iau2000Repository.java
Iau2000Repository.java | ||
---|---|---|
58 | 58 |
*/ |
59 | 59 |
public class Iau2000Repository implements ICrsRepository { |
60 | 60 |
|
61 |
EpsgConnection connect = null; |
|
61 |
EpsgConnection connection = null;
|
|
62 | 62 |
|
63 | 63 |
public Iau2000Repository() { |
64 |
connect = new EpsgConnection(); |
|
65 |
connect.setConnectionIAU2000(); |
|
64 |
connection = new EpsgConnection(); |
|
66 | 65 |
} |
67 | 66 |
|
68 | 67 |
/** |
... | ... | |
79 | 78 |
"FROM IAU2000 " + |
80 | 79 |
"WHERE iau_code = " + code; |
81 | 80 |
|
82 |
ResultSet result = Query.select(sentence,connect.getConnection()); |
|
81 |
connection.setConnectionIAU2000(); |
|
82 |
ResultSet result = Query.select(sentence,connection.getConnection()); |
|
83 | 83 |
try { |
84 |
connect.shutdown(); |
|
84 |
connection.shutdown();
|
|
85 | 85 |
} catch (SQLException e) { |
86 | 86 |
// TODO Auto-generated catch block |
87 | 87 |
e.printStackTrace(); |
Also available in: Unified diff