站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

AssetHistoryIterator (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.repository
Class AssetHistoryIterator

java.lang.Object
  extended by org.drools.repository.AssetHistoryIterator
All Implemented Interfaces:
Iterator

public class AssetHistoryIterator
extends Object
implements Iterator

A lazy iterator for walking back through history. Wraps the version iterator from JCR and allows skipping.

Author:
Michael Neale

Constructor Summary
AssetHistoryIterator(RulesRepository repo, javax.jcr.Node head)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
          You can't do this with this sort of iterator.
 void skip(int i)
          Skip the specified number of items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetHistoryIterator

public AssetHistoryIterator(RulesRepository repo,
                            javax.jcr.Node head)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
You can't do this with this sort of iterator. It makes no sense to remove a history item. Removing history is a administrative function only (and in any case, it may have to be archived for legal reasons).

Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException - when called.

skip

public void skip(int i)
Skip the specified number of items. As this is a lazy iterator this means less work in pulling it from the database etc.



Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.