Package-level declarations

Types

Link copied to clipboard

INDEX: (int) Indicates the position in a list of edges

Link copied to clipboard
open class PropertyEdge<T : Node> : Persistable

This class represents an edge between two Node objects in a Neo4J graph. It can be used to store additional information that relate to the relationship between the two nodes that belong to neither of the two nodes directly.

Link copied to clipboard
class PropertyEdgeConverter : CompositeAttributeConverter<Map<Properties, Any?>>
Link copied to clipboard

Since Neo4J uses the PropertyEdgeConverter (as it implements the CompositeAttributeConverter interface), we cannot define it as a singleton, as it requires to have a constructor. We want to be able to dynamically define converters for PropertyEdges that have more complex structures such as enums or custom classes, we need a singleton to be able to add the converters. Refer to the documentation of PropertyEdgeConverter to see which primitives are supported by default, and which require a custom converter.

Link copied to clipboard
class PropertyEdgeDelegate<T : Node, S : Node>(val edge: KProperty1<S, List<PropertyEdge<T>>>, val outgoing: Boolean = true)

This class can be used to implement delegated properties in Node classes. The most common use case is to have a property that is a list of PropertyEdge objects (for persistence) and a second (delegated) property that allows easy access just to the connected nodes of the individual edges for in-memory access.