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>

DateSqlType class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger

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)
          bindParam
 Date[] createArray(Date value1, Date value2)
          createArray
 String formatValue(Date value)
          formatValue
 String getValueAsString(Date value)
          getValueAsString
 
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

bindParam

Specified by:
bindParam in interface SQLType<Date>
Parameters:
ps - a PreparedStatement object.
parameterIndex - a int.
value - a Date object.
Throws:
SQLException - if any.

getValueAsString

public String getValueAsString(Date value)

getValueAsString

Specified by:
getValueAsString in interface SQLType<Date>
Parameters:
value - a Date object.
Returns:
a String object.

formatValue

public String formatValue(Date value)

formatValue

Specified by:
formatValue in interface SQLType<Date>
Parameters:
value - a Date object.
Returns:
a String object.

createArray

public Date[] createArray(Date value1,
                          Date value2)

createArray

Specified by:
createArray in interface SQLType<Date>
Parameters:
value1 - a Date object.
value2 - a Date object.
Returns:
an array of Date objects.


Copyright © 2011. All Rights Reserved.