to.etc.domui.component.meta.impl
Class SearchPropertyMetaModelImpl

java.lang.Object
  extended by to.etc.domui.component.meta.impl.SearchPropertyMetaModelImpl
All Implemented Interfaces:
SearchPropertyMetaModel

public class SearchPropertyMetaModelImpl
extends java.lang.Object
implements SearchPropertyMetaModel

Represents the metadata for a field that can be searched on.

Author:
Frits Jalvingh Created on Jul 31, 2009

Field Summary
 
Fields inherited from interface to.etc.domui.component.meta.SearchPropertyMetaModel
BY_ORDER
 
Constructor Summary
SearchPropertyMetaModelImpl(ClassMetaModel cmm)
           
 
Method Summary
 java.lang.String getLookupHint()
          Returns the text to use as the control label, if defined in the metadata.
 java.lang.String getLookupHintKey()
           
 java.lang.String getLookupLabel()
          Returns the text to use as the control label, if defined in the metadata.
 java.lang.String getLookupLabelKey()
           
 int getMinLength()
          To prevent searching over the entire database you can specify a minimum number of characters that must be present before the search is allowed on this field.
 int getOrder()
          The order of this search item in the total list of items.
 java.lang.String getPropertyName()
           
 java.util.List<PropertyMetaModel<?>> getPropertyPath()
           
 boolean isIgnoreCase()
          When T (default) the search is done in a case-independent way provided we are looking for some string value.
 void setIgnoreCase(boolean ignoreCase)
           
 void setLookupHintKey(java.lang.String lookupHintKey)
           
 void setLookupLabelKey(java.lang.String lookupLabelKey)
           
 void setMinLength(int minLength)
           
 void setOrder(int order)
           
 void setPropertyName(java.lang.String propertyName)
           
 void setPropertyPath(java.util.List<PropertyMetaModel<?>> propertyPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchPropertyMetaModelImpl

public SearchPropertyMetaModelImpl(ClassMetaModel cmm)
Method Detail

getPropertyPath

public java.util.List<PropertyMetaModel<?>> getPropertyPath()
Specified by:
getPropertyPath in interface SearchPropertyMetaModel

setPropertyPath

public void setPropertyPath(java.util.List<PropertyMetaModel<?>> propertyPath)

isIgnoreCase

public boolean isIgnoreCase()
Description copied from interface: SearchPropertyMetaModel
When T (default) the search is done in a case-independent way provided we are looking for some string value.

Specified by:
isIgnoreCase in interface SearchPropertyMetaModel
Returns:
See Also:
SearchPropertyMetaModel.isIgnoreCase()

setIgnoreCase

public void setIgnoreCase(boolean ignoreCase)

getOrder

public int getOrder()
Description copied from interface: SearchPropertyMetaModel
The order of this search item in the total list of items. This is only used to set the display order of the items; they will be ordered by ascending [Order;Name].

Specified by:
getOrder in interface SearchPropertyMetaModel
Returns:
See Also:
SearchPropertyMetaModel.getOrder()

setOrder

public void setOrder(int order)

getMinLength

public int getMinLength()
Description copied from interface: SearchPropertyMetaModel
To prevent searching over the entire database you can specify a minimum number of characters that must be present before the search is allowed on this field. This would prevent huge searches when only a single letter is entered.

Specified by:
getMinLength in interface SearchPropertyMetaModel
Returns:
See Also:
SearchPropertyMetaModel.getMinLength()

setMinLength

public void setMinLength(int minLength)

getPropertyName

public java.lang.String getPropertyName()
Specified by:
getPropertyName in interface SearchPropertyMetaModel

setPropertyName

public void setPropertyName(java.lang.String propertyName)

getLookupLabelKey

public java.lang.String getLookupLabelKey()

setLookupLabelKey

public void setLookupLabelKey(java.lang.String lookupLabelKey)

getLookupLabel

public java.lang.String getLookupLabel()
Description copied from interface: SearchPropertyMetaModel
Returns the text to use as the control label, if defined in the metadata.

Specified by:
getLookupLabel in interface SearchPropertyMetaModel
Returns:

getLookupHintKey

public java.lang.String getLookupHintKey()

setLookupHintKey

public void setLookupHintKey(java.lang.String lookupHintKey)

getLookupHint

public java.lang.String getLookupHint()
Description copied from interface: SearchPropertyMetaModel
Returns the text to use as the control label, if defined in the metadata.

Specified by:
getLookupHint in interface SearchPropertyMetaModel
Returns: