Blog literacki, portal erotyczny - seks i humor nie z tej ziemi
scaffold API Documentation: Class ProcessBeanBase
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
org.apache.commons.scaffold.util
Class ProcessBeanBase
java.lang.Object
|
+--org.apache.commons.scaffold.util.ProcessBeanBase
All Implemented Interfaces: ProcessBean
Direct Known Subclasses: StorageBeanBase
public abstract class ProcessBeanBaseextends java.lang.Objectimplements ProcessBean
Base implementation of ProcessBean with default functionality.
The only method that must be overridden is
Object execute(Object).
:TODO: Change from BeanUtil.populate to copyProperties in 1.1
version.
Version: $Revision: 1.4 $ $Date: 2002/10/09 22:04:09 $
Author: Ted Husted
Field Summary
private java.util.Locale
locale
The locale for this bean instance, if any.
protected int
scrollFrom
The entry (or page) from which to scroll [0].
private java.lang.Object
server
The remote server object for this bean instance, if any.
Fields inherited from interface org.apache.commons.scaffold.util.ProcessBean
USER_PROFILE_KEY
Constructor Summary
ProcessBeanBase()
Method Summary
java.lang.Object
execute()
Perform business logic for this bean.
java.lang.Object
execute(java.lang.Object parameters)
Perform business logic for this instance by obtaining any
properties from the parameters object.
java.util.Locale
getLocale()
Return the locale for this bean instance.
java.lang.Object
getRemoteServer()
The remote server object for this bean instance, if any.
int
getScrollFrom()
Return the scrollFrom property.
void
setLocale(java.util.Locale locale)
Set the locale for this bean instance.
void
setRemoteServer(java.lang.Object server)
Set the remote server
void
setScrollFrom(int scrollFrom)
Set the scrollFrom
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
Field Detail
locale
private java.util.Locale locale
The locale for this bean instance, if any.
server
private java.lang.Object server
The remote server object for this bean instance, if any.
This is often an application-scope object that can be used
to process a JDBC query or equivalent.
By default, the ProcessAction will set this to any
application scope object found under the key "REMOTE_SERVER",
or to null.
scrollFrom
protected int scrollFrom
The entry (or page) from which to scroll [0].
Constructor Detail
ProcessBeanBase
public ProcessBeanBase()
Method Detail
getLocale
public java.util.Locale getLocale()
Description copied from interface: ProcessBean
Return the locale for this bean instance.
Specified by: getLocale in interface ProcessBean
Following copied from interface: org.apache.commons.scaffold.util.ProcessBean
Returns:the locale
setLocale
public void setLocale(java.util.Locale locale)
Description copied from interface: ProcessBean
Set the locale for this bean instance.
Specified by: setLocale in interface ProcessBean
Following copied from interface: org.apache.commons.scaffold.util.ProcessBean
Parameters:locale - The new locale
getRemoteServer
public java.lang.Object getRemoteServer()
Description copied from interface: ProcessBean
The remote server object for this bean instance, if any.
This is often an application-scope object that can be used
to process a JDBC query or equivalent.
By default, the ProcessAction will set this to any
application scope object found under the key
BaseAction.REMOTE_SERVER or to null.
Specified by: getRemoteServer in interface ProcessBean
Following copied from interface: org.apache.commons.scaffold.util.ProcessBean
Returns:the remote server
setRemoteServer
public void setRemoteServer(java.lang.Object server)
Description copied from interface: ProcessBean
Set the remote server
Specified by: setRemoteServer in interface ProcessBean
Following copied from interface: org.apache.commons.scaffold.util.ProcessBean
Parameters:server - The new server
getScrollFrom
public int getScrollFrom()
Description copied from interface: ProcessBean
Return the scrollFrom property.
The ScrollFrom propery can be used to update a Scroller
object as to the next starting point for a result list.
Specified by: getScrollFrom in interface ProcessBean
Following copied from interface: org.apache.commons.scaffold.util.ProcessBean
Returns:the scrollFrom
setScrollFrom
public void setScrollFrom(int scrollFrom)
Description copied from interface: ProcessBean
Set the scrollFrom
Specified by: setScrollFrom in interface ProcessBean
Following copied from interface: org.apache.commons.scaffold.util.ProcessBean
Parameters:scrollFrom - The new scrollFrom
execute
public java.lang.Object execute()
throws java.lang.Exception
Perform business logic for this bean.
Called by other execute signatures (after populating
subclass properties).
The default implementation returns the bean instance (this).
Subclasses should override to provide functionality.
Specified by: execute in interface ProcessBean
Throws:Subclasses - can throw any Exception
execute
public java.lang.Object execute(java.lang.Object parameters)
throws java.lang.Exception
Perform business logic for this instance by obtaining any
properties from the parameters object.
The base implementation casts the parameters as a Map,
populates the bean, and returns execute().
Specified by: execute in interface ProcessBean
Throws:Subclasses - can throw any Exception
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2001-2002 - Apache Software Foundation