|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.beans.SubRoutine
public class SubRoutine
The SubRoutine bean represents a partially defined stored procedure or SQL call which can be called later by specifying missing parameters or overriding them with new values.
Constructor Summary | |
---|---|
SubRoutine()
Constructs an empty Subroutine bean. |
Method Summary | |
---|---|
void |
addParam(Param param)
Convenience method to add a single param to the subroutine. |
java.lang.String |
getDescription()
Returns the description for the subroutine. |
java.lang.String |
getName()
Returns the name of the subroutine. |
java.util.Map |
getParamMap()
Returns the parameter map for the subroutine. |
java.lang.String |
getQuery()
Returns the query for the subroutine. |
java.lang.String |
getType()
Returns the type of the subroutine. |
void |
setDescription(java.lang.String description)
Sets the description for the subroutine. |
void |
setName(java.lang.String name)
Sets the name of the subroutine. |
void |
setQuery(java.lang.String query)
Sets the query for the subroutine. |
void |
setType(java.lang.String type)
Sets the type of the subroutine. |
void |
updateParam(java.lang.String paramName,
java.lang.String paramValue)
Convenience method to update the value of a param object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubRoutine()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name.public java.lang.String getQuery()
public void setQuery(java.lang.String query)
query
- the query.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description.public java.lang.String getType()
public void setType(java.lang.String type)
type
- the type.public java.util.Map getParamMap()
public void addParam(Param param)
param
- the Param object to add to the SubRoutine's map.public void updateParam(java.lang.String paramName, java.lang.String paramValue)
paramName
- the name of the param to update.paramValue
- the value of the param to update.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |