|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NameResolver<T>
Looks up domain objects from the database.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
@NotNull Collection<T> getAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||