Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7f7ef9da authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- revised so that it compiles

parent 456947b0
No related branches found
No related tags found
No related merge requests found
...@@ -62,12 +62,11 @@ public abstract class StoreRDFFormat implements DBService{ ...@@ -62,12 +62,11 @@ public abstract class StoreRDFFormat implements DBService{
} }
} }
public int init(){ public void init(){
try { try {
conn = DriverManager.getConnection(url, "root", "1234"); conn = DriverManager.getConnection(url, "root", "1234");
st = (Statement) conn.createStatement(); st = (Statement) conn.createStatement();
} catch(Exception ex) {return -1;} } catch(Exception ex) {}
return 1;
} }
public int init(String id, String password){ public int init(String id, String password){
...@@ -263,14 +262,12 @@ public abstract class StoreRDFFormat implements DBService{ ...@@ -263,14 +262,12 @@ public abstract class StoreRDFFormat implements DBService{
return 1; return 1;
} }
public int close(){ public void close(){
try { try {
conn.close(); conn.close();
st.close(); st.close();
rs.close(); rs.close();
return 1;
} catch (Exception ex) { } catch (Exception ex) {
return -1;
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment