org.zeroexchange.resource.write
Class DAOResourceWriter

java.lang.Object
  extended by org.zeroexchange.resource.write.DAOResourceWriter
All Implemented Interfaces:
ResourceWriter

@Transactional
public class DAOResourceWriter
extends Object
implements ResourceWriter

DAO ResourceWriter implementation.

Author:
black

Constructor Summary
DAOResourceWriter()
           
 
Method Summary
 Resource addNeed(Resource resource, Need need)
          
 Resource addSupply(Resource resource, Supply supply)
          
<T extends Resource>
T
save(T resource)
          Persists the resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAOResourceWriter

public DAOResourceWriter()
Method Detail

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.