com.mindtree.techworks.insight.pagination
Class PageImpl

java.lang.Object
  extended by com.mindtree.techworks.insight.pagination.PageImpl
All Implemented Interfaces:
IPage, java.io.Serializable
Direct Known Subclasses:
FilePageImpl

public abstract class PageImpl
extends java.lang.Object
implements IPage, java.io.Serializable

The PageImpl class is an abstract class that implements IPage interface. This class provides default implementation for adding and retrieving LogEvents.

Version:
1.0, 05/02/02
Author:
antonypulicken
See Also:
LogEvent, IPage, Serialized Form

Constructor Summary
PageImpl()
           
 
Method Summary
 void addLogEvent(LogEvent logEvent)
          Adds the logEvent to the list
 void clear()
          Clears the LogEvent list
protected abstract  void delete()
          Method that loads the Page
 java.util.List getLogEventList()
          Returns the LogEventList
 java.lang.String getPageNamespace()
          Returns the namespace of the page
 java.lang.String getPageSetNamespace()
           
 void init(PageSet set)
          Initialize the class
protected abstract  void load()
          Method that loads the Page
protected  void setLogEventList(java.util.List eventList)
          Sets the LogEventList
 void setPageNamespace(java.lang.String string)
           
 void setPageSetNamespace(java.lang.String string)
           
protected abstract  void store()
          Method that stores the Page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageImpl

public PageImpl()
Method Detail

getLogEventList

public java.util.List getLogEventList()
Returns the LogEventList

Specified by:
getLogEventList in interface IPage
Returns:
logEventList the LogEventList

addLogEvent

public void addLogEvent(LogEvent logEvent)
Adds the logEvent to the list

Specified by:
addLogEvent in interface IPage
Parameters:
logEvent - LogEvent

init

public void init(PageSet set)
Initialize the class

Parameters:
set - PageSet instance for callback

store

protected abstract void store()
Method that stores the Page


load

protected abstract void load()
Method that loads the Page


delete

protected abstract void delete()
Method that loads the Page


getPageNamespace

public java.lang.String getPageNamespace()
Description copied from interface: IPage
Returns the namespace of the page

Specified by:
getPageNamespace in interface IPage
Returns:

getPageSetNamespace

public java.lang.String getPageSetNamespace()
Returns:

setPageNamespace

public void setPageNamespace(java.lang.String string)
Parameters:
string -

setPageSetNamespace

public void setPageSetNamespace(java.lang.String string)
Parameters:
string -

setLogEventList

protected void setLogEventList(java.util.List eventList)
Sets the LogEventList

Parameters:
eventList - The logEventList to set.

clear

public void clear()
Clears the LogEvent list



Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.