Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Auszug
hiddentrue

Nuclos API conventions: naming, insert, update, delete, Id, UID, exception, dispatch thread, code style.

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.

Status
colourGrey
titleReferenz
Status
colourBlue
titleDeveloper
Status
colourGreen
titleStand: Jul 2026
Status
colourGrey
titlegilt fuer Nuclos 4.2026.x

Panel
bgColor#F4F5F7

Auf dieser Seite

Inhalt
maxLevel2
minLevel2

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.
Info
titleExamples

Examples of clean style: Code Style and badright.

Related pages

gear Code Style


Style.

Öffnen →

gear Tools


UIDGenerator.

Öffnen →