Difference between revisions of "User:Trigger"

From iDempiere
Line 1: Line 1:
−
=About Me=
+
==Who is Trigger?==
−
I am Ralph WAFO, a software engineer and developer. I am more interested
+
Un jeune Camerounais réaliste, calme et réfléchis, esthète et amoureux du travail bien fait. Sa fixation innée sur les détails lui procure d'excellentes aptitudes sociales. Épanouis dans les relations inter-individuelles, il est quotidiennement en proie à la méditation et prend plaisir dans le partage et les échanges.
−
by object oriented programming paradigm and mostly use java programming language.
 
−
<p>I want to impact the world and I will become the most powerful
 
−
system analyst of this century... Yes, The Most POWERFULL!!!</p>
 
−
<p>Understand source code, debug, test and document my work is a really
 
−
pleasure for me. I am really glad when I perform a task properly, document and share my work.
 
−
I really like team work, It is very important for me to be social and helpful. I also like to
 
−
share my passion with the others.</p>
 
−
<p>I'm living my dream through [http://wiki.idempiere.org/wiki/Steve_Jobs_Project The Steve Jobs Project]
 
−
supported by [http://www.red1.org Redhuan] and [http://www.itkamer.com IT-Kamer company Ltd] which is lead
 
−
by Stanley Mungwe.
 
−
<br>[http://www.red1.org Redhuan]'s trainings are more interesting and he teachs us more about
 
−
the 21<sup>st</sup> Century skills and how to get them. At the end of a particular training, i got a source code
 
−
of an free and open source software from him...</p>
 
−
<p>[http://sourceforge.net/projects/openbravopos POS] source code is quite wonderful. I have gone through briefly and seen how the initialisation
 
−
and configuration of apps are performed into the code... You surely understand it !!! I cannot resist to
 
−
produce a good documentation to ease the use of this source code. Do you want to follow me in this
 
−
amazing adventure? Read the next section!</p>
 
  
−
= What I am doing now =
+
===My qualifications===
−
I am working on the most exciting project in the world: [http://wiki.idempiere.org/wiki/Steve_Jobs_Project|The Steve Jobs Project] !!!
+
<ul>
−
<br>Do you know anything about [http://sourceforge.net/projects/openbravopos Point Of Sale]?
+
<li>IT Teacher</li>
−
<br>This is an essay about technical documentation of the source code of OpenBravo Point Of Sale.
+
<li>System Analyst</li>
 +
<li>Design engineer</li>
 +
<li>Developper</li>
 +
</ul>
  
−
==Technical Documentation==
+
===Hobbies===
 +
<ul>
 +
<li>Jouer au football</li>
 +
<li>déssiner</li>
 +
<li><b>programmer (Ma Passion)</b></li>
 +
</ul>
  
−
===Default Database Configuration Properties===
+
===My Dream===
−
<table>
+
Entrer dans l'histoire
−
<tr>
 
−
<td>[[File:pos_project_tree.png]]</td>
 
−
<td>
 
−
<p>Let's start by describing the data model and show, into the code,<br>how the script define the DataBase and configuration properties...</p>
 
−
<p>I suppose you have [http://wiki.openbravo.com/wiki/Projects:POS/Openbravo_POS_Developer_Guide imported the project source code] successfully.</p>
 
−
<td>
 
−
</tr>
 
−
</table>
 
−
<table>
 
−
<tr>
 
−
<td>In NetbeansIDE your project should be like that on the picture below.
 
−
<br>When you run the project the first time, the application notifies you because it does not find a database and informs you that it will create a default database. Just click on Yes!</td>
 
−
<td>[[File:notification.png]]</td>
 
−
</tr>
 
−
</table>
 
−
<p>Now take a look at the IDE console. We can see that the class responsible to application configurations is ''com.openbravo.pos.forms.AppConfig''.</p>
 
−
[[File:output-run-screen.png]]
 
−
<p>The following is an UML Class diagram for ''com.openbravo.pos.forms.AppConfig''</p>
 
−
<p>[[File:AppConfig-UML-Model.png]]</p>
 
−
Try to open the file into your IDE and focus on the part of code in which database parameters are configured. Into this class, the method in charge to initialise the default value of configuration parameters is ''loadDefault''.
 
−
private void loadDefault() {
 
−
 
−
        m_propsconfig = new Properties();
 
−
 
−
        String dirname = System.getProperty("dirname.path");
 
−
        dirname = dirname == null ? "./" : dirname;
 
−
 
−
        m_propsconfig.setProperty("db.driverlib",
 
−
              new File(new File(dirname), "lib/derby.jar").getAbsolutePath());
 
−
        m_propsconfig.setProperty("db.driver", "org.apache.derby.jdbc.EmbeddedDriver");
 
−
        m_propsconfig.setProperty("db.URL", "jdbc:derby:" +
 
−
              new File(new File(System.getProperty("user.home")),
 
−
                  AppLocal.APP_ID + "-database").getAbsolutePath() + ";create=true");
 
−
        m_propsconfig.setProperty("db.user", "");
 
−
        m_propsconfig.setProperty("db.password", "");
 
−
        ...
 
−
        ...
 
−
}
 
−
<table>
 
−
<tr>
 
−
<td>At this level we can see the default parameter by using the debugger. Just create a breakpoint, run debugger and check variable state. I let you try it. The following pictures show the default value of the variable on my own computer. The other configuration properties are into the same methods ''loadDefault''. Browse it to have an idea.</td>
 
−
<td>[[File:defautl-variable-values.png]]</td>
 
−
<tr>
 
−
</table>
 
−
<p>We can proceed now to understand how the script automatised the creation of the default database. This involve how the script get a session and execute SQL queries. But those who are curius, take a look at this class: ''com.openbrave.pos.forms.DataLogicSystem''.</p>
 
  
−
===Creation of the default database===
+
==What am i doing?==
−
Now, we know how the script load the [[User:Trigger#Default_Database_Configuration_Properties|database configuration properties]]. In this section, we will see how the script automatised his creation. This involves to know how the script get a session and create the database scheme. Let us go through the source code!
+
===The Steve Jobs Project===
−
<p>The class which is responsible to get a session and create the default database is ''com.openbravo.pos.forms.JRootApp''.
+
[http://wiki.idempiere.org/wiki/Steve_Jobs_Project The Steve Jops Project] est supporté par :
 +
<ul>
 +
<li>[http://wiki.idempiere.org/wiki/User:Red1 Redhuan] : élu Guru de la programmation en java par la communauté OpenSource du projet ERP[[http://www.red1.org red1.org]], sa rencontre a modifier complètement ma vision de la programmation, de l'ingenieurie du logiciel, du Web, du monde !</li>
 +
<li>Dr. -ing Mungwe Stanley CEO of [http://www.itkamer.com IT-Kamer Company Ltd] et en charge de « School of Media Design and Information Technology » à « Landmark University College » : À qui je dois l'immense honneur de participer à ce projet.</li>
 +
</ul>
 +
===Redhuan's Training===
 +
Les grandes ligne du dernier cours [http://wiki.idempiere.org/wiki/Red1_Visit_Schedule ici].
 +
 
 +
===My Challenge===
 +
Produire une documentation technique du [http://www.sourcefourge.net/projects/openbravopos code source] de OpenBravo Point Of Sale (OpenBravo POS). Pour avoir un aperçu de mon travail cliquer sur un des liens suivants :
 +
<ul>
 +
<li>[http://wiki.idempiere.org/wiki/Steve_Jobs_Project/POS/Documentation:fr Documentation technique]</li>
 +
<li>[http://wiki.idempiere.org/wiki/Steve_Jobs_Project/POS/Documentation:en Technical Documentation]</li>
 +
</ul>

Revision as of 11:37, 14 August 2014

Who is Trigger?

Un jeune Camerounais réaliste, calme et réfléchis, esthète et amoureux du travail bien fait. Sa fixation innée sur les détails lui procure d'excellentes aptitudes sociales. Épanouis dans les relations inter-individuelles, il est quotidiennement en proie à la méditation et prend plaisir dans le partage et les échanges.

My qualifications

  • IT Teacher
  • System Analyst
  • Design engineer
  • Developper

Hobbies

  • Jouer au football
  • déssiner
  • programmer (Ma Passion)

My Dream

Entrer dans l'histoire

What am i doing?

The Steve Jobs Project

The Steve Jops Project est supporté par :

  • Redhuan : élu Guru de la programmation en java par la communauté OpenSource du projet ERP[red1.org], sa rencontre a modifier complètement ma vision de la programmation, de l'ingenieurie du logiciel, du Web, du monde !
  • Dr. -ing Mungwe Stanley CEO of IT-Kamer Company Ltd et en charge de « School of Media Design and Information Technology » à « Landmark University College » : À qui je dois l'immense honneur de participer à ce projet.

Redhuan's Training

Les grandes ligne du dernier cours ici.

My Challenge

Produire une documentation technique du code source de OpenBravo Point Of Sale (OpenBravo POS). Pour avoir un aperçu de mon travail cliquer sur un des liens suivants :

Cookies help us deliver our services. By using our services, you agree to our use of cookies.