org.apache.commons.jelly.tags.sql
Class SetDataSourceTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.tags.sql.SetDataSourceTag
- All Implemented Interfaces:
- Tag
- public class SetDataSourceTag
- extends TagSupport
Tag handler for <SetDataSource> in JSTL, used to create
a simple DataSource for prototyping.
- Author:
- Hans Bergsten, Justyna Horwat
Method Summary |
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
void |
setDataSource(java.lang.Object dataSource)
|
void |
setDriver(java.lang.String driverClassName)
|
void |
setPassword(java.lang.String password)
|
void |
setScope(java.lang.String scope)
Sets the scope of the variable to hold the
result. |
void |
setUrl(java.lang.String jdbcURL)
|
void |
setUser(java.lang.String userName)
|
void |
setVar(java.lang.String var)
|
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataSource
protected java.lang.Object dataSource
dataSourceSpecified
protected boolean dataSourceSpecified
jdbcURL
protected java.lang.String jdbcURL
driverClassName
protected java.lang.String driverClassName
userName
protected java.lang.String userName
password
protected java.lang.String password
SetDataSourceTag
public SetDataSourceTag()
setScope
public void setScope(java.lang.String scope)
- Sets the scope of the variable to hold the
result.
setVar
public void setVar(java.lang.String var)
setDataSource
public void setDataSource(java.lang.Object dataSource)
setDriver
public void setDriver(java.lang.String driverClassName)
setUrl
public void setUrl(java.lang.String jdbcURL)
setUser
public void setUser(java.lang.String userName)
setPassword
public void setPassword(java.lang.String password)
doTag
public void doTag(XMLOutput output)
throws java.lang.Exception
- Description copied from interface:
Tag
- Evaluates this tag after all the tags properties have been initialized.
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.