public class HSearchEmbeddedEntityTypeDescriptor extends Object implements HSearchTypeDescriptor
TypeDescriptor
representing an embedded entity of a Hibernate Search indexed entity.Constructor and Description |
---|
HSearchEmbeddedEntityTypeDescriptor(Class<?> indexedEntityType,
List<String> path,
ClassBasedLucenePropertyHelper propertyHelper)
Creates a new
HSearchEmbeddedEntityTypeDescriptor . |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getIndexedEntityType()
Returns the Java type of the represented indexed entity.
|
boolean |
hasProperty(String propertyName) |
boolean |
isAnalyzed(String propertyName)
Whether the given property of this indexed entity is analyzed or not.
|
boolean |
isEmbedded(String propertyName)
Whether the given property denotes an embedded entity or not.
|
String |
toString() |
public HSearchEmbeddedEntityTypeDescriptor(Class<?> indexedEntityType, List<String> path, ClassBasedLucenePropertyHelper propertyHelper)
HSearchEmbeddedEntityTypeDescriptor
.indexedEntityType
- the indexed entity into which this entity is embeddedpath
- the property path from the embedding indexed entity to this entitypropertyHelper
- a helper for dealing with propertiespublic boolean hasProperty(String propertyName)
hasProperty
in interface TypeDescriptor
public boolean isAnalyzed(String propertyName)
HSearchTypeDescriptor
isAnalyzed
in interface HSearchTypeDescriptor
propertyName
- the name of the propertytrue
if the given property is analyed, false
otherwise.public boolean isEmbedded(String propertyName)
HSearchTypeDescriptor
isEmbedded
in interface HSearchTypeDescriptor
propertyName
- the name of the propertytrue
if the given property denotes an entity embedded into this one, false
otherwise.public Class<?> getIndexedEntityType()
HSearchTypeDescriptor
getIndexedEntityType
in interface HSearchTypeDescriptor
Copyright © 2013. All rights reserved.