|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.service.spring.EntityServiceImpl<Location,Long>
org.openwms.common.service.spring.LocationServiceImpl
@Transactional @Service public class LocationServiceImpl
A LocationServiceImpl.
EntityServiceImpl
Field Summary |
---|
Fields inherited from class org.openwms.core.service.spring.EntityServiceImpl |
---|
ctx |
Constructor Summary | |
---|---|
LocationServiceImpl()
|
Method Summary | |
---|---|
void |
createLocationType(LocationType locationType)
Create a new LocationType . |
void |
deleteLocationTypes(List<LocationType> locationTypes)
Delete already persisted LocationType instances. |
List<Location> |
getAllLocations()
Return a list of all Location s not sorted and not filtered in
natural order. |
List<LocationType> |
getAllLocationTypes()
Return a list of all LocationType s not sorted and not filtered in
natural order. |
Location |
removeMessages(Long id,
List<Message> messages)
Removes a list of Message s from a Location. |
LocationType |
saveLocationType(LocationType locationType)
Saves a LocationType . |
Methods inherited from class org.openwms.core.service.spring.EntityServiceImpl |
---|
add, findAll, remove, save, setApplicationContext, setDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openwms.core.service.EntityService |
---|
add, findAll, remove, save |
Constructor Detail |
---|
public LocationServiceImpl()
Method Detail |
---|
@Transactional(readOnly=false) public List<Location> getAllLocations()
Location
s not sorted and not filtered in
natural order.
getAllLocations
in interface LocationService<Location>
Location
s as a listpublic Location removeMessages(Long id, List<Message> messages)
LocationService
Message
s from a Location.
removeMessages
in interface LocationService<Location>
id
- The technical key of the Locationmessages
- The messages to be removed
LocationService.removeMessages(java.lang.Long,
java.util.List)
@Transactional(readOnly=true) public List<LocationType> getAllLocationTypes()
LocationType
s not sorted and not filtered in
natural order.
getAllLocationTypes
in interface LocationService<Location>
LocationType
s as a listpublic void createLocationType(LocationType locationType)
LocationType
.
If the locationType
is a transient one, it will be persisted
otherwise saved.
createLocationType
in interface LocationService<Location>
locationType
- The type to be createdpublic void deleteLocationTypes(List<LocationType> locationTypes)
LocationType
instances.
The implementation uses the id to find the LocationType
to be
removed and will removed the type when found.
deleteLocationTypes
in interface LocationService<Location>
locationTypes
- A list of all instances to be deleted.public LocationType saveLocationType(LocationType locationType)
LocationType
.
saveLocationType
in interface LocationService<Location>
locationType
- The type to save
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |