org.mmbase.bridge.jsp.taglib.edit
Class TransactionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended by org.mmbase.bridge.jsp.taglib.CloudReferrerTag
                  extended by org.mmbase.bridge.jsp.taglib.edit.TransactionTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, CloudProvider, TagIdentifier
Direct Known Subclasses:
FormTag

public class TransactionTag
extends CloudReferrerTag
implements CloudProvider

Creates a new Transaction.

Version:
$Id: TransactionTag.java 40620 2010-01-20 09:10:19Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  Attribute commit
           
protected  String jspvar
           
static String KEY
           
protected  Attribute name
           
protected  Object prevCloud
           
protected  Object prevTransaction
           
protected  boolean putInContext
           
static int SCOPE
           
protected  Transaction transaction
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
cloudId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
TransactionTag()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
          Creates the transaction.
 Cloud getCloudVar()
          Find the CloudProvider and return its cloud variable in one step.
protected  boolean getDefaultCommit()
           
 String getName()
           
protected  void refreshTransaction()
           
 void setCommitonclose(String c)
           
 void setJspvar(String jv)
           
 void setName(String s)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
fillStandardParameters, findCloudProvider, findCloudProvider, getCloudContext, getLocale, getNode, getNodeOrNull, setCloud
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
appendMoreParameters, doCatch, doFinally, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setListdelimiter, setPageContext, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.TagIdentifier
getId
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

KEY

public static final String KEY
See Also:
Constant Field Values

SCOPE

public static final int SCOPE
See Also:
Constant Field Values

transaction

protected Transaction transaction

commit

protected Attribute commit

name

protected Attribute name

jspvar

protected String jspvar

prevCloud

protected Object prevCloud

prevTransaction

protected Object prevTransaction

putInContext

protected boolean putInContext
Constructor Detail

TransactionTag

public TransactionTag()
Method Detail

setCommitonclose

public void setCommitonclose(String c)
                      throws JspTagException
Throws:
JspTagException

getCloudVar

public Cloud getCloudVar()
                  throws JspTagException
Description copied from class: CloudReferrerTag
Find the CloudProvider and return its cloud variable in one step. And the result of findCloudProvider is stored, so invoking this function more often is better then invoking findCloudProvider every time.

Specified by:
getCloudVar in interface CloudProvider
Overrides:
getCloudVar in class CloudReferrerTag
Returns:
a Cloud
Throws:
JspTagException
Since:
1.7.1 this method shadows/implements the methods below.
See Also:
CloudReferrerTag.getCloudVar(), CloudProvider.getCloudVar()

setName

public void setName(String s)
             throws JspTagException
Throws:
JspTagException

setJspvar

public void setJspvar(String jv)
Overrides:
setJspvar in class ContextReferrerTag

getName

public String getName()
               throws JspTagException
Throws:
JspTagException

refreshTransaction

protected void refreshTransaction()
                           throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.9.2

doStartTag

public int doStartTag()
               throws JspTagException
Creates the transaction.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BodyTagSupport
Throws:
JspTagException

getDefaultCommit

protected boolean getDefaultCommit()

doEndTag

public int doEndTag()
             throws JspTagException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class ContextReferrerTag
Throws:
JspTagException

doAfterBody

public int doAfterBody()
                throws JspTagException
Specified by:
doAfterBody in interface IterationTag
Overrides:
doAfterBody in class BodyTagSupport
Throws:
JspTagException


MMBase 2.0-SNAPSHOT - null