Sie zeigen eine alte Version dieser Seite an. Zeigen Sie die aktuelle Version an.

Unterschiede anzeigen Seitenhistorie anzeigen

« Vorherige Version anzeigen Version 5 Nächste Version anzeigen »

globe with meridians Language: Deutsch · English

open book Conventions for Nuclos API development

Conventions for the Nuclos API – naming of methods/ids and rules for error handling.

REFERENZ DEVELOPER STAND: JUL 2026 GILT FUER NUCLOS 4.2026.X

Auf dieser Seite

Binding conventions for developing with the Nuclos API – for consistent, maintainable code.

Naming

RuleExample
Collections: suffix ...All()insert(BusinessObject) vs. insertAll(Collection<BusinessObject>)
Delete: deletenot remove, drop
Insert: insertnot new, create
Update: updatenot modify
Ids: Id instead of IDgetId(), returning methods end in ...Id()
Id data typealways Long or UID

Error handling

  • Never swallow exceptions silently – write at least a warning to the log.
  • Do not throw a RuntimeException (e.g. CommonFatalException) on the dispatch thread – it crashes/freezes the GUI.
  • Avoid catching generic Exception/RuntimeException; if necessary, keep it minimal.
  • Avoid long method chains – they are hard to debug and produce unhelpful stack traces.

Examples

Examples of clean style: Code Style and badright.

Related pages

gear Code Style


Style.

Öffnen →

gear Tools


UIDGenerator.

Öffnen →

  • Keine Stichwörter