pt.moredata.taglibs.dao
Class CreateDAOTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bypt.moredata.taglibs.AbstractTag
          extended bypt.moredata.taglibs.dao.DAOAbstractTag
              extended bypt.moredata.taglibs.dao.CreateDAOTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public class CreateDAOTag
extends DAOAbstractTag
implements javax.servlet.jsp.tagext.TryCatchFinally

CreateDAOTag.java TODO : Falta uma tag para definir quais as colunas a incluir no DAO. TODO : Precisa de trabalho ao nivel de criar a conexão, talvez usar as tags de conexao das dbtags !? Company MoreData

Version:
$Revision: 1.4 $
Author:
pcarmo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class pt.moredata.taglibs.dao.DAOAbstractTag
dao
 
Fields inherited from class pt.moredata.taglibs.AbstractTag
uri
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
CreateDAOTag()
          Creates a new instance of CreateDAO
 
Method Summary
 int doEndTag()
          Processa o fim da tag.
 void doFinally()
          Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag.
 int doStartTag()
          Processa o inicio da tag.
 void setColumnNames(java.util.ArrayList colnames)
          Setter for property columnNames.
 void setDaoVarName(java.lang.String daoVarName)
          Setter for property daoVarName.
 void setDataSourceVarName(java.lang.String dataSourceVarName)
          Setter for property dataSourceVarName.
 void setOrderBy(java.lang.String orderBy)
          Setter for property orderBy.
 void setQuery(java.lang.String query)
          Setter for property query.
 void setTableName(java.lang.String tableName)
          Setter for property tableName.
 void setWhereClause(java.lang.String whereClause)
          Setter for property whereClause.
 
Methods inherited from class pt.moredata.taglibs.dao.DAOAbstractTag
getDAO
 
Methods inherited from class pt.moredata.taglibs.AbstractTag
doCatch, getAncestor, getAncestor, getUri, getVarFromJspPage, readUri, setVarInJspPage
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.TryCatchFinally
doCatch
 

Constructor Detail

CreateDAOTag

public CreateDAOTag()
Creates a new instance of CreateDAO

Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Processa o inicio da tag.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Specified by:
doStartTag in class DAOAbstractTag
Returns:
A accao que deve ser tomada pelo servidor de .jsp apos ler o inicio da tag.
Throws:
javax.servlet.jsp.JspTagException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Processa o fim da tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Specified by:
doEndTag in class DAOAbstractTag
Returns:
a accao que deve ser tomada pelo servidor de .jsp apos ler a tag.
Throws:
javax.servlet.jsp.JspTagException

doFinally

public void doFinally()
Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag. This method is invoked even if an exception has occurred in the BODY of the tag, or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody(). This method is not invoked if the Throwable occurs during one of the setter methods. This method should not throw an Exception. This method is intended to maintain per-invocation data integrity and resource management actions.

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doFinally in class DAOAbstractTag

setDataSourceVarName

public void setDataSourceVarName(java.lang.String dataSourceVarName)
                          throws javax.servlet.jsp.JspTagException
Setter for property dataSourceVarName.

Parameters:
dataSourceVarName - New value of property dataSourceVarName.
Throws:
javax.servlet.jsp.JspTagException

setDaoVarName

public void setDaoVarName(java.lang.String daoVarName)
Setter for property daoVarName.


setOrderBy

public void setOrderBy(java.lang.String orderBy)
Setter for property orderBy.

Parameters:
orderBy - New value of property orderBy.

setQuery

public void setQuery(java.lang.String query)
Setter for property query.

Parameters:
query - New value of property query.

setTableName

public void setTableName(java.lang.String tableName)
Setter for property tableName.

Parameters:
tableName - New value of property tableName.

setWhereClause

public void setWhereClause(java.lang.String whereClause)
Setter for property whereClause.

Parameters:
whereClause - New value of property whereClause.

setColumnNames

public void setColumnNames(java.util.ArrayList colnames)
Setter for property columnNames.

Parameters:
colnames - New value of property columnNames.