public class Neo4jPropertyHelper extends ParserPropertyHelper implements org.hibernate.hql.ast.spi.PropertyHelper
| Constructor and Description |
|---|
Neo4jPropertyHelper(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory,
org.hibernate.hql.ast.spi.EntityNamesResolver entityNames,
Neo4jAliasResolver aliasResolver) |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertToBackendType(String entityType,
List<String> propertyPath,
Object value) |
String |
getColumnName(Class<?> entityType,
List<String> propertyName) |
String |
getColumnName(String entityType,
List<String> propertyPathWithoutAlias) |
PropertyIdentifier |
getPropertyIdentifier(String entityType,
List<String> propertyPath,
int requiredDepth)
Returns the
PropertyIdentifier for the given property path. |
boolean |
isIdProperty(OgmEntityPersister persister,
List<String> namesWithoutAlias)
Check if the property is part of the identifier of the entity.
|
boolean |
isIdProperty(String entityType,
List<String> propertyPath) |
convertToPropertyType, findAssociationPath, getColumn, getPersister, getPropertyType, getSessionFactory, isAssociation, isEmbeddedProperty, isNestedProperty, isSimplePropertypublic Neo4jPropertyHelper(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory,
org.hibernate.hql.ast.spi.EntityNamesResolver entityNames,
Neo4jAliasResolver aliasResolver)
public Object convertToBackendType(String entityType, List<String> propertyPath, Object value)
convertToBackendType in interface org.hibernate.hql.ast.spi.PropertyHelperconvertToBackendType in class ParserPropertyHelperpublic PropertyIdentifier getPropertyIdentifier(String entityType, List<String> propertyPath, int requiredDepth)
PropertyIdentifier for the given property path.
In passing, it creates all the necessary aliases for embedded/associations.entityType - the type of the entitypropertyPath - the path to the property without aliasesrequiredDepth - it defines until where the aliases will be considered as required aliases (see Neo4jAliasResolver for more information)PropertyIdentifierpublic boolean isIdProperty(OgmEntityPersister persister, List<String> namesWithoutAlias)
persister - the OgmEntityPersister of the entity with the propertynamesWithoutAlias - the path to the property with all the aliases resolvedtrue if the property is part of the id, false otherwise.Copyright © 2010–2016 Hibernate. All rights reserved.