org.opennms.web.vulnerability.filter
Class CreationDateAfterFilter

java.lang.Object
  extended by org.opennms.web.vulnerability.filter.CreationDateAfterFilter
All Implemented Interfaces:
Filter

public class CreationDateAfterFilter
extends Object
implements Filter

CreationDateAfterFilter class.

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

Field Summary
protected  Date date
           
protected static DateFormat DATE_FORMAT
          Constant DATE_FORMAT
static String TYPE
          Constant TYPE="createdafter"
 
Constructor Summary
CreationDateAfterFilter(Date date)
          Constructor for CreationDateAfterFilter.
CreationDateAfterFilter(long epochTime)
          Constructor for CreationDateAfterFilter.
 
Method Summary
 int bindParam(PreparedStatement ps, int parameterIndex)
          Binds the parameter values corresponding to the ? tokens in the string returned from getParamSql() to a prepared statement.
 boolean equals(Object obj)
          
 Date getDate()
          Getter for the field date.
 String getDescription()
          getDescription
 String getParamSql()
          getParamSql
 String getSql()
          getSql
 String getTextDescription()
          getTextDescription
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
Constant TYPE="createdafter"

See Also:
Constant Field Values

DATE_FORMAT

protected static final DateFormat DATE_FORMAT
Constant DATE_FORMAT


date

protected Date date
Constructor Detail

CreationDateAfterFilter

public CreationDateAfterFilter(Date date)

Constructor for CreationDateAfterFilter.

Parameters:
date - a java$util$Date object.

CreationDateAfterFilter

public CreationDateAfterFilter(long epochTime)

Constructor for CreationDateAfterFilter.

Parameters:
epochTime - a long.
Method Detail

getSql

public String getSql()

getSql

Specified by:
getSql in interface Filter
Returns:
a String object.

getParamSql

public String getParamSql()

getParamSql

Specified by:
getParamSql in interface Filter
Returns:
a String object.

bindParam

public int bindParam(PreparedStatement ps,
                     int parameterIndex)
              throws SQLException
Binds the parameter values corresponding to the ? tokens in the string returned from getParamSql() to a prepared statement. Returns the number of parameters that were bound.

Specified by:
bindParam in interface Filter
Parameters:
ps - a PreparedStatement object.
parameterIndex - a int.
Returns:
a int.
Throws:
SQLException - if any.

getDescription

public String getDescription()

getDescription

Specified by:
getDescription in interface Filter
Returns:
a String object.

getTextDescription

public String getTextDescription()

getTextDescription

Specified by:
getTextDescription in interface Filter
Returns:
a String object.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.

getDate

public Date getDate()

Getter for the field date.

Returns:
a java$util$Date object.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.