javax.rad.model.condition
Class ContainsIgnoreCase

java.lang.Object
  extended by javax.rad.model.condition.BaseCondition
      extended by javax.rad.model.condition.CompareCondition
          extended by javax.rad.model.condition.LikeIgnoreCase
              extended by javax.rad.model.condition.ContainsIgnoreCase
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ICondition

public class ContainsIgnoreCase
extends LikeIgnoreCase

The ContainsIgnoreCase condition is a LikeIgnoreCase condition with a leading and trailing *.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.rad.model.condition.LikeIgnoreCase
searchTransformed, searchValue
 
Constructor Summary
ContainsIgnoreCase()
          Creates a new instance of ContainsIgnoreCase.
ContainsIgnoreCase(IDataRow pDataRow, java.lang.String pColumnName)
          Constructs a new ContainsIgnoreCase Condition, with a column, the IDataRow to check and if null values should be ignored.
ContainsIgnoreCase(IDataRow pDataRow, java.lang.String pColumnName, boolean pIgnoreNull)
          Constructs a new ContainsIgnoreCase Condition, with a column, the IDataRow to check and that null values will be ignored. setIgnoreNull(true).
ContainsIgnoreCase(IDataRow pDataRow, java.lang.String pDataRowColumnName, java.lang.String pColumnName)
          Constructs a new ContainsIgnoreCase Condition, with a column, the IDataRow to check, the column name to use in the IDataRow to get the value and that null values will be ignored. setIgnoreNull(true).
ContainsIgnoreCase(IDataRow pDataRow, java.lang.String pDataRowColumnName, java.lang.String pColumnName, boolean pIgnoreNull)
          Constructs a new ContainsIgnoreCase Condition, with a column, the IDataRow to check, the column name to use in the IDataRow to get the value and if null values should be ignored.
ContainsIgnoreCase(java.lang.String pColumnName, java.lang.Object pValue)
          Creates a new instance of ContainsIgnoreCase with a defined compare value.
ContainsIgnoreCase(java.lang.String pColumnName, java.lang.Object pValue, boolean pIgnoreNull)
          Creates a new instance of ContainsIgnoreCase with a defined compare value.
 
Method Summary
 java.lang.Object getValue()
          Returns the value to use in the compare.
 
Methods inherited from class javax.rad.model.condition.LikeIgnoreCase
isFulfilled
 
Methods inherited from class javax.rad.model.condition.CompareCondition
clone, getColumnName, getDataRow, getDataRowColumnName, isFulfilled, isIgnoreNull, setColumnName, setIgnoreNull, setValue
 
Methods inherited from class javax.rad.model.condition.BaseCondition
and, or, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainsIgnoreCase

public ContainsIgnoreCase()
Creates a new instance of ContainsIgnoreCase.


ContainsIgnoreCase

public ContainsIgnoreCase(java.lang.String pColumnName,
                          java.lang.Object pValue)
Creates a new instance of ContainsIgnoreCase with a defined compare value.

Parameters:
pColumnName - the column name for the value comparison
pValue - the value to compare. % is used as wildcard symbol for any characters.

ContainsIgnoreCase

public ContainsIgnoreCase(java.lang.String pColumnName,
                          java.lang.Object pValue,
                          boolean pIgnoreNull)
Creates a new instance of ContainsIgnoreCase with a defined compare value. It's possible to compare null values if desired.

Parameters:
pColumnName - the column name for the value comparison
pValue - the value to compare. % is used as wildcard symbol for any characters.
pIgnoreNull - true if null values are desired

ContainsIgnoreCase

public ContainsIgnoreCase(IDataRow pDataRow,
                          java.lang.String pColumnName)
Constructs a new ContainsIgnoreCase Condition, with a column, the IDataRow to check and if null values should be ignored. It uses the column name of the ComparCondition for the column name in the IDataRow to get the value.

Parameters:
pDataRow - the IDataRow to use for the compare.
pColumnName - the column name to use for the compare operation

ContainsIgnoreCase

public ContainsIgnoreCase(IDataRow pDataRow,
                          java.lang.String pColumnName,
                          boolean pIgnoreNull)
Constructs a new ContainsIgnoreCase Condition, with a column, the IDataRow to check and that null values will be ignored. setIgnoreNull(true). It uses the column name of the ComparCondition for the column name in the IDataRow to get the value.

Parameters:
pDataRow - the IDataRow to use for the compare.
pColumnName - the column name to use for the compare operation
pIgnoreNull - determines if null values should be ignored.

ContainsIgnoreCase

public ContainsIgnoreCase(IDataRow pDataRow,
                          java.lang.String pDataRowColumnName,
                          java.lang.String pColumnName)
Constructs a new ContainsIgnoreCase Condition, with a column, the IDataRow to check, the column name to use in the IDataRow to get the value and that null values will be ignored. setIgnoreNull(true).

Parameters:
pDataRow - the IDataRow to use for the compare.
pDataRowColumnName - the column name in the IDataRow to use for the compare.
pColumnName - the column name to use for the compare operation

ContainsIgnoreCase

public ContainsIgnoreCase(IDataRow pDataRow,
                          java.lang.String pDataRowColumnName,
                          java.lang.String pColumnName,
                          boolean pIgnoreNull)
Constructs a new ContainsIgnoreCase Condition, with a column, the IDataRow to check, the column name to use in the IDataRow to get the value and if null values should be ignored.

Parameters:
pDataRow - the IDataRow to use for the compare.
pDataRowColumnName - the column name in the IDataRow to use for the compare.
pColumnName - the column name to use for the compare operation
pIgnoreNull - determines if null values should be ignored.
Method Detail

getValue

public java.lang.Object getValue()
Returns the value to use in the compare.

Overrides:
getValue in class CompareCondition
Returns:
the value to use in the compare.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.