Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Name


Definition

 Capabilities

1

Interface QueryService 

Service responsible for dealing with query related features of Data Persistence Service.


  • execute

Executes the query and presents the result as an iterator of objects queried for. Will always return the full object from the database.


  • executeProjection

Executes the query and presents the result as a list. Returns a list of  the type of which is based on the Projection used.

  • executeProjection

Executes the query and presents the result as a list. Will return a list of type Object array.


  • executeCount

Executes the query and presents the result as a count of how many instances are matched against the query.
Note: because of database limitations, at this moment this method is not optimized.

  • executeDeletion

Deletes all matching objects and where appropriate deletes any related managed object (children).
Note: because of database limitations, at this moment this method is not optimized.

This method parameters are;

  1. query - query that identifies the objects to be deleted.
  2. bucketName - the name of the data bucket in which the query will be executed against.
2

Interface QueryPathService

Service responsible for dealing with path query related features of Data Persistence Service.

  • getTargetObjects

Executes the query ands gets the result as an iterable of 'full' objects queried. 

  • projectResults

Project the results from points in the query path. Projections allow the user project a single data element from the objects which were found along a query path - these elements can be modelled (i.e. persistence object attributes) or non-modelled (i.e. object fields).

...