Skip navigation links
Project Wonder 7.5-SNAPSHOT

Package er.neo4jadaptor.ersatz

Provides classes for performing value conversion between library specific values and neutral java values.

See: Description

Package er.neo4jadaptor.ersatz Description

Provides classes for performing value conversion between library specific values and neutral java values.

Neo4J adaptor makes use of a few libraries (specifically: Lucene, Neo4J and NextStep collection types) of which each has its own limitations or ways to denote some value being not set (empty). To name some, NSDictionary can't store null value (uses NSKeyValueCoding.Null instead, Neo4J uses no value at all for null, Lucene doesn't support timestamps.

To work around cross-library communication we introduce record ersatz term which is a map of EO attribute to neutral java value, where numbers are represented by suitable numeric classes, timestamps are represented by subclasses of Date, nulls are represented by nulls and ersatz object contains information on which EO attribute values are EMPTY (so null is considered to be some value). Record ersatz are instances of Ersatz.

For each library there's custom Ersatz implementation that uses custom Translator to convert between neutral and library specific values.

Skip navigation links
Last updated: Fri, Nov 22, 2024 • 08:08 AM CET

Copyright © 2002 – 2024 Project Wonder.