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.

On this page

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

Examples of clean style: Code Style and badright.

Related pages

gear Code Style


Style.

Öffnen →

gear Tools


UIDGenerator.

Öffnen →