Best code examples for Java 8 Driver class (java.sql.Driver)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 Driver class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 Driver examples from Open Source projects
This code example shows how to use the following methods: connect
136:	Assert.notNull(driver, "Driver must not be null"); 
-
140:	return driver.connect(url, props); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: acceptsURL
21:	assertTrue(drv.acceptsURL("jdbc:orient:local:./working/db/test")); 
-
23:	assertFalse(drv.acceptsURL("local:./working/db/test")); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getClass, getMajorVersion, getMinorVersion, jdbcCompliant
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
This code example shows how to use the following methods: getClass, getMajorVersion, getMinorVersion
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
This code example shows how to use the following methods: connect
31:	Connection connection = driver.connect(url, props); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: connect
77:	Connection connection = driver.connect(getUrl(), connectionProps); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: acceptsURL
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
This code example shows how to use the following methods: connect
45:	Connection connection = driver.connect(url, connectProperties); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMajorVersion
254:	return this.driver.getMajorVersion(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: acceptsURL
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
This code example shows how to use the following methods: connect
38:	return _driver.connect(_connectUri,_props); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: connect
175:	Connection newConnection = driver.connect(url, properties); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: connect
120:	return m_driver.connect(m_dbUrl, m_dbProps); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: acceptsURL, connect
33:	return new ConnectionWrapper(driver.connect(url, info)); 
-
40:	return driver.acceptsURL(s); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: connect
78:	return driver.connect(url, properties); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: connect
702:	dbConnection = driver.connect(connectionURL, props); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: connect
91:	m_connection = driver.connect(url, props); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: connect
483:	Connection connection = driverObject.connect(url, properties); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: connect
53:	return driver.connect( url, info ); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: connect
45:	Connection connection = driver.connect(url, connectProperties); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: connect
591:	conn = driver.connect(connectionURL, props); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: connect
57:	return _driver.connect(_url, props); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: acceptsURL
21:	assertTrue(drv.acceptsURL("jdbc:orient:local:./working/db/test")); 
-
23:	assertFalse(drv.acceptsURL("local:./working/db/test")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMinorVersion
59:	return driver.getMinorVersion(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: connect
405:	con = m_Driver.connect(m_url, m_ConnectionProtocol ); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: connect
49:	Connection conn = driver.connect("jdbc:h2:mem:", null); 
-
60:	conn = driver.connect("jdbc:h2:" + getBaseDir() + "/oldVersion", null); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: connect
28:	return this.driver.connect(u, p); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: connect
581:	conn = driver.connect(connectionURL, props); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getMajorVersion
45:	missingService.getMajorVersion(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: connect
55:	Connection conn = driver.connect(this.jdbcUrl, props); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: connect
136:	Assert.notNull(driver, "Driver must not be null"); 
-
140:	return driver.connect(url, props); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: connect
48:	Connection conn = driver.connect("jdbc:h2:mem:", null); 
-
59:	conn = driver.connect("jdbc:h2:" + getBaseDir() + "/oldVersion", null); 
Full Snippet Info
4
CodeRank
See Code Examples for Java 8 Driver Methods: