com.seag.qm
Class TimeQueryParameter

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

public class TimeQueryParameter
extends QueryParameter


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

Constructor Detail

TimeQueryParameter

public TimeQueryParameter(java.sql.Time param)
Creating a TimeQueryParameter
Parameters:
param - java.sql.Time

TimeQueryParameter

public TimeQueryParameter(long time)
Creating a TimeQueryParameter
Parameters:
date - date in milliseconds since 1.1.1970

TimeQueryParameter

public TimeQueryParameter()
Creating a null TimeQueryParameter
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 ("Time")
Overrides:
getParameterType in class QueryParameter
Returns:
String - Representation of the type of the parameter

getValue

public java.lang.Object getValue()
Override method, because explicite casting is needed
Overrides:
getValue in class QueryParameter
Returns:
Resultobject