Package org.javlo.service.database
Class DataBaseService
- java.lang.Object
-
- org.javlo.service.database.DataBaseService
-
public class DataBaseService extends Object
-
-
Constructor Summary
Constructors Constructor Description DataBaseService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
getConnection(String dbname)
static String
getDefaultDbName(ContentContext ctx)
static DataBaseService
getInstance(GlobalContext globalContext)
boolean
isInternalDb()
static void
main(String[] args)
void
releaseConnection(Connection conn)
void
releaseConnection(Statement st, Connection conn)
-
-
-
Method Detail
-
getInstance
public static DataBaseService getInstance(GlobalContext globalContext)
-
getDefaultDbName
public static String getDefaultDbName(ContentContext ctx)
-
getConnection
public Connection getConnection(String dbname) throws Exception
- Throws:
Exception
-
releaseConnection
public void releaseConnection(Connection conn) throws SQLException
- Throws:
SQLException
-
releaseConnection
public void releaseConnection(Statement st, Connection conn) throws SQLException
- Throws:
SQLException
-
isInternalDb
public boolean isInternalDb()
-
main
public static void main(String[] args)
-
-