org.hibernate.search.backend.spi
Class Work<T>

java.lang.Object
  extended by 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

Constructor Summary
Work(Class<T> entityType, Serializable id, WorkType type)
           
Work(T entity, Serializable id, WorkType type)
           
Work(T entity, Serializable id, WorkType type, boolean identifierRollbackEnabled)
           
Work(T entity, WorkType type)
           
 
Method Summary
 T getEntity()
           
 Class<T> getEntityClass()
           
 Serializable getId()
           
 WorkType getType()
           
 boolean isIdentifierWasRolledBack()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.