org.opennms.web.filter
Class DateSqlType

java.lang.Object
  extended by org.opennms.web.filter.DateSqlType
All Implemented Interfaces:
SQLType<Date>

public class DateSqlType
extends Object
implements SQLType<Date>


Field Summary
 
Fields inherited from interface org.opennms.web.filter.SQLType
DATE, INT, STRING
 
Constructor Summary
DateSqlType()
           
 
Method Summary
 void bindParam(PreparedStatement ps, int parameterIndex, Date value)
           
 Date[] createArray(Date value1, Date value2)
           
 String formatValue(Date value)
           
 String getValueAsString(Date value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateSqlType

public DateSqlType()
Method Detail

bindParam

public void bindParam(PreparedStatement ps,
                      int parameterIndex,
                      Date value)
               throws SQLException
Specified by:
bindParam in interface SQLType<Date>
Throws:
SQLException

getValueAsString

public String getValueAsString(Date value)
Specified by:
getValueAsString in interface SQLType<Date>

formatValue

public String formatValue(Date value)
Specified by:
formatValue in interface SQLType<Date>

createArray

public Date[] createArray(Date value1,
                          Date value2)
Specified by:
createArray in interface SQLType<Date>


Copyright © 2009. All Rights Reserved.