Package ch.weetech.database
Class DatabaseManager
- java.lang.Object
-
- ch.weetech.database.DatabaseManager
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class DatabaseManager extends java.lang.Object implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description DatabaseManager(java.lang.String username, java.lang.String password, java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Resultexecute(java.lang.String query)voidinit()voidshutdown()
-
-
-
Method Detail
-
init
public void init() throws java.lang.Exception- Throws:
java.lang.Exception
-
shutdown
public void shutdown()
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
execute
public Result execute(java.lang.String query)
-
-