|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.beans.Param
public class Param
The Param bean models an Object whose member variables are the attributes of the param element.
Constructor Summary | |
---|---|
Param()
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
getId()
Returns the param id. |
java.lang.String |
getInOut()
Returns the param in-out value. |
java.lang.String |
getIsNull()
Returns true if the param contains null values. |
java.lang.String |
getName()
Returns the param name. |
int |
getScale()
Returns the scale of the parameter value. |
int |
getSQLType()
Convenience method to return the SQL (numeric) type from the supplied (String XML) type. |
java.lang.String |
getType()
Returns the param type. |
java.lang.String |
getTypeName()
Return the type name of a user-defined type. |
java.lang.String |
getValue()
Returns the param value. |
boolean |
isInParameter()
Returns true if the parameter is an IN or INOUT parameter. |
boolean |
isNull()
Convenience method to return if the parameter is set to NULL. |
boolean |
isOutParameter()
Returns true if the parameter is an OUT or INOUT parameter. |
void |
setId(java.lang.String id)
Sets the param id. |
void |
setInOut(java.lang.String inOut)
Sets the param in-out value. |
void |
setIsNull(java.lang.String isNull)
Sets to "true" if the param supports null values. |
void |
setName(java.lang.String name)
Sets the param name. |
void |
setScale(int scale)
Overloaded convenience setter to set the scale as an int. |
void |
setScale(java.lang.String scale)
Sets the scale of the parameter. |
void |
setType(java.lang.String type)
Sets the param type. |
void |
setTypeName(java.lang.String typeName)
Set the type name of the user-defined type. |
void |
setValue(java.lang.String value)
Sets the param value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Param()
Method Detail |
---|
public final java.lang.String getId()
public final void setId(java.lang.String id)
id
- the param id.public final java.lang.String getName()
public final void setName(java.lang.String name)
name
- the param name.public final java.lang.String getType()
public final int getSQLType() throws SQLUnitException
SQLUnitException
- if one is thrown.public final void setType(java.lang.String type)
type
- the param type.public final java.lang.String getIsNull()
public final boolean isNull()
public final void setIsNull(java.lang.String isNull)
isNull
- true if the param supports null values.public final java.lang.String getInOut()
public final boolean isInParameter()
public final boolean isOutParameter()
public final void setInOut(java.lang.String inOut)
inOut
- the param in-out value.public final java.lang.String getValue()
public final void setValue(java.lang.String value)
value
- the param value.public final int getScale()
public final void setScale(java.lang.String scale)
scale
- the scale of the parameter as a String.public final void setScale(int scale)
scale
- the scale of the parameter as an int.public final java.lang.String getTypeName()
public final void setTypeName(java.lang.String typeName)
typeName
- the fully qualified SQL type name of the Param.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |