|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cesr.sesamgim.util.GMySqlService
public class GMySqlService
Field Summary | |
---|---|
protected static GMySqlService |
instance
The instance of this class |
Method Summary | |
---|---|
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. |
static GMySqlService |
getInstance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static GMySqlService instance
Method Detail |
---|
public static GMySqlService getInstance()
protected static Connection getConnection() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException
InstantiationException
IllegalAccessException
ClassNotFoundException
SQLException
public ResultSet connect(String sql) throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException
sql
- the statement to query
SQLException
InstantiationException
IllegalAccessException
ClassNotFoundException
public static void disconnect()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |