com.seag.qm
Class IntegerQueryParameter

java.lang.Object
  |
  +--com.seag.qm.QueryParameter
        |
        +--com.seag.qm.IntegerQueryParameter

public class IntegerQueryParameter
extends QueryParameter


Fields inherited from class com.seag.qm.QueryParameter
param
 
Constructor Summary
IntegerQueryParameter()
          Creating a null IntegerQueryParameter
IntegerQueryParameter(int i)
          Creating a IntegerQueryParameter
IntegerQueryParameter(java.lang.Integer param)
          Creating a IntegerQueryParameter
 
Method Summary
 java.lang.String getParameterType()
          Getting the Stringrepresentation of the type of the parameter ("Integer")
 void setParameter(java.sql.PreparedStatement stmt, int pos)
          This Method is needed by the ExecuteQuery Class
 
Methods inherited from class com.seag.qm.QueryParameter
getValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerQueryParameter

public IntegerQueryParameter(java.lang.Integer param)
Creating a IntegerQueryParameter
Parameters:
param - Integer value object

IntegerQueryParameter

public IntegerQueryParameter(int i)
Creating a IntegerQueryParameter
Parameters:
param - Integer value primitve type

IntegerQueryParameter

public IntegerQueryParameter()
Creating a null IntegerQueryParameter
Method Detail

setParameter

public void setParameter(java.sql.PreparedStatement stmt,
                         int pos)
                  throws java.sql.SQLException
This Method is needed by the ExecuteQuery Class
Overrides:
setParameter in class QueryParameter
Parameters:
stmt - an allready created PreparedStatement (by the ExecuteQuery)
pos - Position of the parameter
Throws:
java.sql.SQLException - if the method fails

getParameterType

public java.lang.String getParameterType()
Getting the Stringrepresentation of the type of the parameter ("Integer")
Overrides:
getParameterType in class QueryParameter
Returns:
String - Representation of the type of the parameter