net.craftforge.essential.example.resources
Class ProductResource

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

public class ProductResource
extends PersistentResource<Product>
implements CrudBinding<Product>

Since:
09.08.11
Author:
Christian Bick

Constructor Summary
ProductResource()
           
 
Method Summary
 Product create(Product entity)
           
 void delete(Integer id)
           
 Product read(Integer id)
           
 Product update(Integer id, Product 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

ProductResource

public ProductResource()
Method Detail

create

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

update

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

read

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

delete

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


Copyright © 2011. All Rights Reserved.