org.hibernate.search.backend
Class Work

java.lang.Object
  extended by org.hibernate.search.backend.Work
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AddWork, DeleteWork, UpdateWork

public abstract class Work
extends Object
implements Serializable

Represent a Lucene unit work

Author:
Emmanuel Bernard
See Also:
Serialized Form

Constructor Summary
Work(Serializable id, Class entity)
           
Work(Serializable id, Class entity, org.apache.lucene.document.Document document)
           
 
Method Summary
 org.apache.lucene.document.Document getDocument()
           
 Class getEntity()
           
 Serializable getId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Work

public Work(Serializable id,
            Class entity)

Work

public Work(Serializable id,
            Class entity,
            org.apache.lucene.document.Document document)
Method Detail

getDocument

public org.apache.lucene.document.Document getDocument()

getEntity

public Class getEntity()

getId

public Serializable getId()