You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
425 B
21 lines
425 B
package de.hs_fulda.ciip.projjpn;
|
|
|
|
import java.sql.Connection;
|
|
import java.sql.DriverManager;
|
|
import java.sql.SQLException;
|
|
|
|
public class Games {
|
|
private String databaseURL = "jdbc:ucanaccess://GamesDB.accdb";
|
|
|
|
public boolean checkForConnection() {
|
|
try {
|
|
Connection connection = DriverManager.getConnection(databaseURL);
|
|
|
|
connection.close();
|
|
return true;
|
|
|
|
} catch (SQLException e) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|