com.hlcl.rql.hip.as
Class PhysicalPageCollector

java.lang.Object
  extended by com.hlcl.rql.hip.as.PhysicalPageCollector
All Implemented Interfaces:
java.lang.Runnable

public class PhysicalPageCollector
extends java.lang.Object
implements java.lang.Runnable

Author:
lejafr This class collects all physical pages in a database. Using this for org and process tree make a compare possible. Double linked physical pages are not investigated twice.

Constructor Summary
PhysicalPageCollector(java.sql.Connection connection, java.lang.String setTableName)
          Constructor.
PhysicalPageCollector(Page startPage, java.sql.Connection connection, java.lang.String setTableName)
          Constructor
 
Method Summary
 void collectPhysicalPages()
          Collects all physical child pages of the start page.
 void collectPhysicalPages(Page startPage)
          Collects all physical child pages of the start page.
 boolean containsPage(Page page)
          Returns true, if given page is was collected.
 boolean containsPage(java.lang.String pageId)
          Returns true, if given page id is was collected.
 java.lang.String getCurrentPageGuid()
          Returns the page GUID for the current row.
 java.lang.String getCurrentPageHeadline()
          Returns the page headline for the current row.
 java.lang.String getCurrentPageId()
          Returns the page ID for the current row.
 java.lang.String getCurrentPageTemplateName()
          Returns the page template name for the current row.
 PageInfoSet getPageInfoSet()
          Returns the page info set.
 boolean nextPage()
          Forwards to next row of result set to get all information out of the set - unsorted.
 boolean nextPageSortedByTemplateName()
          Forwards to next row of result set to get all information out of the set.
 void run()
          Threadinterface
 void setListener(PageListener dependentListener)
          Setzt den aghängigen listener, der über jede neue physical page informiert wird, um einen fortschritt anzuzeigen.
 int size()
          Returns the number of pages in the tree.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicalPageCollector

public PhysicalPageCollector(java.sql.Connection connection,
                             java.lang.String setTableName)
                      throws RQLException
Constructor. Pass start page via collect() method.

Throws:
RQLException

PhysicalPageCollector

public PhysicalPageCollector(Page startPage,
                             java.sql.Connection connection,
                             java.lang.String setTableName)
                      throws RQLException
Constructor

Throws:
RQLException
Method Detail

collectPhysicalPages

public void collectPhysicalPages()
                          throws RQLException
Collects all physical child pages of the start page. Repeated physical child pages will not be investigated.

Throws:
RQLException

collectPhysicalPages

public void collectPhysicalPages(Page startPage)
                          throws RQLException
Collects all physical child pages of the start page. Repeated physical child pages will not be investigated.

Throws:
RQLException

containsPage

public boolean containsPage(Page page)
                     throws RQLException
Returns true, if given page is was collected. Searched by page ID.

Throws:
RQLException

containsPage

public boolean containsPage(java.lang.String pageId)
                     throws RQLException
Returns true, if given page id is was collected.

Throws:
RQLException

getCurrentPageGuid

public java.lang.String getCurrentPageGuid()
                                    throws RQLException
Returns the page GUID for the current row.

Throws:
RQLException

getCurrentPageHeadline

public java.lang.String getCurrentPageHeadline()
                                        throws RQLException
Returns the page headline for the current row.

Throws:
RQLException

getCurrentPageId

public java.lang.String getCurrentPageId()
                                  throws RQLException
Returns the page ID for the current row.

Throws:
RQLException

getCurrentPageTemplateName

public java.lang.String getCurrentPageTemplateName()
                                            throws RQLException
Returns the page template name for the current row.

Throws:
RQLException

getPageInfoSet

public PageInfoSet getPageInfoSet()
Returns the page info set.


nextPage

public boolean nextPage()
                 throws RQLException
Forwards to next row of result set to get all information out of the set - unsorted. Returns true, if next row is available.

Throws:
RQLException

nextPageSortedByTemplateName

public boolean nextPageSortedByTemplateName()
                                     throws RQLException
Forwards to next row of result set to get all information out of the set. Sorted by template name of page. Returns true, if next row is available.

Throws:
RQLException

run

public void run()
Threadinterface

Specified by:
run in interface java.lang.Runnable
See Also:
collectPhysicalPages()

setListener

public void setListener(PageListener dependentListener)
Setzt den aghängigen listener, der über jede neue physical page informiert wird, um einen fortschritt anzuzeigen.


size

public int size()
         throws RQLException
Returns the number of pages in the tree.

Throws:
RQLException