public class ConnectionBuilder extends Object
| Modifier and Type | Method and Description | 
|---|---|
void | 
dataSource(DataSource dataSource)
Sets a  
DataSource to be used by this configuration. | 
ConnectionBuilder | 
db(String dbName)
Name of a database. 
 | 
void | 
jdbc(String driver,
    String url,
    Properties props)
Configure expanded JDBC parameters for opening a connection if needed 
 | 
void | 
jdbc(String driver,
    String url,
    String user,
    String password)
Configure standard JDBC parameters for opening a connection. 
 | 
void | 
jndi(String jndi)
Provide a name of a JNDI datasource configured for runtime. 
 | 
ConnectionBuilder | 
testing()
Marks this connection to be used for testing. 
 | 
public void jndi(String jndi)
jndi - name of a JNDI datasourcepublic void jdbc(String driver, String url, String user, String password)
driver - class name of driverurl - JDBC URLuser - user namepassword - passwordpublic void jdbc(String driver, String url, Properties props)
driver - class name of driverurl - JDBC URLprops - properties with additional parameters a driver can take.public ConnectionBuilder db(String dbName)
dbName - name od database for ActiveJDBC models.public ConnectionBuilder testing()
DBSpec, DBControllerSpec,
 DBIntegrationSpec, AppIntegrationSpec from activeweb-testing module, they all will use a connection that is marked
 by this method.public void dataSource(DataSource dataSource)
DataSource to be used by this configuration.dataSource - instance of a datasourceCopyright © 2020 JavaLite. All rights reserved.