public class BoltNeo4jDialect extends BaseNeo4jDialect<org.hibernate.ogm.datastore.neo4j.remote.bolt.dialect.impl.BoltNeo4jEntityQueries,org.hibernate.ogm.datastore.neo4j.remote.bolt.dialect.impl.BoltNeo4jAssociationQueries> implements RemoteNeo4jDialect, StoredProcedureAwareGridDialect
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
AssociationKeyMetadata.getCollectionRole().
If the value of a property is set to null the property will be removed (Neo4j does not allow to store null values).
| Modifier and Type | Field and Description |
|---|---|
static org.hibernate.ogm.datastore.neo4j.logging.impl.Log |
log |
CONSTRAINT_VIOLATION_CODE, PROCEDURE_CALL_FAILED_CODE, PROCEDURE_NOT_FOUND_CODE, TUPLE_ALREADY_EXISTS_EXCEPTION_PATTERN| Constructor and Description |
|---|
BoltNeo4jDialect(org.hibernate.ogm.datastore.neo4j.remote.bolt.impl.BoltNeo4jDatastoreProvider provider) |
buildNativeQuery, buildProcedureQueryWithParams, createAssociation, createTuple, entityKeyMetadata, entityKeyMetadata, getAssociationQueries, getDuplicateInsertPreventionStrategy, getEntityKey, getEntityQueries, getEntityQueries, getParameterMetadataBuilder, getParameters, getServiceRegistry, initializeAssociationQueries, injectServices, isPartOfRegularEmbedded, isStoredInEntityStructure, overrideType, parseNativeQuery, sessionFactoryCreated, supportsSequences, usesNavigationalInformationForInverseSideOfAssociationsgetLockingStrategy, isInTheInsertionQueueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAssociation, createTuple, getDuplicateInsertPreventionStrategy, getLockingStrategy, isStoredInEntityStructure, overrideType, supportsSequences, usesNavigationalInformationForInverseSideOfAssociationspublic static final org.hibernate.ogm.datastore.neo4j.logging.impl.Log log
public BoltNeo4jDialect(org.hibernate.ogm.datastore.neo4j.remote.bolt.impl.BoltNeo4jDatastoreProvider provider)
protected org.hibernate.ogm.datastore.neo4j.remote.bolt.dialect.impl.BoltNeo4jAssociationQueries createNeo4jAssociationQueries(EntityKeyMetadata ownerEntityKeyMetadata, AssociationKeyMetadata associationKeyMetadata)
protected org.hibernate.ogm.datastore.neo4j.remote.bolt.dialect.impl.BoltNeo4jEntityQueries createNeo4jEntityQueries(EntityKeyMetadata entityKeyMetadata, TupleTypeContext tupleTypeContext)
public ClosableIterator<Tuple> executeBackendQuery(BackendQuery<String> backendQuery, QueryParameters queryParameters, TupleContext tupleContext)
executeBackendQuery in interface QueryableGridDialect<String>public int executeBackendUpdateQuery(BackendQuery<String> query, QueryParameters queryParameters, TupleContext tupleContext)
executeBackendUpdateQuery in interface QueryableGridDialect<String>executeBackendUpdateQuery in class BaseNeo4jDialect<org.hibernate.ogm.datastore.neo4j.remote.bolt.dialect.impl.BoltNeo4jEntityQueries,org.hibernate.ogm.datastore.neo4j.remote.bolt.dialect.impl.BoltNeo4jAssociationQueries>public Tuple getTuple(EntityKey key, OperationContext operationContext)
getTuple in interface GridDialectpublic List<Tuple> getTuples(EntityKey[] keys, TupleContext tupleContext)
getTuples in interface MultigetGridDialectpublic void insertOrUpdateTuple(EntityKey key, org.hibernate.ogm.entityentry.impl.TuplePointer tuplePointer, TupleContext tupleContext) throws TupleAlreadyExistsException
insertOrUpdateTuple in interface GridDialectTupleAlreadyExistsExceptionpublic void removeTuple(EntityKey key, TupleContext tupleContext)
removeTuple in interface GridDialectpublic Association getAssociation(AssociationKey associationKey, AssociationContext associationContext)
getAssociation in interface GridDialectprotected RowKey convert(AssociationKey associationKey, TupleSnapshot snapshot)
public void insertOrUpdateAssociation(AssociationKey key, Association association, AssociationContext associationContext)
insertOrUpdateAssociation in interface GridDialectpublic void removeAssociation(AssociationKey key, AssociationContext associationContext)
removeAssociation in interface GridDialectpublic Number nextValue(NextValueRequest request)
nextValue in interface GridDialectpublic void forEachTuple(ModelConsumer consumer, TupleTypeContext tupleTypeContext, EntityKeyMetadata entityKeyMetadata)
forEachTuple in interface GridDialectpublic ClosableIterator<Tuple> callStoredProcedure(String storedProcedureName, ProcedureQueryParameters queryParameters, TupleContext tupleContext)
callStoredProcedure in interface StoredProcedureAwareGridDialectCopyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.