net.craftforge.essential.example.resources
Class CustomerResource

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

public class CustomerResource
extends PersistentResource<Customer>
implements CrudBinding<Customer>

Since:
09.08.11
Author:
Christian Bick

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

CustomerResource

public CustomerResource()
Method Detail

create

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

update

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

read

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

delete

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


Copyright © 2011. All Rights Reserved.