bucket.search.persistence
Class IndexQueueEntry

java.lang.Object
  extended by bucket.search.persistence.IndexQueueEntry
All Implemented Interfaces:
Cloneable

public class IndexQueueEntry
extends Object
implements Cloneable

An entry in the index queue that represents an indexing task that needs to be performed. The currently supported tasks are: a) add b) delete This entry element contains enough information to uniquely identify the searchable object that it works on.


Field Summary
static int ADD
           
static int DELETE
           
static int UPDATE
           
 
Constructor Summary
IndexQueueEntry()
           
IndexQueueEntry(int type)
           
IndexQueueEntry(int type, String handle)
           
IndexQueueEntry(int type, String handle, Date creationDate)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 Date getCreationDate()
          The date at which this index entry was created.
 String getHandle()
          A readable description of the object represented by this index queue entry.
 long getId()
          The unique id of this index queue entry in the database.
 int getType()
          The type of indexing action represented by this index queue entry.
 String getTypeAsString()
           
 int hashCode()
           
 void setCreationDate(Date creationDate)
           
 void setHandle(String handle)
           
 void setId(long id)
           
 void setType(int type)
           
 String toString()
          A simple tostring implementation that returns the data contained by this queue entry.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
See Also:
Constant Field Values

DELETE

public static final int DELETE
See Also:
Constant Field Values

UPDATE

public static final int UPDATE
See Also:
Constant Field Values
Constructor Detail

IndexQueueEntry

public IndexQueueEntry()

IndexQueueEntry

public IndexQueueEntry(int type)

IndexQueueEntry

public IndexQueueEntry(int type,
                       String handle)

IndexQueueEntry

public IndexQueueEntry(int type,
                       String handle,
                       Date creationDate)
Method Detail

getId

public long getId()
The unique id of this index queue entry in the database.


setId

public void setId(long id)

getType

public int getType()
The type of indexing action represented by this index queue entry.

See Also:
ADD, DELETE

setType

public void setType(int type)

getCreationDate

public Date getCreationDate()
The date at which this index entry was created.


setCreationDate

public void setCreationDate(Date creationDate)

getHandle

public String getHandle()
A readable description of the object represented by this index queue entry. The description will be used to provide meaningful feedback to the user.


setHandle

public void setHandle(String handle)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

getTypeAsString

public String getTypeAsString()

toString

public String toString()
A simple tostring implementation that returns the data contained by this queue entry.

Overrides:
toString in class Object
Returns:
a debug string.


Copyright © 2003–2015 Atlassian. All rights reserved.