|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cesr.more.util.MMySqlService
public class MMySqlService
MORe
Provides means to connect to the DB defined in parameters of MSqlPa
and disconnect.
Field Summary | |
---|---|
protected static MMySqlService |
instance
The instance of this class |
Method Summary | |
---|---|
static ResultSet |
connect(String sql)
Execute the given SQL statement and return the according ResultSet |
static void |
disconnect()
Disconnect the current mySQL connection |
protected static Connection |
getConnection()
Returns the current connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static MMySqlService instance
Method Detail |
---|
protected static Connection getConnection() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException
InstantiationException
IllegalAccessException
ClassNotFoundException
SQLException
public static ResultSet connect(String sql) throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException
sql
- the statement to query
ClassNotFoundException
IllegalAccessException
InstantiationException
SQLException
public static void disconnect()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |