Creates the passed Note in the database.
Syntax
long
createNote
(
final Note
note
,
final long
callerId
) throws EntityMandatoryException, IllegalDataException
Parameters
-
note –
the note to create.
-
callerId –
the caller id that is persisted as creator of this note.
Returns
the id of the newly created note.
Exceptions
-
EntityMandatoryException –
if the passed note is null.
-
IllegalDataException –
if the passed note has an id provided.
Usage
The id must be
null
, since it will be generated during creation.
the id of the newly created note.