All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.baltoro.client.Connection Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
package io.baltoro.client;

import java.io.IOException;
import java.sql.SQLException;

class Connection implements AutoCloseable
{

	private java.sql.Connection con;
	
	Connection(java.sql.Connection con)
	{
		this.con = con;
	}
	
	
	Statement createStatement()
	throws SQLException
	{
		return new Statement(con.createStatement());
	}
	

	PreparedStatement prepareStatement(String sql)
	throws SQLException
	{
		return new PreparedStatement(con.prepareStatement(sql));
	}
	

	public void close1() throws IOException
	{
		LocalDB.connectionQueue.add(this);	
	}
	
	
	public void close()
	{
		LocalDB.connectionQueue.add(this);
	}

	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy