| org.apache.cocoon.components.modules.output.AbstractOutputModule org.apache.cocoon.components.modules.output.SessionAttributeOutputModule
SessionAttributeOutputModule | public class SessionAttributeOutputModule extends AbstractOutputModule (Code) | | Abstraction layer to encapsulate different output
destinations. Configuration option <key-prefix> defaults to
"org.apache.cocoon.components.modules.output.OutputModule"+":"
Can be used with different isolation-level: default is "0" being
no isolation at all, values are immediately visible but are removed
on a rollback; "1" keeps the values at a save place until either
rollback or commit is called. Then values are either discarded or
copied to the final destination.
author: Christian Haul version: CVS $Id: SessionAttributeOutputModule.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public void | commit(Configuration modeConf, Map objectModel) Signal that the database transaction completed
successfully. | protected String | getName(String name) | public void | rollback(Configuration modeConf, Map objectModel, Exception e) If a database transaction needs to rollback, this is called to
inform the further processing logic about this fact. | public void | setAttribute(Configuration modeConf, Map objectModel, String name, Object value) communicate an attribute value to further processing logic.
Parameters: modeConf - column's mode configuration from resourcedescription. |
commit | public void commit(Configuration modeConf, Map objectModel)(Code) | | Signal that the database transaction completed
successfully. See notes on @link{rollback}.
|
rollback | public void rollback(Configuration modeConf, Map objectModel, Exception e)(Code) | | If a database transaction needs to rollback, this is called to
inform the further processing logic about this fact. All
already set attribute values are invalidated. This is difficult
because only the request object can be used to synchronize this
and build some kind of transaction object. Beaware that sending
your data straight to some beans or other entities could result
in data corruption!
|
setAttribute | public void setAttribute(Configuration modeConf, Map objectModel, String name, Object value)(Code) | | communicate an attribute value to further processing logic.
Parameters: modeConf - column's mode configuration from resourcedescription. This argument is optional. Parameters: objectModel - The objectModel Parameters: name - The attribute's label, consisting of "table.column"or "table.column[index]" in case of multiple attributes of thesame spec. Parameters: value - The attriute's value. |
Fields inherited from org.apache.cocoon.components.modules.output.AbstractOutputModule | protected HashMap settings(Code)(Java Doc)
|
|
|