public class Neo4jDialect extends BaseGridDialect implements MultigetGridDialect, QueryableGridDialect<String>, SessionFactoryLifecycleAwareDialect
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 String |
CONSTRAINT_VIOLATION_CODE |
| Constructor and Description |
|---|
Neo4jDialect(Neo4jDatastoreProvider provider) |
getLockingStrategyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLockingStrategypublic static final String CONSTRAINT_VIOLATION_CODE
public Neo4jDialect(Neo4jDatastoreProvider provider)
public void sessionFactoryCreated(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor)
sessionFactoryCreated in interface SessionFactoryLifecycleAwareDialectpublic Tuple getTuple(EntityKey key, TupleContext context)
getTuple in interface GridDialectpublic List<Tuple> getTuples(EntityKey[] keys, TupleContext tupleContext)
getTuples in interface MultigetGridDialectpublic Tuple createTuple(EntityKey key, TupleContext tupleContext)
createTuple in interface GridDialectpublic void insertOrUpdateTuple(EntityKey key, Tuple tuple, TupleContext tupleContext)
insertOrUpdateTuple in interface GridDialectpublic void removeTuple(EntityKey key, TupleContext tupleContext)
removeTuple in interface GridDialectpublic Association getAssociation(AssociationKey associationKey, AssociationContext associationContext)
getAssociation in interface GridDialectpublic Association createAssociation(AssociationKey associationKey, AssociationContext associationContext)
createAssociation in interface GridDialectpublic void insertOrUpdateAssociation(AssociationKey key, Association association, AssociationContext associationContext)
insertOrUpdateAssociation in interface GridDialectpublic boolean isStoredInEntityStructure(AssociationKeyMetadata associationKeyMetadata, AssociationTypeContext associationTypeContext)
isStoredInEntityStructure in interface GridDialectpublic Number nextValue(NextValueRequest request)
nextValue in interface GridDialectpublic boolean supportsSequences()
supportsSequences in interface GridDialectsupportsSequences in class BaseGridDialectpublic GridType overrideType(org.hibernate.type.Type type)
overrideType in interface GridDialectoverrideType in class BaseGridDialectpublic void removeAssociation(AssociationKey key, AssociationContext associationContext)
removeAssociation in interface GridDialectpublic static boolean isPartOfRegularEmbedded(String[] keyColumnNames, String column)
keyColumnNames - the column names representing the identifier of the entitycolumn - the column we want to checktrue if the column represent an attribute of a regular embedded element, false otherwisepublic void forEachTuple(ModelConsumer consumer, TupleContext tupleContext, EntityKeyMetadata entityKeyMetadata)
forEachTuple in interface GridDialectpublic ClosableIterator<Tuple> executeBackendQuery(BackendQuery<String> backendQuery, QueryParameters queryParameters)
executeBackendQuery in interface QueryableGridDialect<String>public int executeBackendUpdateQuery(BackendQuery<String> query, QueryParameters queryParameters)
executeBackendUpdateQuery in interface QueryableGridDialect<String>public String parseNativeQuery(String nativeQuery)
parseNativeQuery in interface QueryableGridDialect<String>public ParameterMetadataBuilder getParameterMetadataBuilder()
getParameterMetadataBuilder in interface QueryableGridDialect<String>public DuplicateInsertPreventionStrategy getDuplicateInsertPreventionStrategy(EntityKeyMetadata entityKeyMetadata)
getDuplicateInsertPreventionStrategy in interface GridDialectgetDuplicateInsertPreventionStrategy in class BaseGridDialectCopyright © 2010–2016 Hibernate. All rights reserved.