public boolean batchExecIntQuery(String command, Vector<int[]> values) throws SQLException
	{

		boolean value = false;
		Connection connection = null;
		PreparedStatement stmt = null;
		try
		{
			Class.forName(driver);
			connection = DriverManager.getConnection(url, username, passwd);
			connection.setAutoCommit(false);
			stmt = connection.prepareStatement(command);

			for (int i = 0; i < values.size(); i++)
			{
				int[] val = values.get(i);
				for (int j = 0; j < val.length; j++)
				{
					stmt.setInt((j + 1), val[j]);
				}

				stmt.addBatch();

			}

			stmt.executeBatch();
			value = true;

			connection.commit();
			stmt.close();
			stmt = null;
			connection.close();
			connection = null;
		}
		catch (BatchUpdateException b)
		{

			System.err.println("SQLException: " + b.getMessage());
			System.err.println("SQLState:  " + b.getSQLState());
			System.err.println("Message:  " + b.getMessage());
			System.err.println("Vendor:  " + b.getErrorCode());
			System.err.println("Update counts:  ");
			value = false;
			connection.rollback();
		}
		catch (Exception e)
		{
			System.out.println(e);
			value = false;
			connection.rollback();
		}

		finally
		{

			if (stmt != null)
			{
				try
				{
					stmt.close();
				}
				catch (SQLException e)
				{
				}
				stmt = null;
			}
			if (connection != null)
			{
				try
				{
					connection.close();
				}
				catch (SQLException e)
				{
				}
				connection = null;
			}
		}

		return value;
	}