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

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

public class InParam
extends AbstractParam

The InParam defines a simple input parameter. The value is not changed due to a JDBC call. Only manual value updates are possible.


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
  InParam(int pSqlType)
          Creates a new instance of InParam for the given sql type.
  InParam(int pSqlType, java.lang.Object pValue)
          Creates a new instance of InParam for the given value and sql type.
protected InParam(int pSqlType, java.lang.String pStructType, java.lang.Object pValue)
          Creates a new instance of InParam for the given value and array type.
  InParam(java.lang.Object pValue)
          Creates a new instance of InParam with the given value.
  InParam(java.lang.String pArrayType)
          Deprecated. use newArrayParam(String) instead.
  InParam(java.lang.String pArrayType, java.lang.Object pValue)
          Deprecated. use newArrayParam(String, Object) instead.
 
Method Summary
static InParam newArrayParam(java.lang.String pArrayType)
          Creates a new instance of InParam for the given array type.
static InParam newArrayParam(java.lang.String pArrayType, java.lang.Object pValue)
          Creates a new instance of InParam for the given array type.
static InParam newStructParam(java.lang.String pStructType)
          Creates a new instance of InParam for the given struct type.
static InParam newStructParam(java.lang.String pStructType, java.lang.Object pValue)
          Creates a new instance of InParam 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

InParam

public InParam(java.lang.Object pValue)
Creates a new instance of InParam with the given value.

Parameters:
pValue - the input value

InParam

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

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

InParam

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

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

InParam

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

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

Parameters:
pArrayType - the array type.

InParam

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

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

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

InParam

protected InParam(int pSqlType,
                  java.lang.String pStructType,
                  java.lang.Object pValue)
Creates a new instance of InParam 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 InParam newArrayParam(java.lang.String pArrayType)
Creates a new instance of InParam for the given array type.

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

newArrayParam

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

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

newStructParam

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

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

newStructParam

public static InParam newStructParam(java.lang.String pStructType,
                                     java.lang.Object pValue)
Creates a new instance of InParam 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.