com.jivesoftware.forum.gateway
Class JavaMailImporter.InsertCacheItem
java.lang.Object
com.jivesoftware.forum.gateway.JavaMailImporter.InsertCacheItem
- Enclosing class:
- JavaMailImporter
protected class JavaMailImporter.InsertCacheItem
- extends java.lang.Object
Small class to cache insert's so that we can do them all at once and
not incur penalties for continuously invalidating the message & thread
caches because of constant inserts.
Allows for the setting of a parent message & thread in children even
though the parent may not yet be in the database. The parent will
automatically update it's children with the correct thread and parent
after inserting itself into the database.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaMailImporter.InsertCacheItem
public JavaMailImporter.InsertCacheItem(Forum forum,
ForumThread thread,
ForumMessage parent,
ForumMessage message)
containsMessage
public boolean containsMessage(java.lang.String messageID)
insert
public void insert()
setThread
public void setThread(ForumThread thread)
setParent
public void setParent(ForumMessage parent)
addChild
public void addChild(JavaMailImporter.InsertCacheItem child)
Copyright © 1999-2006 Jive Software.