|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.service.spring.ModuleServiceImpl
@Transactional @Service(value="moduleService") public class ModuleServiceImpl
A ModuleServiceImpl is a Spring powered transactional service using a repository to execute simple CRUD operations. This implementation can be autowired with the name "moduleService".
ModuleDao
Field Summary | |
---|---|
static String |
COMPONENT_NAME
Springs component name. |
Constructor Summary | |
---|---|
ModuleServiceImpl()
|
Method Summary | |
---|---|
List<Module> |
findAll()
Return a list of all existing Module s. |
void |
remove(Module module)
Remove an already existing Module . |
Module |
save(Module module)
Save a Module . |
void |
saveStartupOrder(List<Module> modules)
Save the startupOrder for a list of Module s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMPONENT_NAME
Constructor Detail |
---|
public ModuleServiceImpl()
Method Detail |
---|
@Transactional(readOnly=true) public List<Module> findAll()
Module
s.
Marked as readOnly
transactional method.
findAll
in interface ModuleService
Module
s or an empty list when no Module
s existpublic void saveStartupOrder(List<Module> modules)
startupOrder
for a list of Module
s. The
startupOrder
of all Module
s in the list
modules
has to be calculated before.
It is expected that the list of Module
s is already ordered by
their startup order. Each Module
's startupOrder
is
synchronized with the persistence storage.
saveStartupOrder
in interface ModuleService
modules
- The list of Module
s to be saved
IllegalArgumentException
- when modules is null
public void remove(Module module)
Module
.
If the Module
entity is a transient instance the method returns
with no further action.
remove
in interface ModuleService
module
- Module
to be removed
IllegalArgumentException
- when module
is null
ServiceRuntimeException
- when the Module
to remove was not foundpublic Module save(Module module)
Module
.
Additionally the startupOrder
is re-calculated for a new
Module
.
save
in interface ModuleService
module
- Module
instance to be saved
Module
instance
IllegalArgumentException
- when module
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |