com.sibvisions.rad.persist.jdbc.param
Class InOutParam

java.lang.Object
  extended by com.sibvisions.rad.persist.jdbc.param.AbstractParam
      extended by com.sibvisions.rad.persist.jdbc.param.InOutParam

public class InOutParam
extends AbstractParam

The InOutParam defines an input and output parameter for JDBC calls.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sibvisions.rad.persist.jdbc.param.AbstractParam
AbstractParam.ParameterType
 
Field Summary
 
Fields inherited from class com.sibvisions.rad.persist.jdbc.param.AbstractParam
SQLTYPE_AUTOMATIC, SQLTYPE_DECIMAL, SQLTYPE_TIMESTAMP, SQLTYPE_VARCHAR
 
Constructor Summary
  InOutParam(int pSqlType)
          Creates a new instance of InOutParam for the given sql type.
  InOutParam(int pSqlType, java.lang.Object pValue)
          Creates a new instance of InOutParam for the given value and sql type.
protected InOutParam(int pSqlType, java.lang.String pStructType, java.lang.Object pValue)
          Creates a new instance of InOutParam for the given value and array type.
  InOutParam(java.lang.String pArrayType)
          Deprecated. use newArrayParam(String) instead.
  InOutParam(java.lang.String pArrayType, java.lang.Object pValue)
          Deprecated. use newArrayParam(String, Object) instead.
 
Method Summary
static InOutParam newArrayParam(java.lang.String pArrayType)
          Creates a new instance of InOutParam for the given array type.
static InOutParam newArrayParam(java.lang.String pArrayType, java.lang.Object pValue)
          Creates a new instance of InOutParam for the given array type.
static InOutParam newStructParam(java.lang.String pStructType)
          Creates a new instance of InOutParam for the given struct type.
static InOutParam newStructParam(java.lang.String pStructType, java.lang.Object pValue)
          Creates a new instance of InOutParam for the given struct type.
 
Methods inherited from class com.sibvisions.rad.persist.jdbc.param.AbstractParam
getArrayType, getSqlType, getType, getTypeName, getValue, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InOutParam

public InOutParam(int pSqlType)
Creates a new instance of InOutParam for the given sql type.

Parameters:
pSqlType - the sql type. All Types are supported.

InOutParam

public InOutParam(int pSqlType,
                  java.lang.Object pValue)
Creates a new instance of InOutParam for the given value and sql type.

Parameters:
pValue - the input value
pSqlType - the sql type. All Types are supported.

InOutParam

@Deprecated
public InOutParam(java.lang.String pArrayType)
Deprecated. use newArrayParam(String) instead.

Creates a new instance of InOutParam for the given array type.

Parameters:
pArrayType - the array type.

InOutParam

@Deprecated
public InOutParam(java.lang.String pArrayType,
                             java.lang.Object pValue)
Deprecated. use newArrayParam(String, Object) instead.

Creates a new instance of InOutParam for the given value and array type.

Parameters:
pArrayType - the array type.
pValue - the input value

InOutParam

protected InOutParam(int pSqlType,
                     java.lang.String pStructType,
                     java.lang.Object pValue)
Creates a new instance of InOutParam for the given value and array type.

Parameters:
pSqlType - the sql type. All Types are supported.
pStructType - the array type.
pValue - the input value
Method Detail

newArrayParam

public static InOutParam newArrayParam(java.lang.String pArrayType)
Creates a new instance of InOutParam for the given array type.

Parameters:
pArrayType - the array type.
Returns:
the OutParam.

newArrayParam

public static InOutParam newArrayParam(java.lang.String pArrayType,
                                       java.lang.Object pValue)
Creates a new instance of InOutParam for the given array type.

Parameters:
pArrayType - the array type.
pValue - the input value
Returns:
the OutParam.

newStructParam

public static InOutParam newStructParam(java.lang.String pStructType)
Creates a new instance of InOutParam for the given struct type.

Parameters:
pStructType - the array type.
Returns:
the OutParam.

newStructParam

public static InOutParam newStructParam(java.lang.String pStructType,
                                        java.lang.Object pValue)
Creates a new instance of InOutParam for the given struct type.

Parameters:
pStructType - the array type.
pValue - the input value
Returns:
the OutParam.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.