public class Neo4jMappingContext extends AbstractMappingContext
A MappingContext implementation for Neo4j
Modifiers | Name | Description |
---|---|---|
static java.util.Set<java.lang.Class> |
BASIC_TYPES |
|
protected java.util.Map<java.lang.Iterable<java.lang.String>, GraphPersistentEntity> |
entitiesByLabel |
|
protected IdGenerator |
idGenerator |
|
protected SnowflakeIdGenerator |
snowflakeIdGenerator |
Fields inherited from class | Fields |
---|---|
class AbstractMappingContext |
CONFIGURATION_PREFIX, GROOVY_PROXY_FACTORY_NAME, JAVASIST_PROXY_FACTORY, conversionService, entityValidators, eventListeners, persistentEntities, persistentEntitiesByDiscriminator, persistentEntitiesByName, persistentEntitiesByParent, proxyFactory, validatorRegistry |
Constructor and description |
---|
Neo4jMappingContext
() |
Neo4jMappingContext
(groovy.lang.Closure defaultMapping) |
Neo4jMappingContext
(groovy.lang.Closure defaultMapping, java.lang.Class classes) |
Neo4jMappingContext
(Neo4jConnectionSourceSettings settings, java.lang.Class classes) |
Type Params | Return Type | Name and description |
---|---|---|
|
public java.lang.Object |
convertToNative(java.lang.Object value) Obtain the native type to use for the given value |
|
protected PersistentEntity |
createPersistentEntity(java.lang.Class javaClass) |
|
protected PersistentEntity |
createPersistentEntity(java.lang.Class javaClass, boolean external) |
|
public GraphPersistentEntity |
findPersistentEntityForLabels(java.lang.Iterable<java.lang.String> labels) Finds an entity for the statically mapped set of labels |
|
public IdGenerator |
getIdGenerator() |
|
public MappingFactory |
getMappingFactory() |
|
public MappingConfigurationStrategy |
getMappingSyntaxStrategy() |
|
public ProxyFactory |
getProxyFactory() |
|
public SnowflakeIdGenerator |
getSnowflakeIdGenerator() |
Obtain the native type to use for the given value
value
- The valueFinds an entity for the statically mapped set of labels
labels
- The labels