Class: AbstractBeccaEntity

AbstractBeccaEntity()

Base class for all backend entities.

Constructor

new AbstractBeccaEntity()

Source:

Members

(protected) becca

Source:

Methods

(protected) _getContent() → {string|Buffer}

Source:
Returns:
Type
string | Buffer

(protected) _setContent()

Source:

(protected) beforeSaving()

Source:

(protected) generateHash() → {string}

Source:
Returns:
Type
string

(abstract, protected) getPojo()

Source:

(protected) getPojoToSave()

Source:

(protected) getUtcDateChanged()

Source:

markAsDeleted(deleteIdopt)

Mark the entity as (soft) deleted. It will be completely erased later. This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.
Parameters:
Name Type Attributes Default Description
deleteId <optional>
null
Source:

(protected) putEntityChange()

Source:

save() → {this}

Saves entity - executes SQL, but doesn't commit the transaction on its own
Source:
Returns:
Type
this