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

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

public class PatternCriteria
extends Criteria

Criteria for patterns.

Author:
zubairov

Field Summary
 
Fields inherited from class org.talend.esb.sam.server.persistence.criterias.Criteria
columnName, name
 
Constructor Summary
PatternCriteria(String name, String colunmName)
          Instantiates a new pattern criteria.
PatternCriteria(String name, String columnName, String condition)
          Conditional pattern 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

PatternCriteria

public PatternCriteria(String name,
                       String colunmName)
Instantiates a new pattern criteria.

Parameters:
name - the name
colunmName - the column name

PatternCriteria

public PatternCriteria(String name,
                       String columnName,
                       String condition)
Conditional pattern criteria.

Parameters:
name - the name
columnName - the column name
condition - condition that will be concatenated to the pattern condition
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.