org.opends.server.backends.jeb.importLDIF
Class WorkElement

java.lang.Object
  extended by org.opends.server.backends.jeb.importLDIF.WorkElement

public class WorkElement
extends java.lang.Object

A work element passed on the work queue.


Method Summary
static WorkElement decode(Entry entry, DNContext context)
          Static to create an work element.
 DNContext getContext()
          Return the context related to the entry.
 Entry getEntry()
          Return the entry to import.
 Entry getExistingEntry()
          Return an existing entry, used during replace mode.
 void setExistingEntry(Entry existingEntry)
          Set the existing entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static WorkElement decode(Entry entry,
                                 DNContext context)
Static to create an work element.

Parameters:
entry - The entry to import.
context - The context related to the entry.
Returns:
A work element to put on the queue.

getEntry

public Entry getEntry()
Return the entry to import.

Returns:
The entry to import.

getContext

public DNContext getContext()
Return the context related to the entry.

Returns:
The context.

getExistingEntry

public Entry getExistingEntry()
Return an existing entry, used during replace mode.

Returns:
An existing entry.

setExistingEntry

public void setExistingEntry(Entry existingEntry)
Set the existing entry.

Parameters:
existingEntry - The existing entry to set.