Code examples for Driver

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
136:	Assert.notNull(driver, "Driver must not be null"); 
-
140:	return driver.connect(url, props); 
Full Snippet Info
7
CodeRank
69:	int major = this.driver.getMajorVersion(); 
70:	int minor = this.driver.getMinorVersion(); 
71:	boolean compliant = this.driver.jdbcCompliant(); 
72:	return new InstalledDriver(this.adapter.getId(), this.driver.getClass().getName(), null, null, major, minor, compliant ); 
Full Snippet Info
6
CodeRank
21:	assertTrue(drv.acceptsURL("jdbc:orient:local:./working/db/test")); 
-
23:	assertFalse(drv.acceptsURL("local:./working/db/test")); 
Full Snippet Info
6
CodeRank
35:	System.out.println("Driver class: "+d.getClass().getName()); 
36:	System.out.println("Driver Major Version: "+d.getMajorVersion()); 
37:	System.out.println("Driver Minor Version: "+d.getMinorVersion()); 
Full Snippet Info
6
CodeRank
45:	Connection connection = driver.connect(url, connectProperties); 
Full Snippet Info
5
CodeRank
31:	Connection connection = driver.connect(url, props); 
Full Snippet Info
5
CodeRank
77:	Connection connection = driver.connect(getUrl(), connectionProps); 
Full Snippet Info
5
CodeRank
123:	assertFalse(driver.acceptsURL("jdbc:phoenix://localhost")); 
124:	assertFalse(driver.acceptsURL("jdbc:phoenix:localhost;test=true;bar=foo")); 
125:	assertFalse(driver.acceptsURL("jdbc:phoenix:localhost;test=true")); 
126:	assertTrue(driver.acceptsURL("jdbc:phoenix:localhost:123")); 
127:	assertTrue(driver.acceptsURL("jdbc:phoenix:localhost:123;untest=true")); 
128:	assertTrue(driver.acceptsURL("jdbc:phoenix:localhost:123;untest=true;foo=bar")); 
Full Snippet Info
5
CodeRank
254:	return this.driver.getMajorVersion(); 
Full Snippet Info
5
CodeRank
115:	if ((driver != null) && !driver.acceptsURL(url)) 
-
120:	return new DriverDatabase(this.id, connectionSource, url, new Properties(this.properties), this.credentials, this.weight, this.locality); 
Full Snippet Info
5
CodeRank
38:	return _driver.connect(_connectUri,_props); 
Full Snippet Info
5
CodeRank
175:	Connection newConnection = driver.connect(url, properties); 
Full Snippet Info
5
CodeRank
33:	return new ConnectionWrapper(driver.connect(url, info)); 
-
40:	return driver.acceptsURL(s); 
Full Snippet Info
5
CodeRank
78:	return driver.connect(url, properties); 
Full Snippet Info
5
CodeRank
53:	return driver.connect( url, info ); 
Full Snippet Info
5
CodeRank
21:	assertTrue(drv.acceptsURL("jdbc:orient:local:./working/db/test")); 
-
23:	assertFalse(drv.acceptsURL("local:./working/db/test")); 
Full Snippet Info
5
CodeRank
699:	dbConnection = driver.connect(connectionURL, props); 
Full Snippet Info
4
CodeRank
66:	return driver.getPropertyInfo(url, info); 
Full Snippet Info
4
CodeRank
59:	return wrap(_driver.connect(url, info)); 
Full Snippet Info
4
CodeRank
405:	con = m_Driver.connect(m_url, m_ConnectionProtocol ); 
Full Snippet Info
5
CodeRank