Irc-Unix.net

Главная | Actual Topics | Обратная связь | Guest Book | В избранное | Сделать домашней
Категории
 System & Utilities
 Unix News
 OS Emulator
 Developing
 Learning/Education
 Games
 Humour
Каталог статей
Все статьи

Antispam
Статьи
Биллу Гейтсу тоже предлагают избавиться ...
Вымогательство в борьбе со спамом
Календарь

December, 2017
ПнВтСрЧтПтСбВс
123
45678910
11121314151617
18192021222324
25262728293031
Опросы
Какой из этих ОС Вы отдаете большее предпочтение?

QNX
FreeBSD
Linux(any)
Solaris
Mac OS
Windows XP
Windows 2003
Что такое ОС? :)


Результаты
Другие опросы

Всего голосов: 325
Комментарии: 0
Ссылки

Архив Новостей
 December 2017 (4)
 November 2017 (15)
 October 2017 (19)
 September 2017 (18)
 August 2017 (13)
 February 2017 (14)
 January 2017 (19)
 December 2016 (16)
 November 2016 (16)
 October 2016 (21)
 September 2016 (18)
 August 2016 (16)
 July 2016 (16)
 June 2016 (20)
 May 2016 (18)
 April 2016 (15)
 March 2016 (22)
 February 2016 (17)
 January 2016 (15)
 December 2015 (15)
 November 2015 (22)
 October 2015 (20)
 September 2015 (17)
 August 2015 (25)
 July 2015 (20)
 June 2015 (23)
 May 2015 (21)
 April 2015 (17)
 March 2015 (19)
 February 2015 (9)
 January 2015 (23)
 December 2014 (9)
 November 2014 (13)
 October 2014 (12)
 September 2014 (18)
 August 2014 (20)
 July 2014 (10)
 June 2014 (12)
 May 2014 (12)
 April 2014 (10)
 March 2014 (22)
 February 2014 (10)
 January 2014 (8)
 December 2013 (26)
 November 2013 (53)
 October 2013 (40)
 September 2013 (48)
 August 2013 (63)
 July 2013 (56)
 June 2013 (52)
 May 2013 (49)
 April 2013 (67)
 March 2013 (74)
 February 2013 (63)
 January 2013 (62)
 December 2012 (62)
 November 2012 (66)
 October 2012 (68)
 September 2012 (48)
 August 2012 (75)
 July 2012 (60)
 June 2012 (71)
 May 2012 (69)
 April 2012 (85)
 March 2012 (86)
 February 2012 (90)
 January 2012 (81)
 December 2011 (103)
 November 2011 (118)
 October 2011 (74)
 September 2011 (2)
 June 2011 (110)
 May 2011 (118)
 April 2011 (111)
 March 2011 (112)
 February 2011 (101)
 January 2011 (119)
 December 2010 (117)
 November 2010 (118)
 October 2010 (131)
 September 2010 (117)
 August 2010 (226)
 July 2010 (351)
 June 2010 (305)
 May 2010 (319)
 April 2010 (343)
 March 2010 (329)
 February 2010 (311)
 January 2010 (312)
 December 2009 (266)
 November 2009 (156)
 July 2009 (101)
 June 2009 (279)
 May 2009 (365)
 April 2009 (348)
 March 2009 (347)
 February 2009 (323)
 January 2009 (318)
 December 2008 (237)
 November 2008 (155)
 October 2008 (334)
 September 2008 (310)
 August 2008 (343)
 July 2008 (362)
 June 2008 (322)
 May 2008 (591)
 April 2008 (1276)
 March 2008 (1658)
 February 2008 (250)
 January 2008 (6)
 November 2007 (1)
 September 2007 (1)
 June 2007 (1)
 May 2007 (1)
 March 2007 (1)
 January 2007 (2)
 December 2006 (1)
 October 2006 (2)
 September 2006 (1)
 August 2006 (2)

Add support for importing tables from LibreOffice Base to Kexi

System & Utilities

I am working under KDE community and my GSoC project is Add support for importing tables from LibreOffice Base to Kexi. My mentor for this project is Kexi maintainer and developer Jaroslaw Staniek. Here is the brief overview about this project and my current status in this project.

Project description

Kexi is an open source visual database creator. In kexi we can create database applications and perform queries. It also provides functionality to import database from other database sources. Currently kexi needs to add support to import database tables from odb files generated by LibreOffice Base. It is very important to have this functionality for kexi as more and more open source users are shifting to kexi. So, my task is to enable database migration from LibreOffice Base to Kexi.

Project details

My agenda is to implement classes which will enable database migration from .odb format to kexi. The main thing to note here is .odb format stores data in HSQLDB database format. There is not any functionality available to read hsqldb files from cpp code of Kexi and then migrate to kexi database. So, I have to use JDBC driver provided by HSQLDB project, that can be used in Java code.After that I am using Java Native Interface (JNI) to get database data and structure in cpp code.  I have implemented a java class which will read the data from the .odb format and have to call my java methods from my C++ program using JNI. The java program consists of database connection method to connect to HSQLDB. A little idea about how I connect to  HSQLDB:

public void connectDatabase()
{
Connection con;
con = DriverManager.getConnection( “jdbc:hsqldb:file:”+ path to directory+file name,”SA”,  “” );
}

I call this driver connection method from my C++ code. For example,

bool odbMigrate::drv_connect()
{
JNIEnv *env;
jclass clss = env->FindClass(<class_name>);
jmethodID method = env->GetMethodID(clss, “<init>”, “()V”);
jobject object = env->NewObject(clss, method);
method = env->GetMethodID(clsH, “connectDatabase”, “()V”);
env->CallVoidMethod(object,method,NULL);
}

However,  we have to set lots of things to implement JNI. But this was a little overview about how we can make an object and call the method of Java class from cpp code.

This task is little bit complex as we have to set environment variables, link libraries to compile Java as well as C++ files. I have compiled my code independently and it is running successfully. So, right now I am working on settings these things in cmake files to compile with the whole kexi project.






  


Разместил: Planet KDE | Дата: 12.06.2014 | Прочитано: 401 | Раздел: System & Utilities   

Рейтинг статьи

Средняя оценка: 0.00/0Средняя оценка: 0Всего голосов:0

Отлично
Хорошо Нормально Пойдёт Плохо


Смотрите также связанные темы

23.05.2013 [TORRENT] Neptune 3.1
The changes in an overview: *New kernel 3.9.2 *KDE SC 4.10.3 with customized notification center *updated Debian base to 7.0 Wheezy *Added f2fs filesystem support *Upgraded Gparted to handle new filesystems and load faster *fixed zevenos-hardwaremanager *Updated LibreOffice to version 4.0.3 *Added knetworkmounter *Added Apper as default software ... (more)
29.12.2015 Luxoft Teams Up with QNX on Automotive ADAS Technologies
"Collaboration focused on advanced technologies, including road scene reconstruction and augmented navigation, which can enable semiautonomous driving.December 15, 2015 Luxoft Holding, Inc. NYSE:LXFT, a leading provider of software development services and innovative IT solutions to a global client base, and QNX Software Systems Limited, a subsidiary of BlackBerry Limited, today announced a new technology partnership focused on ADAS systems used by automotive original equipment manufacturers OEMs and Tier 1 suppliers. As part of the initiative, Luxoft will leverage its expertise in road-model...
13.03.2008 Storage / SAN Compatibility Guide For ESX Server 3.5 and ESX Server 3i
http://www.vmware.com/pdf/vi35_san_guide.pdf Last Updated: March 12, 2008 What’s New Changes since the last edition of this guide include: Added Direct connect support column to Fibre Channel SANs tables. See “Fibre Channel SANs” on page 4. Added support for NetApp FAS200 Series....
14.04.2008 security/seahorse - 2.22.1_1
Add some improved logic to seahorse to have it gracefully fall back to insecure memory usage for sensitive storage when gnome-keyring doesn't have the privileges to use mlock(2)/munlock(2). This behavior is much more useful than the ungraceful dereference of a NULL pointer (and subsequent crash of the seahorse programs) that currently is employed. This patch makes seahorse (and seahorse-agent, seahorse-daemon, etc.) warn the user about having to use secure memory so that consumers such as Evolution and other software can make use of seahorse. A larger and more valuable project would be to pr...
22.08.2008 Wine 1.1.3 Released
The Wine development release 1.1.3 is now available. What's new in this release: Beginnings of ddraw overlay support. Many more crypt32 functions. Improved support for tables in Richedit. Support for NETWM window maximization. Many installer fixes. Tweaks for better PulseAudio support. Various bug fixes. The source is available now. Binary packages are in the process of being built, and will appear soon at their respective download locations.
15.08.2012 Calligra 2.5 Office and Creativity Suite Released
Words, the word processor, has among other things improved support for editing of tables, tight run-around of text around images, manipulation of table borders, and dragging of text.
10.10.2008 Wine 1.1.6 Released
The Wine development release 1.1.6 is now available. What's new in this release: Beginnings of schannel implementation using GnuTLS. Many fixes from various code analysis tools. Support for X11 desktop work area. Fixes for Richedit tables. More complete JavaScript support. Various bug fixes. The source is available now. Binary packages are in the process of being built, and will appear soon at their respective download locations.
01.12.2010 HPC Application Performance on ESX 4.1: Memory Virtualization
HPC Application Performance on ESX 4.1: Memory Virtualization This is the third part in an ongoing series on exploring performance issues of virtualizing HPC applications. In the first part, we described the setup and considered pure memory bandwidth using Stream. The second part considered the effect of network latency in a scientific application (NAMD) that ran across several virtual machines.  Here we look at two of the tests in the HPC Challenge (HPCC) suite:  StarRandomAccess and HPL. While certainly not spanning all possible memory access patterns found in HPC apps, these two tests ...
07.12.2010 Performance and Use Cases of VMware DirectPath I/O for Networking
Performance and Use Cases of VMware DirectPath I/O for Networking Summary VMware DirectPath I/O is a technology, available from vSphere 4.0 and higher that leverages hardware support (Intel VT-d and AMD-Vi) to allow guests to directly access hardware devices. In the case of networking, a VM with DirectPath I/O can directly access the physical NIC instead of using an emulated (vlance, e1000) or a para-virtualized (vmxnet, vmxnet3) device. While both para-virtualized devices and DirectPath I/O can sustain high throughput (beyond 10Gbps), DirectPath I/O can additionally save CPU cycles in ...
14.02.2011 New Articles Published for Week Ending 2/12/11
New Articles Published for Week Ending 2/12/11 VMware Capacity Planner VMware Capacity Planner Data Manager 2.8 randomly displays the message: ERROR: An unexpected error occurred! (1034334) Date Published: 2/10/2011 VMware ESX Unable to join ESX/ESXi 4.1 hosts to the vCenter Server 4.1 inventory when using the Juniper SRX-650 firewall (1032650) Date Published: 2/8/2011 Converting a Linux operating system fails with the error: Unable to create virtual machine (1023173) Date Published: 2/11/2011 Installing a Windows virtual machine fails with the error: A required CD/DVD drive device drive...
Нет комментариев. Почему бы Вам не оставить свой?
Вы не можете отправить комментарий анонимно, пожалуйста зарегистрируйтесь.
Google Search
Google

Web irc-unix.net

Топ Новостей
1: KDE Community announces fully open source Plasma Mobile
Hot NEWS!
Просмотров - 589


2: KWallet5 can be auto-unlocked during login again
Просмотров - 526

3: Interview with Laura
Просмотров - 510

4: Use ownCloud provided Packages, then VM, then Zip, no distro packages.
Просмотров - 497

5: Plasma Components on Android: Accelerating Subsurface Mobile Development
Просмотров - 484

6: VMware Workstation 11 and kwin - hangs and hiccups (solved?)
Просмотров - 461

7: Plasma 5 Powers KaOS Productivity
Просмотров - 456

8: KWrite on Mac – Application Bundle
Просмотров - 451

9: New Year Calligra Words Sprint
Просмотров - 428

10: FOSDEM Desktops DevRoom 2016 Call for Participation
Просмотров - 426

11: digiKam 5.0.0-beta2 is released
Просмотров - 418

12: Interview with Pierre Geier
Просмотров - 411

13: back in the habit
Просмотров - 403

14: Amarok is slowly catching up
Просмотров - 391

15: My experience at Randa Meetings, 2015
Просмотров - 384

Google 120X240
Ссылки

Главная | Actual Topics | Статьи | Обратная связь | Guest Book
Генерация: 0.927 сек. и 12 запросов к базе данных за 0.875 сек.
Powered by SLAED CMS © 2005-2007 SLAED. All rights reserved.