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

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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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()


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved