public interface HibernateOrmMapping
| Modifier and Type | Method and Description |
|---|---|
PojoMappingWorkExecutor |
createMappingWorkExecutor() |
SearchSessionImplementor |
createSession(EntityManager entityManager) |
SearchSessionBuilder |
createSessionWithOptions(EntityManager entityManager) |
<E> Set<Class<? extends E>> |
getIndexedTypesPolymorphic(Class<E> entityType)
Given a target entity type, return the set of configured subtypes that are indexed.
|
boolean |
isIndexable(Class<?> type) |
boolean |
isSearchable(Class<?> type) |
boolean |
isWorkable(Class<?> type) |
boolean |
isWorkable(Object entity) |
SearchSessionImplementor createSession(EntityManager entityManager)
SearchSessionBuilder createSessionWithOptions(EntityManager entityManager)
boolean isWorkable(Class<?> type)
type - A Java type.true if this type can be the subject of a work (i.e. it can be passed to
PojoWorkPlan.add(Object) for instance), false if it cannot.
Workable types include both indexable types and contained entity types.boolean isIndexable(Class<?> type)
type - A Java type.true if this type is indexable, false if it is not.boolean isSearchable(Class<?> type)
type - A Java type.true if this type is searchable
(i.e. it can be passed to SearchSession.search(Class)),
false if it is not.boolean isWorkable(Object entity)
entity - An entity.true if this entity can be the subject of a work (i.e. it can be passed to
PojoWorkPlan.add(Object) for instance), false if it cannot.<E> Set<Class<? extends E>> getIndexedTypesPolymorphic(Class<E> entityType)
E - The target entity type.entityType - A Class representing the target entity type.PojoMappingWorkExecutor createMappingWorkExecutor()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.