public class StatusCategoryResolver extends Object implements NameResolver<StatusCategory>
| Constructor and Description |
|---|
StatusCategoryResolver(StatusCategoryManager statusCategoryManager) |
| Modifier and Type | Method and Description |
|---|---|
io.atlassian.fugue.Option<StatusCategory> |
forId(Long id) |
io.atlassian.fugue.Option<StatusCategory> |
forKey(String key) |
io.atlassian.fugue.Option<StatusCategory> |
forName(String name) |
StatusCategory |
get(Long id)
Get by id.
|
Collection<StatusCategory> |
getAll()
Gets all domain objects of this type in the underlying database.
|
List<String> |
getIdsFromName(String name)
Returns the list of ids of T objects that have the given name.
|
Set<StatusCategory> |
getStatusCategories(Collection<QueryLiteral> queryLiterals) |
io.atlassian.fugue.Option<StatusCategory> |
getStatusCategory(QueryLiteral rawValue) |
boolean |
idExists(Long id)
Returns true if the id would resolve to a domain object.
|
boolean |
nameExists(String name)
Returns true if the name would resolve to a domain object.
|
public StatusCategoryResolver(StatusCategoryManager statusCategoryManager)
public Set<StatusCategory> getStatusCategories(Collection<QueryLiteral> queryLiterals)
public io.atlassian.fugue.Option<StatusCategory> getStatusCategory(QueryLiteral rawValue)
public io.atlassian.fugue.Option<StatusCategory> forId(Long id)
public io.atlassian.fugue.Option<StatusCategory> forKey(String key)
public io.atlassian.fugue.Option<StatusCategory> forName(String name)
public List<String> getIdsFromName(String name)
NameResolvergetIdsFromName in interface NameResolver<StatusCategory>name - the name of the T.public boolean nameExists(String name)
NameResolvernameExists in interface NameResolver<StatusCategory>name - the addressable name.public boolean idExists(Long id)
NameResolveridExists in interface NameResolver<StatusCategory>id - the primary key.public StatusCategory get(Long id)
NameResolverget in interface NameResolver<StatusCategory>id - the id.@Nonnull public Collection<StatusCategory> getAll()
NameResolvergetAll in interface NameResolver<StatusCategory>Copyright © 2002-2023 Atlassian. All Rights Reserved.