com.simba.dsi.ext
Class ProcedureParameterValue

java.lang.Object
  extended by com.simba.dsi.ext.ProcedureParameterValue

public class ProcedureParameterValue
extends java.lang.Object

A class that represents a value for a stored procedure.

The parameter value types will correspond exactly to the types that is specified by ParameterType


Constructor Summary
ProcedureParameterValue(DataWrapper data, boolean isDefault)
          Constructor.
 
Method Summary
 DataWrapper getData()
          Returns the data to be used for the parameter value.
 boolean isDefaultValue()
          Indicates if the parameter value is to be considered "default".
 boolean isNull()
          Return if the procedure parameter is NULL.
 void setNull()
          Set the procedure parameter value to NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcedureParameterValue

public ProcedureParameterValue(DataWrapper data,
                               boolean isDefault)
Constructor.

Parameters:
data - Input parameter data. May be null if isDefault is true.
isDefault - Indicates if the input parameter value should be considered "default".
Method Detail

getData

public DataWrapper getData()
Returns the data to be used for the parameter value.

Returns:
Data value.

isDefaultValue

public boolean isDefaultValue()
Indicates if the parameter value is to be considered "default".

Returns:
Default value indicator.

isNull

public boolean isNull()
Return if the procedure parameter is NULL. This is the same as getData().isNull().

Returns:
true if the procedure parameter is NULL; false otherwise.

setNull

public void setNull()
Set the procedure parameter value to NULL.



Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.