net.craftforge.essential.example.resources
Class ShipmentResource

java.lang.Object
  extended by net.craftforge.essential.example.resources.PersistentResource<Shipment>
      extended by net.craftforge.essential.example.resources.ShipmentResource
All Implemented Interfaces:
CrudBinding<Shipment>

public class ShipmentResource
extends PersistentResource<Shipment>
implements CrudBinding<Shipment>

Since:
09.08.11
Author:
Christian Bick

Constructor Summary
ShipmentResource()
           
 
Method Summary
 Shipment create(Shipment entity)
           
 void delete(Integer id)
           
 Shipment read(Integer id)
           
 Shipment update(Integer id, Shipment entity)
           
 
Methods inherited from class net.craftforge.essential.example.resources.PersistentResource
createEntityManager, getCrudDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShipmentResource

public ShipmentResource()
Method Detail

create

public Shipment create(Shipment entity)
                throws net.craftforge.essential.controller.ControllerException
Specified by:
create in interface CrudBinding<Shipment>
Throws:
net.craftforge.essential.controller.ControllerException

update

public Shipment update(Integer id,
                       Shipment entity)
                throws net.craftforge.essential.controller.ControllerException
Specified by:
update in interface CrudBinding<Shipment>
Throws:
net.craftforge.essential.controller.ControllerException

read

public Shipment read(Integer id)
              throws net.craftforge.essential.controller.ControllerException
Specified by:
read in interface CrudBinding<Shipment>
Throws:
net.craftforge.essential.controller.ControllerException

delete

public void delete(Integer id)
            throws net.craftforge.essential.controller.ControllerException
Specified by:
delete in interface CrudBinding<Shipment>
Throws:
net.craftforge.essential.controller.ControllerException


Copyright © 2011. All Rights Reserved.