org.talend.esb.sam.server.persistence.criterias
Class DateCriteria

java.lang.Object
  extended by org.talend.esb.sam.server.persistence.criterias.Criteria
      extended by org.talend.esb.sam.server.persistence.criterias.DateCriteria

public class DateCriteria
extends Criteria

Criteria for date values.

Author:
zubairov

Field Summary
 
Fields inherited from class org.talend.esb.sam.server.persistence.criterias.Criteria
columnName, name
 
Constructor Summary
DateCriteria(String name, String colunmName)
          Instantiates a new date criteria.
 
Method Summary
 StringBuilder getFilterClause()
          Returns something like (COLUMN = :name).
 Object getValue()
          Returns a value of the Criteria that in suitable SQL type.
 Criteria[] parseValue(String attribute)
          Creates a copy of the given Criteria populated with the parsed value or throws an exception.
 
Methods inherited from class org.talend.esb.sam.server.persistence.criterias.Criteria
equals, getName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateCriteria

public DateCriteria(String name,
                    String colunmName)
Instantiates a new date criteria.

Parameters:
name - the name
colunmName - the colunm name
Method Detail

parseValue

public Criteria[] parseValue(String attribute)
Description copied from class: Criteria
Creates a copy of the given Criteria populated with the parsed value or throws an exception.

Specified by:
parseValue in class Criteria
Parameters:
attribute - the attribute
Returns:
the criteria[]

getValue

public Object getValue()
Description copied from class: Criteria
Returns a value of the Criteria that in suitable SQL type.

Specified by:
getValue in class Criteria
Returns:
the value

getFilterClause

public StringBuilder getFilterClause()
Description copied from class: Criteria
Returns something like (COLUMN = :name).

Specified by:
getFilterClause in class Criteria
Returns:
the filter clause


Copyright © 2011-2012 Talend Inc.. All Rights Reserved.