org.hibernate.search.backend.spi
Class Work<T>
java.lang.Object
org.hibernate.search.backend.spi.Work<T>
public class Work<T>
- extends Object
A unit of work. Only make sense inside the same session since it uses the scope principle.
- Author:
- Emmanuel Bernard, Hardy Ferentschik
Work
public Work(T entity,
Serializable id,
WorkType type)
Work
public Work(T entity,
Serializable id,
WorkType type,
boolean identifierRollbackEnabled)
Work
public Work(Class<T> entityType,
Serializable id,
WorkType type)
Work
public Work(T entity,
WorkType type)
getEntityClass
public Class<T> getEntityClass()
getEntity
public T getEntity()
getId
public Serializable getId()
getType
public WorkType getType()
isIdentifierWasRolledBack
public boolean isIdentifierWasRolledBack()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2006–2013 Hibernate. All rights reserved.