com.atlassian.jira.entity.property
Interface EntityPropertyQuery.ExecutableQuery

All Superinterfaces:
EntityPropertyQuery<EntityPropertyQuery.ExecutableQuery>
Enclosing interface:
EntityPropertyQuery<T extends EntityPropertyQuery<T>>

public static interface EntityPropertyQuery.ExecutableQuery
extends EntityPropertyQuery<EntityPropertyQuery.ExecutableQuery>

An EntityPropertyQuery for which sufficient contraints have been provided to make the query valid.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.entity.property.EntityPropertyQuery
EntityPropertyQuery.ExecutableQuery
 
Method Summary
 long count()
          Counts the number of properties that match the given query.
 void delete()
          Deletes all the properties that match this query.
 List<EntityProperty> find()
          Produces a list of entity properties that satisfy this query.
 void find(Visitor<EntityProperty> visitor)
          Produces a call to the provided visitor for each entity property that satisfies this query.
 List<String> findDistinctKeys()
          Produces a list of entity property keys that satisfy this query.
 List<String> findKeys()
          Produces a list of entity property keys that satisfy this query.
 
Methods inherited from interface com.atlassian.jira.entity.property.EntityPropertyQuery
entityId, entityName, key, keyPrefix, maxResults, offset
 

Method Detail

findDistinctKeys

@Nonnull
List<String> findDistinctKeys()
Produces a list of entity property keys that satisfy this query.

Returns:
the list of distinct matching keys, sorted in ascending alphabetical order
See Also:
find(), find(Visitor)

findKeys

@Nonnull
List<String> findKeys()
Produces a list of entity property keys that satisfy this query.

Returns:
the list of matching keys, sorted in ascending alphabetical order.
See Also:
find(), find(Visitor)

find

@Nonnull
List<EntityProperty> find()
Produces a list of entity properties that satisfy this query.

Returns:
a list containing all of the results that were found, sorted by the key; never null
See Also:
find(Visitor), findDistinctKeys()

find

void find(@Nonnull
          Visitor<EntityProperty> visitor)
Produces a call to the provided visitor for each entity property that satisfies this query.

Parameters:
visitor - the visitor to visit for each matching entity property
See Also:
find(), findDistinctKeys()

count

long count()
Counts the number of properties that match the given query.

Returns:
the count of matching entity properties

delete

void delete()
Deletes all the properties that match this query.



Copyright © 2002-2014 Atlassian. All Rights Reserved.