Package nxt.db
Class BasicDb
- java.lang.Object
-
- nxt.db.BasicDb
-
- Direct Known Subclasses:
TransactionalDb
public class BasicDb extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BasicDb.DbProperties
-
Constructor Summary
Constructors Constructor Description BasicDb(BasicDb.DbProperties dbProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
analyzeTables()
java.sql.Connection
getConnection()
protected java.sql.Connection
getPooledConnection()
java.lang.String
getUrl()
void
init(DbVersion dbVersion)
void
shutdown()
-
-
-
Constructor Detail
-
BasicDb
public BasicDb(BasicDb.DbProperties dbProperties)
-
-
Method Detail
-
init
public void init(DbVersion dbVersion)
-
shutdown
public void shutdown()
-
analyzeTables
public void analyzeTables()
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getPooledConnection
protected java.sql.Connection getPooledConnection() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getUrl
public java.lang.String getUrl()
-
-