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()

Extends

Members

attributeId :string

Type:
  • string

(protected) becca

Overrides:

isInheritable :boolean

Type:
  • boolean

name :string

Type:
  • string

noteId :string

Type:
  • string

position :int

Type:
  • int

type :string

Type:
  • string

utcDateModified :string

Type:
  • string

value :string

Type:
  • string

Methods

(protected) addEntityChange()

Overrides:

(protected) beforeSaving()

Overrides:

(protected) generateHash()

Overrides:

(protected) generateIdIfNecessary()

Overrides:

getNote() → {BNote|null}

Returns:
Type
BNote | null

(protected) getPojoToSave()

Overrides:

getTargetNote() → {BNote|null}

Returns:
Type
BNote | null

(protected) getUtcDateChanged()

Overrides:

isDefinition() → {boolean}

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:

save() → {this}

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