net.craftforge.essential.example.resources
Class CustomerResource
java.lang.Object
net.craftforge.essential.example.resources.PersistentResource<Customer>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerResource
public CustomerResource()
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.