Class: CrudProxy

CrudProxy(store)

This class provides the basic Create,Read,Update and Delete (CRUD) operations which are needed by almost any proxy, which need to persistent anything.

Constructor

new CrudProxy(store)

Parameters:
Name Type Description
store Store

The delegate which provides the actual storing

Source:

Members

method

Gets the name of the method to use when calling the store

Source:

method

Sets the name of method to call og the next store operation og unset it by setting the to null

Source:

store

Gets the store

Source:

Methods

create()

Create a new object and notify listeners. The object will hae uid == 0.

Source:

delete(uid)

Delete some object by uid and notify listeners when complete

Parameters:
Name Type Description
uid int

Then uid of the object to delete

Source:

read(uid)

Get some objects by an optional uid or by the filter and notify listeners on available objects

Parameters:
Name Type Description
uid int

The uid to find

Source:

update(uid)

Update an object identified by uid and notify listeners when complete

Parameters:
Name Type Description
uid int

Then uid of the object to update

Source: