Constructor
new BNoteRevision()
Extends
Members
(protected) becca
- Overrides:
contentLength :number
Type:
- number
dateCreated :string
Type:
- string
dateLastEdited :string
Type:
- string
isProtected :boolean
Type:
- boolean
mime :string
Type:
- string
noteId :string
Type:
- string
noteRevisionId :string
Type:
- string
title :string
Type:
- string
type :string
Type:
- string
utcDateCreated :string
Type:
- string
utcDateLastEdited :string
Type:
- string
utcDateModified :string
Type:
- string
Methods
(protected) addEntityChange()
- Overrides:
(protected) beforeSaving()
- Overrides:
(protected) generateHash()
- Overrides:
(protected) generateIdIfNecessary()
- Overrides:
getContent() → {*}
Returns:
- Type
- *
getContentMetadata() → {Object}
Returns:
- Type
- Object
(protected) getPojoToSave()
- Overrides:
(protected) getUtcDateChanged()
- Overrides:
isStringNote() → {boolean}
Returns:
true if the note has string content (not binary)
- Type
- boolean
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 |
- Overrides:
save() → {this}
Saves entity - executes SQL, but doesn't commit the transaction on its own
- Overrides:
Returns:
- Type
- this