|
||||||||||
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(java.lang.Long id)
Get by id. |
java.util.Collection<T> |
getAll()
Gets all domain objects of this type in the underlying database. |
java.util.List<java.lang.String> |
getIdsFromName(java.lang.String name)
Returns the list of ids of T objects that have the given name. |
boolean |
idExists(java.lang.Long id)
Returns true if the id would resolve to a domain object. |
boolean |
nameExists(java.lang.String name)
Returns true if the name would resolve to a domain object. |
Method Detail |
---|
java.util.List<java.lang.String> getIdsFromName(java.lang.String name)
name
- the name of the T.
boolean nameExists(java.lang.String name)
name
- the addressable name.
boolean idExists(java.lang.Long id)
id
- the primary key.
T get(java.lang.Long id)
id
- the id.
@NotNull java.util.Collection<T> getAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |