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

java.lang.Object
  extended by com.sibvisions.rad.persist.jdbc.param.AbstractParam
Direct Known Subclasses:
InOutParam, InParam, OutParam

public abstract class AbstractParam
extends Object

The AbstractParam defines a parameter for JDBC calls.


Nested Class Summary
static class AbstractParam.ParameterType
          The possible parameter types.
 
Field Summary
static int SQLTYPE_AUTOMATIC
          Delegate the type decision to the JDBC driver.
static int SQLTYPE_DECIMAL
          VARCHAR SQL Type Types.DECIMAL.
static int SQLTYPE_TIMESTAMP
          VARCHAR SQL Type Types.TIMESTAMP.
static int SQLTYPE_VARCHAR
          VARCHAR SQL Type Types.VARCHAR.
 
Constructor Summary
protected AbstractParam(AbstractParam.ParameterType pType, int pSqlType, Object pValue)
          Creates a new instance of AbstractParam.
 
Method Summary
 int getSqlType()
          Gets the SQL type.
 AbstractParam.ParameterType getType()
          Gets the parameter type.
 Object getValue()
          Gets the current value.
 void setValue(Object pValue)
          Sets the current value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQLTYPE_AUTOMATIC

public static final int SQLTYPE_AUTOMATIC
Delegate the type decision to the JDBC driver.

See Also:
Constant Field Values

SQLTYPE_VARCHAR

public static final int SQLTYPE_VARCHAR
VARCHAR SQL Type Types.VARCHAR.

See Also:
Constant Field Values

SQLTYPE_DECIMAL

public static final int SQLTYPE_DECIMAL
VARCHAR SQL Type Types.DECIMAL.

See Also:
Constant Field Values

SQLTYPE_TIMESTAMP

public static final int SQLTYPE_TIMESTAMP
VARCHAR SQL Type Types.TIMESTAMP.

See Also:
Constant Field Values
Constructor Detail

AbstractParam

protected AbstractParam(AbstractParam.ParameterType pType,
                        int pSqlType,
                        Object pValue)
Creates a new instance of AbstractParam.

Parameters:
pType - the parameter type
pSqlType - the SQL type
pValue - the value
Method Detail

getType

public AbstractParam.ParameterType getType()
Gets the parameter type.

Returns:
the type

getSqlType

public int getSqlType()
Gets the SQL type.

Returns:
the SQL Type
See Also:
Types

getValue

public Object getValue()
Gets the current value.

Returns:
the value

setValue

public void setValue(Object pValue)
Sets the current value.

Parameters:
pValue - the value


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.