public class Neo4jDialect extends Object implements GridDialect, org.hibernate.service.spi.ServiceRegistryAwareService
A Tuple is saved as a Node where the columns are converted into properties of the node.
An Association is converted into a Relationship identified by the AssociationKey and the
RowKey. The type of the relationship is the value returned by AssociationKey.getCollectionRole().
If the value of a property is set to null the property will be removed (Neo4j does not allow to store null values).
| Constructor and Description |
|---|
Neo4jDialect(Neo4jDatastoreProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
Association |
createAssociation(AssociationKey associationKey,
AssociationContext associationContext) |
Tuple |
createTuple(EntityKey key,
TupleContext tupleContext) |
Tuple |
createTupleAssociation(AssociationKey associationKey,
RowKey rowKey) |
ClosableIterator<Tuple> |
executeBackendQuery(BackendCustomQuery customQuery,
org.hibernate.engine.spi.QueryParameters queryParameters) |
void |
forEachTuple(Consumer consumer,
EntityKeyMetadata... entityKeyMetadatas) |
Association |
getAssociation(AssociationKey associationKey,
AssociationContext associationContext) |
org.hibernate.dialect.lock.LockingStrategy |
getLockingStrategy(org.hibernate.persister.entity.Lockable lockable,
org.hibernate.LockMode lockMode) |
ParameterMetadataBuilder |
getParameterMetadataBuilder() |
Tuple |
getTuple(EntityKey key,
TupleContext context) |
void |
injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) |
boolean |
isStoredInEntityStructure(AssociationKey associationKey,
AssociationContext associationContext) |
Number |
nextValue(NextValueRequest request) |
GridType |
overrideType(org.hibernate.type.Type type) |
void |
removeAssociation(AssociationKey key,
AssociationContext associationContext) |
void |
removeTuple(EntityKey key,
TupleContext tupleContext) |
boolean |
supportsSequences() |
void |
updateAssociation(Association association,
AssociationKey key,
AssociationContext associationContext) |
void |
updateTuple(Tuple tuple,
EntityKey key,
TupleContext tupleContext) |
public Neo4jDialect(Neo4jDatastoreProvider provider)
public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
injectServices in interface org.hibernate.service.spi.ServiceRegistryAwareServicepublic org.hibernate.dialect.lock.LockingStrategy getLockingStrategy(org.hibernate.persister.entity.Lockable lockable,
org.hibernate.LockMode lockMode)
getLockingStrategy in interface GridDialectpublic Tuple getTuple(EntityKey key, TupleContext context)
getTuple in interface GridDialectpublic Tuple createTuple(EntityKey key, TupleContext tupleContext)
createTuple in interface GridDialectpublic void updateTuple(Tuple tuple, EntityKey key, TupleContext tupleContext)
updateTuple in interface GridDialectpublic void removeTuple(EntityKey key, TupleContext tupleContext)
removeTuple in interface GridDialectpublic Tuple createTupleAssociation(AssociationKey associationKey, RowKey rowKey)
createTupleAssociation in interface GridDialectpublic Association getAssociation(AssociationKey associationKey, AssociationContext associationContext)
getAssociation in interface GridDialectpublic Association createAssociation(AssociationKey associationKey, AssociationContext associationContext)
createAssociation in interface GridDialectpublic void updateAssociation(Association association, AssociationKey key, AssociationContext associationContext)
updateAssociation in interface GridDialectpublic boolean isStoredInEntityStructure(AssociationKey associationKey, AssociationContext associationContext)
isStoredInEntityStructure in interface GridDialectpublic Number nextValue(NextValueRequest request)
nextValue in interface GridDialectpublic boolean supportsSequences()
supportsSequences in interface GridDialectpublic GridType overrideType(org.hibernate.type.Type type)
overrideType in interface GridDialectpublic void removeAssociation(AssociationKey key, AssociationContext associationContext)
removeAssociation in interface GridDialectpublic void forEachTuple(Consumer consumer, EntityKeyMetadata... entityKeyMetadatas)
forEachTuple in interface GridDialectpublic ClosableIterator<Tuple> executeBackendQuery(BackendCustomQuery customQuery, org.hibernate.engine.spi.QueryParameters queryParameters)
executeBackendQuery in interface GridDialectpublic ParameterMetadataBuilder getParameterMetadataBuilder()
getParameterMetadataBuilder in interface GridDialectCopyright © 2010-2014 Hibernate. All Rights Reserved.