public class VersionResolver extends Object implements NameResolver<Version>
| Constructor and Description |
|---|
VersionResolver(VersionManager versionManager) |
| Modifier and Type | Method and Description |
|---|---|
Version |
get(Long id)
Get by id.
|
Collection<Version> |
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.
|
List<String> |
getIdsFromNameWildcard(String nameWildcard) |
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 VersionResolver(VersionManager versionManager)
public List<String> getIdsFromName(String name)
NameResolvergetIdsFromName in interface NameResolver<Version>name - the name of the T.public boolean nameExists(String name)
NameResolvernameExists in interface NameResolver<Version>name - the addressable name.public boolean idExists(Long id)
NameResolveridExists in interface NameResolver<Version>id - the primary key.public Version get(Long id)
NameResolverget in interface NameResolver<Version>id - the id.public Collection<Version> getAll()
NameResolvergetAll in interface NameResolver<Version>Copyright © 2002-2022 Atlassian. All Rights Reserved.