Summary:
1.) SqlC will make generated classes not public by default anymore =>
by default a Sqlc generated class cannot be used outside if its java package
2.) This behavior can be changed per file by a adding new optional attribute in the xsql-file (accessModifier="public")
3.) most data-classes shipped by openbravo are now non-public
4.) The list of the public xsql files is attached


Hi,

with the introduction of modularity the need for a stable java API of openbravo has become even more important.

To be able to support a stable API we need to define the public/private split of the API so we can commit to keep the public part stable inside a full release cycle and to not break modules built on top of that API in some maintenance pack.

This also means that the part of the API which we define as non public should not be used by modules and even not be directly accessible by modules to avoid accidental use and reliance on them.

We have just committed the first part implementing this change to the pi repository. This change makes the SqlC-generated java classes non public by default. The corresponding issue for this change 9230 [1].

Attached is a list of xsql-files which we currently define as public. These can be accessed and used by modules and will be kept stable inside the release cycle.

To be able to do this change some (now non-public) xsql-files were moved so they could be made non-public.


To control the visibility of a xsql-file a new optional attribute can be used in the file. The details a explained in the Concepts/SQLC chapter of the developers guide at [2].

Regards,
Stefan Huehner


[1] https://issues.openbravo.com/view.php?id=9230
[2] http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Concepts/SQLC
./srcAD/org/openbravo/erpCommon/reference/ActionButton_data.xsql
./src/org/openbravo/authentication/Authentication_data.xsql
./src/org/openbravo/base/secureApp/ClassInfo_data.xsql
./src/org/openbravo/erpCommon/utility/WindowAccess_data.xsql
./src/org/openbravo/erpCommon/utility/WindowTree_data.xsql
./src/org/openbravo/erpCommon/utility/Menu_data.xsql
./src/org/openbravo/erpCommon/utility/Tab_data.xsql
./src/org/openbravo/erpCommon/utility/reporting/Template_data.xsql
./src/org/openbravo/erpCommon/utility/PrintJR_data.xsql
./src/org/openbravo/erpCommon/utility/DateTime_data.xsql
./src/org/openbravo/erpCommon/utility/Utility_data.xsql
./src/org/openbravo/erpCommon/ad_actionButton/ActionButtonDefault_data.xsql
./src/org/openbravo/erpCommon/modules/ModuleTree_data.xsql
./src/org/openbravo/erpCommon/ad_combos/OrganizationCombo_data.xsql
./src/org/openbravo/erpCommon/reference/List_data.xsql
./src/org/openbravo/erpCommon/reference/PInstanceProcess_data.xsql
./src/org/openbravo/erpCommon/businessUtility/Registration_data.xsql
./src/org/openbravo/erpCommon/businessUtility/BpartnerMisc_data.xsql
./src/org/openbravo/erpCommon/businessUtility/PAttributeSet_data.xsql
./src/org/openbravo/erpCommon/businessUtility/Heartbeat_data.xsql
./src/org/openbravo/erpCommon/businessUtility/TabAttachments_data.xsql
./src/org/openbravo/erpCommon/businessUtility/Tree_data.xsql
./src/org/openbravo/erpCommon/businessUtility/AccountTree_data.xsql
./src/org/openbravo/erpCommon/businessUtility/WindowTabs_data.xsql
./src/org/openbravo/erpCommon/businessUtility/Email_data.xsql
./src/org/openbravo/erpCommon/businessUtility/AccountingSchemaMisc_data.xsql
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Openbravo-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-development

Reply via email to