org.apache.empire.struts2.actionsupport
Class BeanListActionSupport<T>

java.lang.Object
  extended by org.apache.empire.commons.ErrorObject
      extended by org.apache.empire.struts2.actionsupport.ListActionSupport
          extended by org.apache.empire.struts2.actionsupport.BeanListActionSupport<T>
All Implemented Interfaces:
ErrorInfo, ListPagingInfo, ListSortingInfo

public class BeanListActionSupport<T>
extends ListActionSupport

BeanListActionSupport

This class provides functions for handling list output from a database query through an list of JavaBeans.

Author:
Rainer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.empire.struts2.actionsupport.ListActionSupport
ListActionSupport.ListPageInfo, ListActionSupport.ListSortInfo
 
Nested classes/interfaces inherited from class org.apache.empire.commons.ErrorObject
ErrorObject.ObjectErrorInfo
 
Field Summary
protected  java.lang.Class<T> beanClass
           
protected  java.util.ArrayList<T> list
           
 
Fields inherited from class org.apache.empire.struts2.actionsupport.ListActionSupport
action, log, propertyName
 
Constructor Summary
BeanListActionSupport(ActionBase action, java.lang.Class<T> beanClass, java.lang.String propertyName)
           
 
Method Summary
 java.util.ArrayList<T> getList()
           
 boolean initBeanList(DBCommand cmd)
           
 void setList(java.util.List<T> list)
           
 
Methods inherited from class org.apache.empire.struts2.actionsupport.ListActionSupport
getFirstItemIndex, getItemCount, getLastItemIndex, getListPageInfo, getListPropertyName, getListSortInfo, getPage, getPageCount, getPageSize, getSortColumn, isSortDescending, setFirstItem, setItemCount, setPage, setSortColumn, setSortColumn, setSortDescending
 
Methods inherited from class org.apache.empire.commons.ErrorObject
clearError, clearErrorInfo, error, error, error, error, error, error, error, getErrorInfo, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, internalSetError, isExceptionsEnabled, setExceptionsEnabled, success
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected java.util.ArrayList<T> list

beanClass

protected java.lang.Class<T> beanClass
Constructor Detail

BeanListActionSupport

public BeanListActionSupport(ActionBase action,
                             java.lang.Class<T> beanClass,
                             java.lang.String propertyName)
Method Detail

getList

public java.util.ArrayList<T> getList()

initBeanList

public boolean initBeanList(DBCommand cmd)

setList

public void setList(java.util.List<T> list)


Copyright © 2008-2009 Apache Software Foundation. All Rights Reserved.