org.hdpagination.dataaccess.support
Class Parameter

java.lang.Object
  extended by org.hdpagination.dataaccess.support.Parameter
All Implemented Interfaces:
java.io.Serializable

public class Parameter
extends java.lang.Object
implements java.io.Serializable

Parameter to bind the query statement.

Since:
1.3.1
Author:
Liangfeng Ren
See Also:
Serialized Form

Constructor Summary
Parameter(java.lang.Object paramValue)
           
Parameter(java.lang.Object paramValue, int targetSqlType)
           
 
Method Summary
 int getSqlType()
          SQL type of the binding parameter (constants from java.sql.Types)
 java.lang.Object getValue()
          value to bind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter(java.lang.Object paramValue)
Parameters:
paramValue - value to bind

Parameter

public Parameter(java.lang.Object paramValue,
                 int targetSqlType)
Parameters:
paramValue - value to bind
targetSqlType - SQL type of the binding parameter (constants from java.sql.Types)
Method Detail

getValue

public java.lang.Object getValue()
value to bind

Returns:

getSqlType

public int getSqlType()
SQL type of the binding parameter (constants from java.sql.Types)

Returns:


Copyright © 2008 HDPagination All Rights Reserved.