to.etc.domui.component.meta
Annotation Type MetaSearch


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface MetaSearch

Marks a property as a search property.

Author:
Frits Jalvingh Created on Jul 14, 2008

Optional Element Summary
 boolean ignoreCase
          Generate a CI query by default.
 int minLength
          This defines the minimal length a user must enter into a search control before it is allowed to search.
 int order
          When set this defines an "order" when multiple search fields are present; the fields with the lowest order value are sorted before the fields with higher values in the lookup form.
 SearchPropertyType searchType
          This defines how search property would be used.
 

order

public abstract int order
When set this defines an "order" when multiple search fields are present; the fields with the lowest order value are sorted before the fields with higher values in the lookup form.

Returns:
Default:
-1

minLength

public abstract int minLength
This defines the minimal length a user must enter into a search control before it is allowed to search. This can be used to prevent searches on 'a%' if that would cause a problematic query.

Returns:
Default:
-1

ignoreCase

public abstract boolean ignoreCase
Generate a CI query by default. Unused?

Returns:
Default:
true

searchType

public abstract SearchPropertyType searchType
This defines how search property would be used. By default set to This is normally used for compound specs only.

Default:
to.etc.domui.component.meta.SearchPropertyType.SEARCH_FIELD