Uses of Class
org.javalite.activejdbc.DB
-
Uses of DB in org.javalite.activejdbc
Modifier and TypeMethodDescriptionstatic DB
Base.open()
This method will open a connection defined in the file 'database.properties' set by an initial previous call toDBConfiguration.loadConfiguration(String)
.static DB
Opens a connection from JNDI based on a registered name.static DB
Opens a new connection based on JDBC properties and attaches it to a current thread.static DB
Base.open(String driver, String url, Properties props)
Opens a new connection in case additional driver-specific parameters need to be passed in.static DB
Base.open(String jndiName, Properties jndiProperties)
Opens a new connection from JNDI data source by name using explicit JNDI properties.static DB
Base.open(DataSource dataSource)
Opens a connection from a datasource.DB.open()
This method will open a connection defined in the file 'database.properties' set by an initial previous call toDBConfiguration.loadConfiguration(String)
.Opens a connection from JNDI based on a registered name.Opens a new connection based on JDBC properties and attaches it to a current thread.DB.open(String driver, String url, Properties props)
Opens a new connection in case additional driver-specific parameters need to be passed in.DB.open(String jndiName, Properties jndiProperties)
Opens a new connection from JNDI data source by name using explicit JNDI properties.DB.open(DataSource datasource)
Opens a connection from a datasource.DB.open(ConnectionConfig config)
This method is used internally by the framework.