com.mizar.persistence.jpa.facade
Class QueryFragment

java.lang.Object
  extended by com.mizar.persistence.jpa.facade.QueryFragment

public class QueryFragment
extends java.lang.Object

Used by QueryBuilder


Constructor Summary
QueryFragment()
           
QueryFragment(java.lang.String propertyName)
           
QueryFragment(java.lang.String propertyName, int test)
           
QueryFragment(java.lang.String propertyName, int test, java.lang.Object value)
           
QueryFragment(java.lang.String propertyName, int test, java.lang.Object value1, java.lang.Object value2)
           
QueryFragment(java.lang.String label, java.lang.String propertyName)
           
QueryFragment(java.lang.String label, java.lang.String propertyName, int test)
           
QueryFragment(java.lang.String label, java.lang.String propertyName, int test, java.lang.Object value)
           
QueryFragment(java.lang.String label, java.lang.String propertyName, int test, java.lang.Object value1, java.lang.Object value2)
           
 
Method Summary
 void applyCurrentRowValue(java.lang.Object bean)
           
 java.lang.Object getConvertedValue1()
           
 java.lang.Object getConvertedValue2()
           
 QueryConverter getConverter()
           
 int getDataType()
           
 java.lang.Object getDefaultValue1()
           
 java.lang.Object getDefaultValue2()
           
 java.lang.String getLabel()
          Defaults to a human readable form of propertyName as provided by StringUtils.fromCamelCase(propertyName)
 java.lang.String getPropertyName()
           
 int getTest()
           
 javax.faces.model.SelectItem[] getTestSelection()
           
 java.lang.Object getValue1()
           
 java.lang.Object getValue2()
           
 boolean isCurrency()
           
 boolean isDate()
           
 boolean isFloat()
           
 boolean isIgnoreCase()
           
 boolean isInteger()
           
 boolean isList()
           
 boolean isNotIgnore()
           
 boolean isString()
           
 boolean isTwoValues()
           
 void resetValue()
           
 void setConverter(QueryConverter converter)
           
 void setDataType(int dataType)
           
 void setDefaultValue1(java.lang.Object defaultValue)
           
 void setDefaultValue2(java.lang.Object defaultValue2)
           
 void setIgnoreCase(boolean ignoreCase)
           
 void setLabel(java.lang.String label)
           
 void setPropertyName(java.lang.String propertyName)
           
 void setTest(int test)
           
 void setTestSelection(javax.faces.model.SelectItem[] tests)
           
 void setValue1(java.lang.Object value1)
           
 void setValue2(java.lang.Object value2)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryFragment

public QueryFragment()

QueryFragment

public QueryFragment(java.lang.String propertyName)

QueryFragment

public QueryFragment(java.lang.String propertyName,
                     int test)

QueryFragment

public QueryFragment(java.lang.String propertyName,
                     int test,
                     java.lang.Object value)

QueryFragment

public QueryFragment(java.lang.String propertyName,
                     int test,
                     java.lang.Object value1,
                     java.lang.Object value2)

QueryFragment

public QueryFragment(java.lang.String label,
                     java.lang.String propertyName)

QueryFragment

public QueryFragment(java.lang.String label,
                     java.lang.String propertyName,
                     int test)

QueryFragment

public QueryFragment(java.lang.String label,
                     java.lang.String propertyName,
                     int test,
                     java.lang.Object value)

QueryFragment

public QueryFragment(java.lang.String label,
                     java.lang.String propertyName,
                     int test,
                     java.lang.Object value1,
                     java.lang.Object value2)
Method Detail

setLabel

public void setLabel(java.lang.String label)

getLabel

public java.lang.String getLabel()
Defaults to a human readable form of propertyName as provided by StringUtils.fromCamelCase(propertyName)

Returns:
a label

setPropertyName

public void setPropertyName(java.lang.String propertyName)

getPropertyName

public java.lang.String getPropertyName()

setDataType

public void setDataType(int dataType)

getDataType

public int getDataType()

isString

public boolean isString()

isInteger

public boolean isInteger()

isFloat

public boolean isFloat()

isCurrency

public boolean isCurrency()

isDate

public boolean isDate()

isList

public boolean isList()

setTest

public void setTest(int test)

getTest

public int getTest()

isNotIgnore

public boolean isNotIgnore()

setDefaultValue1

public void setDefaultValue1(java.lang.Object defaultValue)

getDefaultValue1

public java.lang.Object getDefaultValue1()

setDefaultValue2

public void setDefaultValue2(java.lang.Object defaultValue2)

getDefaultValue2

public java.lang.Object getDefaultValue2()

setValue1

public void setValue1(java.lang.Object value1)

getValue1

public java.lang.Object getValue1()

getConvertedValue1

public java.lang.Object getConvertedValue1()

setValue2

public void setValue2(java.lang.Object value2)

getValue2

public java.lang.Object getValue2()

getConvertedValue2

public java.lang.Object getConvertedValue2()

setConverter

public void setConverter(QueryConverter converter)

getConverter

public QueryConverter getConverter()

isTwoValues

public boolean isTwoValues()

setTestSelection

public void setTestSelection(javax.faces.model.SelectItem[] tests)

getTestSelection

public javax.faces.model.SelectItem[] getTestSelection()

setIgnoreCase

public void setIgnoreCase(boolean ignoreCase)

isIgnoreCase

public boolean isIgnoreCase()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

resetValue

public void resetValue()

applyCurrentRowValue

public void applyCurrentRowValue(java.lang.Object bean)