public class WikipediaDriverManager
extends java.lang.Object
cat.talp.lump.co.db.DriverManagerClass fromcat.lump.aq.basics.config.MySQLWikiConfiguration.
The class, cristina| Constructor and Description |
|---|
WikipediaDriverManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection
|
void |
closeStatement() |
void |
createConnection()
Creates the connection to the database
|
static void |
main(java.lang.String[] args) |
java.sql.ResultSet |
runStatement(java.lang.String statement) |
void |
setDB(java.lang.String db) |
boolean |
tableExists(java.lang.String tableName,
java.lang.String db)
Checks if a table exists in a database
|
void |
test()
Tests the connection by displaying the databases
|
public static void main(java.lang.String[] args)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void createConnection()
#close()}public void test()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean tableExists(java.lang.String tableName,
java.lang.String db)
throws java.sql.SQLException
tableName - String with the name of the tabledb - java.sql.SQLExceptionpublic void setDB(java.lang.String db)
public java.sql.ResultSet runStatement(java.lang.String statement)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void closeStatement()
throws java.sql.SQLException
java.sql.SQLException