Package org.opennms.web.filter
Class DateSqlType
- java.lang.Object
-
- org.opennms.web.filter.DateSqlType
-
-
Constructor Summary
Constructors Constructor Description DateSqlType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindParam(PreparedStatement ps, int parameterIndex, Date value)
bindParamDate[]
createArray(Date value1, Date value2)
createArrayString
formatValue(Date value)
formatValueString
getValueAsString(Date value)
getValueAsString
-
-
-
Method Detail
-
bindParam
public void bindParam(PreparedStatement ps, int parameterIndex, Date value) throws SQLException
bindParam
- Specified by:
bindParam
in interfaceSQLType<Date>
- Parameters:
ps
- aPreparedStatement
object.parameterIndex
- a int.value
- aDate
object.- Throws:
SQLException
- if any.
-
getValueAsString
public String getValueAsString(Date value)
getValueAsString
- Specified by:
getValueAsString
in interfaceSQLType<Date>
- Parameters:
value
- aDate
object.- Returns:
- a
String
object.
-
formatValue
public String formatValue(Date value)
formatValue
- Specified by:
formatValue
in interfaceSQLType<Date>
- Parameters:
value
- aDate
object.- Returns:
- a
String
object.
-
-