Nuclos API conventions: naming, insert, update, delete, Id, UID, exception, dispatch thread, code style. |
Language: Deutsch · English
Conventions for the Nuclos API – naming of methods/ids and rules for error handling.
On this page |
Binding conventions for developing with the Nuclos API – for consistent, maintainable code.
| Rule | Example |
|---|---|
Collections: suffix ...All() | insert(BusinessObject) vs. insertAll(Collection<BusinessObject>) |
Delete: delete | not remove, drop … |
Insert: insert | not new, create … |
Update: update | not modify … |
Ids: Id instead of ID | getId(), returning methods end in ...Id() |
| Id data type | always Long or UID |
RuntimeException (e.g. CommonFatalException) on the dispatch thread – it crashes/freezes the GUI.Exception/RuntimeException; if necessary, keep it minimal.Examples of clean style: Code Style and bad → right. |