getRepository

public Repository<? extends Object, ? extends Object> getRepository(Class<? extends EntityState> stateClass)

Obtains the repository of the context by the type of the entity state.

Parameters

stateClass

the state class of the entities managed by the repository

Throws

if there is no repository entities of which have the passed state


public Repository<? extends Object, ? extends Object> getRepository(TypeUrl stateType)

Obtains the repository of the context by the type URL of the entity state..

Parameters

stateType

the state type URL of the entities managed by the repository

Throws

if there is no such repository