org.glassfish.virtualization.spi
Interface SearchCriteria


public interface SearchCriteria

Created by IntelliJ IDEA. User: dochez Date: 8/2/11 Time: 10:34 PM To change this template use File | Settings | File Templates.


Method Summary
 Collection<TemplateCondition> and()
          Get all the AND conditions of this search criteria
 SearchCriteria and(TemplateCondition... indexes)
          Add AND conditions to this search criteria.
 Collection<TemplateCondition> optionally()
          Get all the OPTIONALLY conditions of this search criteria
 SearchCriteria optionally(TemplateCondition... indexes)
          Add OPTIONALLY conditions to this search criteria.
 Collection<TemplateCondition> or()
          Get all the OR conditions of this search criteria
 SearchCriteria or(TemplateCondition... indexes)
          Add OR conditions to this search criteria.
 

Method Detail

and

SearchCriteria and(TemplateCondition... indexes)
Add AND conditions to this search criteria.

Parameters:
indexes - The AND conditions
Returns:
the Same object with new AND conditions added to it.

and

Collection<TemplateCondition> and()
Get all the AND conditions of this search criteria

Returns:
All the AND conditions in this search criteria.

or

SearchCriteria or(TemplateCondition... indexes)
Add OR conditions to this search criteria.

Parameters:
indexes - The OR conditions
Returns:
the Same object with new OR conditions added to it.

or

Collection<TemplateCondition> or()
Get all the OR conditions of this search criteria

Returns:
All the OR conditions in this search criteria.

optionally

SearchCriteria optionally(TemplateCondition... indexes)
Add OPTIONALLY conditions to this search criteria.

Parameters:
indexes - The OPTIONALLY conditions
Returns:
the Same object with new OPTIONALLY conditions added to it.

optionally

Collection<TemplateCondition> optionally()
Get all the OPTIONALLY conditions of this search criteria

Returns:
All the OPTIONALLY conditions in this search criteria.


Copyright © 2012. All Rights Reserved.