import"DatabaseManagerPlugin.idl";
This is a class which implements global DatabaseManager object.
void DatabaseManager.addEventListener |
( |
[in] String |
event_name, |
|
|
[in] EventListener |
listener |
|
) |
| |
Adds DOM2 event listener for specified event.
Possible values are: event_name: "keyValueChanged", listener: function that has arguments similar to the keyValueChanged interface properties.
- Parameters
-
event_name | Name of the event. |
listener | javascript function that has arguments like the properties listed in the listener's interface. |
Boolean DatabaseManager.clear |
( |
| ) |
|
Clear lookup table.
- Returns
- true if lookup table exists and is cleared successfully; false, otherwise.
String DatabaseManager.read |
( |
[in] String |
key | ) |
|
Get data from lookup table of corresponding key. Exceeding size of parameters throws runtime error.
- Parameters
-
key | String that is queried in lookup table - max size is 255 char. |
- Returns
- data if key is found in lookup table; empty string, otherwise.
void DatabaseManager.removeEventListener |
( |
[in] String |
event_name, |
|
|
[in] EventListener |
listener |
|
) |
| |
Removes single DOM2 event listener for specified event
Possible values are: event_name: "keyValueChanged", listener: function that has arguments similar to the keyValueChanged interface properties.
- Parameters
-
event_name | Name of the event |
listener | named javascript function that has arguments like the properties listed in the listener's interface. |
void DatabaseManager.removeEventListener |
( |
[in] String |
event_name | ) |
|
Boolean DatabaseManager.write |
( |
[in] String |
key, |
|
|
[in] String |
value |
|
) |
| |
Insert key-value pair into lookup table. If key is already exists in lookup table, then its value is updated. That means key is master and unique. Exceeding size of parameters throws runtime error.
- Parameters
-
key | data - max size is 255 char. |
value | data - max size is 255 char. |
- Returns
- true if data is written successfully; false, otherwise.
The documentation for this interface was generated from the following file:
- DatabaseManagerPlugin.idl