Code example for Statement

Methods: setQueryTimeout

0
		try 
		{ 
			Class.forName("org.sqlite.JDBC");
			connection = DriverManager.getConnection("jdbc:sqlite:"+databaseName);
			statement = connection.createStatement();
			statement.setQueryTimeout(10);
			 
			createTables(); 
		}  
		catch(Exception e)
		{ 
			e.printStackTrace();
		} 
	} 
	 
	public void close()	 
	{ 
		try 
		{ 
			connection.close();
		}