public interface NameResolver<T>
Modifier and Type | Method and Description |
---|---|
T |
get(Long id)
Get by id.
|
Collection<T> |
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.
|
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.
|
List<String> getIdsFromName(String name)
name
- the name of the T.boolean nameExists(String name)
name
- the addressable name.boolean idExists(Long id)
id
- the primary key.T get(Long id)
id
- the id.@Nonnull Collection<T> getAll()
Copyright © 2002-2021 Atlassian. All Rights Reserved.