com.primix.vlib.pages
Class Matches

java.lang.Object
  |
  +--com.primix.tapestry.AbstractComponent
        |
        +--com.primix.tapestry.BaseComponent
              |
              +--com.primix.tapestry.AbstractPage
                    |
                    +--com.primix.tapestry.BasePage
                          |
                          +--com.primix.vlib.pages.Matches
All Implemented Interfaces:
IComponent, IPage, IRender

public class Matches
extends BasePage

Run's queries and displays matches.

Version:
$Id: Matches.java,v 1.20 2001/08/15 21:28:10 hship Exp $
Author:
Howard Ship

Fields inherited from class com.primix.tapestry.AbstractPage
engine, name
 
Fields inherited from class com.primix.tapestry.BaseComponent
outer, OUTER_INIT_SIZE, outerCount
 
Fields inherited from class com.primix.tapestry.AbstractComponent
id, page, specification, wrapped, wrappedCount
 
Constructor Summary
Matches()
           
 
Method Summary
 void cleanupPage()
          Removes the book query bean, if not null.
 void detach()
          Prepares the page to be returned to the pool.
 void finishLoad(IPageLoader loader, ComponentSpecification specification)
          Allows a component to finish any setup after it has been constructed.
 IBookQuery getBookQuery()
          Gets the IBookQuery session bean for the query, creating it fresh if necessary.
 Book getCurrentMatch()
           
 boolean getOmitHolderLink()
           
 void performQuery(java.lang.String title, java.lang.String author, java.lang.Object publisherPK, IRequestCycle cycle)
          Invoked by the Home page to perform a query.
 void setBookQuery(IBookQuery value)
          Sets the persistent bookQuery property.
 void setCurrentMatch(Book value)
          Updates the dynamic currentMatch property.
 
Methods inherited from class com.primix.tapestry.BasePage
getResponseWriter
 
Methods inherited from class com.primix.tapestry.AbstractPage
addPageCleanupListener, addPageDetachListener, addPageRenderListener, attach, beginResponse, firePageBeginRender, firePageCleanup, firePageDetached, firePageEndRender, getChangeObserver, getEngine, getExtendedId, getIdPath, getLocale, getName, getNestedComponent, getPage, getRequestCycle, getVisit, renderPage, setChangeObserver, setLocale, setName, setRequestCycle, validate
 
Methods inherited from class com.primix.tapestry.BaseComponent
addOuter, readTemplate, render
 
Methods inherited from class com.primix.tapestry.AbstractComponent
addAsset, addComponent, addWrapped, cleanupAfterRender, cleanupComponent, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getId, getListeners, getSpecification, prepareForRender, renderWrapped, reset, setBinding, setContainer, setId, setPage, setSpecification, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.primix.tapestry.IComponent
addAsset, addComponent, addWrapped, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getId, getSpecification, renderWrapped, setBinding, setContainer, setId, setPage, setSpecification
 
Methods inherited from interface com.primix.tapestry.IRender
render
 

Constructor Detail

Matches

public Matches()
Method Detail

detach

public void detach()
Description copied from class: AbstractPage
Prepares the page to be returned to the pool.

Subclasses may override this method, but must invoke this implementation (usually, last).

Overrides:
detach in class AbstractPage
Following copied from interface: com.primix.tapestry.IPage
See Also:
IPageSource.releasePage(IPage)

finishLoad

public void finishLoad(IPageLoader loader,
                       ComponentSpecification specification)
                throws PageLoaderException
Description copied from interface: IComponent
Allows a component to finish any setup after it has been constructed.

The exact timing is not specified, but any components contained by the receiving component will also have been constructed before this method is invoked.

As of release 1.0.6, this method is invoked before bindings are set. This should not affect anything, as bindings should only be used during renderring.

Overrides:
finishLoad in class BaseComponent

getBookQuery

public IBookQuery getBookQuery()
Gets the IBookQuery session bean for the query, creating it fresh if necessary.

setBookQuery

public void setBookQuery(IBookQuery value)
Sets the persistent bookQuery property.

performQuery

public void performQuery(java.lang.String title,
                         java.lang.String author,
                         java.lang.Object publisherPK,
                         IRequestCycle cycle)
Invoked by the Home page to perform a query.

getCurrentMatch

public Book getCurrentMatch()

setCurrentMatch

public void setCurrentMatch(Book value)
Updates the dynamic currentMatch property.

getOmitHolderLink

public boolean getOmitHolderLink()

cleanupPage

public void cleanupPage()
Removes the book query bean, if not null.
Overrides:
cleanupPage in class AbstractPage