com.ibm.mashups.enabler.persistence
Interface PersistenceProvider


public PersistenceProvider


Method Summary
 void findBySelection(ModelUrl url, Object selection, Object callback, Object parameters, boolean modifiable)
           Returns the selected objects.
 void remove(ModelURL url, Object callback, Object parameters)
           TODO: see if this is the right signature Removes the specified objects.
 void store(ModelURL url, Object object, Object callback, Object parameters)
           TODO: redo the signature Stores the specified objects.
 

Method Detail

findBySelection

void findBySelection(ModelUrl url,
                     Object selection,
                     Object callback,
                     Object parameters,
                     boolean modifiable)
Returns the selected objects.

Parameters:
url - url that specifies the object(s) to find
selection - selection criteria; for details on the selection object, refer to the model specific documentation
modifiable - whether the returned data should be the representation of the modifiable node or not.
callback - callback function, which is called with the following arguments: function(result, status, parameters), where
  • result is an array containing the selected objects; may contain zero or more objects
  • status status code of the operation
  • parameters are the parameters as passed into findBySelection
parameters - parameters to pass to the callback function; optional

remove

void remove(ModelURL url,
            Object callback,
            Object parameters)
TODO: see if this is the right signature Removes the specified objects.

Parameters:
url - the model URL that enables the connection to the backend.
callback - callback function, which is called with the following arguments: function(status, parameters), where
  • status status code of the operation
  • parameters are the parameters as passed into remove
parameters - parameters to pass to the callback function; optional

store

void store(ModelURL url,
           Object object,
           Object callback,
           Object parameters)
TODO: redo the signature Stores the specified objects.

Parameters:
url - the model URL that enables the connection to the backend.
object - object to store.
callback - callback function, which is called with the following arguments: function(status, parameters), where
  • status status code of the operation
  • parameters are the parameters as passed into store
parameters - parameters to pass to the callback function; optional


Copyright IBM Corp. 2010 All Rights Reserved.