Class: BAttribute

BAttribute()

Attribute is an abstract concept which has two real uses - label (key - value pair) and relation (representing named relationship between source and target note)

Constructor

new BAttribute()

Source:

Extends

Members

attributeId :string

Type:
  • string
Source:

(protected) becca

Overrides:
Source:

isInheritable :boolean

Type:
  • boolean
Source:

name :string

Type:
  • string
Source:

noteId :string

Type:
  • string
Source:

position :int

Type:
Source:

type :AttributeType

Type:
Source:

utcDateModified :string

Type:
  • string
Source:

value :string

Type:
  • string
Source:

Methods

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

Overrides:
Source:
Returns:
Type
string | Buffer

(protected) _setContent()

Overrides:
Source:

(protected) beforeSaving()

Overrides:
Source:

(protected) generateHash() → {string}

Overrides:
Source:
Returns:
Type
string

getNote() → {BNote|null}

Source:
Returns:
Type
BNote | null

(abstract, protected) getPojo()

Overrides:
Source:

(protected) getPojoToSave()

Overrides:
Source:

getTargetNote() → {BNote|null}

Source:
Returns:
Type
BNote | null

(protected) getUtcDateChanged()

Overrides:
Source:

isDefinition() → {boolean}

Source:
Returns:
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:
Source:

(protected) putEntityChange()

Overrides:
Source:

save() → {this}

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