Versions Compared

Key

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

...

#

Description

Details

Decisions

1Are we going to have XPath/query builder?

2

 the current SPI builds restrictions and has special methods to combine them. Having a fluent interface in my opinion    would be way more intuitive and practical. E.g.

//AND of two restrictions

Restriction and(Restriction firstRestriction,  Restriction secondRestriction)

//OR of two restrictions

Restriction or(Restriction firstRestriction,  Restriction secondRestriction)

//NOT of a restriction

Restriction not(Restriction restriction)

This will give any user of the API an intuitive way to build a complex query and the developer of the API a tree to navigate and translate to SQL (or any other query language). A developer could do something the likes of myQuery.setRestriction(restriction1.and(restrcition2).and(restriction3))



3

SPI should be type safe (the SPI impl. has no access to models)

    1. All numeric types could be passed as ‘long’ in Java

Marks study suggests using type safe.

We can do validation but still store as a string (JSON object).


...

This SPI implementation is towards neo4ja NoSQL database. The SPI depends on the DPS API and the model service API. 

...