Search in sources :

Example 21 with Connection

use of org.adbcj.Connection in project adbcj by mheath.

the class Test method main.

public static void main(String[] args) throws DbException, Exception {
    ConnectionManager cm = ConnectionManagerProvider.createConnectionManager("adbcj:mysqlnetty://localhost/test", "foo", "dawg");
    Connection connection = cm.connect().get();
    connection.close(true);
}
Also used : ConnectionManager(org.adbcj.ConnectionManager) Connection(org.adbcj.Connection)

Aggregations

Connection (org.adbcj.Connection)21 ResultSet (org.adbcj.ResultSet)11 DbException (org.adbcj.DbException)8 CountDownLatch (java.util.concurrent.CountDownLatch)5 ConnectionManager (org.adbcj.ConnectionManager)5 TimeoutException (java.util.concurrent.TimeoutException)4 DbFuture (org.adbcj.DbFuture)4 Result (org.adbcj.Result)4 DbListener (org.adbcj.DbListener)3 ArrayList (java.util.ArrayList)2 DbSessionFuture (org.adbcj.DbSessionFuture)2 Row (org.adbcj.Row)2 Value (org.adbcj.Value)2 Parameters (org.testng.annotations.Parameters)2 Test (org.testng.annotations.Test)2 SQLException (java.sql.SQLException)1 LinkedList (java.util.LinkedList)1 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 DbFutureConcurrentProxy (org.adbcj.support.DbFutureConcurrentProxy)1 DefaultResult (org.adbcj.support.DefaultResult)1