com.github.inspektr.audit.support
Class MaxAgeWhereClauseMatchCriteria

java.lang.Object
  extended by com.github.inspektr.audit.support.AbstractWhereClauseMatchCriteria
      extended by com.github.inspektr.audit.support.MaxAgeWhereClauseMatchCriteria
All Implemented Interfaces:
WhereClauseMatchCriteria

public final class MaxAgeWhereClauseMatchCriteria
extends AbstractWhereClauseMatchCriteria

Produces a where clause to select audit records older than some arbitrary cutoff age in days.

Since:
1.0
Version:
$Revision: $
Author:
Marvin S. Addison

Field Summary
protected  int maxAge
          Maximum age of records
 
Fields inherited from class com.github.inspektr.audit.support.AbstractWhereClauseMatchCriteria
sbClause
 
Constructor Summary
MaxAgeWhereClauseMatchCriteria(int maxAgeDays)
          Creates a new instance that selects audit records older than the given number of days as measured from the present time.
 
Method Summary
 List<?> getParameterValues()
          
 
Methods inherited from class com.github.inspektr.audit.support.AbstractWhereClauseMatchCriteria
addCriteria, addCriteria, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

maxAge

protected int maxAge
Maximum age of records

Constructor Detail

MaxAgeWhereClauseMatchCriteria

public MaxAgeWhereClauseMatchCriteria(int maxAgeDays)
Creates a new instance that selects audit records older than the given number of days as measured from the present time.

Parameters:
maxAgeDays - Cutoff age of records in days.
Method Detail

getParameterValues

public List<?> getParameterValues()

Returns:
Immutable list of parameter values for a parameterized query or an empty list if the where clause is not parameterized.


Copyright © 2007-2011 Rutgers, the State University of New Jersey. All Rights Reserved.