public static String getUpdateQuery(String tableName, Map<String, String> columnsToBeSet, Map<String, String> whereConditionColValMap, boolean putSingleQuote)
	{
		if (tableName != null)
		{
			if (columnsToBeSet != null && columnsToBeSet.size() > 0)
			{
				String updateQuery = "update " + tableName + " set ";
				boolean isFirstColToBeSet = true;
				for (Entry<String, String> collToBeSet : columnsToBeSet.entrySet())
				{
					String column = collToBeSet.getKey();
					String value = collToBeSet.getValue();
					if(isFirstColToBeSet)
					{
						isFirstColToBeSet = false;
						updateQuery += column + " = "+(value==null?"NULL":"'" + value.replace("'", "''")+"'");
					}
					else
						updateQuery += "," + column + " = "+(value==null?"NULL":"'" + value.replace("'", "''")+"'");
				}
				updateQuery+=getWhereCondition(whereConditionColValMap, putSingleQuote);
				return updateQuery;
			}
		}
		return "";
	}