org.zeroexchange.resource.write
Class DAOResourceWriter
java.lang.Object
org.zeroexchange.resource.write.DAOResourceWriter
- All Implemented Interfaces:
- ResourceWriter
@Transactional
public class DAOResourceWriter
- extends Object
- implements ResourceWriter
DAO ResourceWriter implementation.
- Author:
- black
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DAOResourceWriter
public DAOResourceWriter()
save
public <T extends Resource> T save(T resource)
- Persists the resource.
- Specified by:
save
in interface ResourceWriter
addSupply
public Resource addSupply(Resource resource,
Supply supply)
-
- Specified by:
addSupply
in interface ResourceWriter
addNeed
public Resource addNeed(Resource resource,
Need need)
-
- Specified by:
addNeed
in interface ResourceWriter
Copyright © 2013. All Rights Reserved.