org.hibernate.beanvalidation.tck.tests.metadata
Class CustomerService

java.lang.Object
  extended by org.hibernate.beanvalidation.tck.tests.metadata.CustomerService
Direct Known Subclasses:
CustomerServiceExtension

public class CustomerService
extends Object

Author:
Gunnar Morling

Nested Class Summary
static interface CustomerService.BasicChecks
           
 class CustomerService.InnerClass
           
static interface CustomerService.MyCrossParameterConstraint
           
static class CustomerService.MyCrossParameterConstraintValidator
           
static interface CustomerService.StrictChecks
           
static interface CustomerService.StrictCustomerServiceChecks
           
static interface CustomerService.ValidCustomerService
           
static class CustomerService.ValidCustomerServiceValidator
           
 
Constructor Summary
CustomerService()
           
CustomerService(Account account)
           
CustomerService(Customer customer)
           
CustomerService(int i, Account account)
           
CustomerService(long id)
           
CustomerService(long id, int i)
           
CustomerService(String pk)
           
CustomerService(String firstName, String lastName)
           
 
Method Summary
 void createCustomer(String firstName, String lastName)
           
 Customer findCustomer(long id)
           
 Customer findCustomer(long id, int i)
           
 Customer getBestCustomer()
           
 void removeCustomer(Customer customer)
           
 int reset()
           
 void shutDown(String pk)
           
 Customer updateAccount(Account account)
           
 Customer updateAccountStrictly(Account account)
           
 void updateCustomer(Customer customer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerService

public CustomerService(@NotNull@Size(min=3)
                       String firstName,
                       @NotNull@Size(min=3)
                       String lastName)

CustomerService

public CustomerService(Customer customer)

CustomerService

public CustomerService(Account account)

CustomerService

public CustomerService(int i,
                       @ConvertGroup.List(value={@ConvertGroup(from=javax.validation.groups.Default.class,to=CustomerService.BasicChecks.class),@ConvertGroup(from=CustomerService.StrictCustomerServiceChecks.class,to=CustomerService.StrictChecks.class)})
                       Account account)

CustomerService

public CustomerService()

CustomerService

public CustomerService(long id)

CustomerService

@ConvertGroup.List(value={@ConvertGroup(from=javax.validation.groups.Default.class,to=CustomerService.BasicChecks.class),@ConvertGroup(from=CustomerService.StrictCustomerServiceChecks.class,to=CustomerService.StrictChecks.class)})
public CustomerService(long id,
                                                                                                                                                                                                                            int i)

CustomerService

public CustomerService(String pk)
Method Detail

createCustomer

public void createCustomer(@NotNull@Size(min=3)
                           String firstName,
                           @NotNull@Size(min=3)
                           String lastName)

removeCustomer

public void removeCustomer(Customer customer)

updateCustomer

public void updateCustomer(Customer customer)

updateAccount

public Customer updateAccount(Account account)

updateAccountStrictly

public Customer updateAccountStrictly(@ConvertGroup.List(value={@ConvertGroup(from=javax.validation.groups.Default.class,to=CustomerService.BasicChecks.class),@ConvertGroup(from=CustomerService.StrictCustomerServiceChecks.class,to=CustomerService.StrictChecks.class)})
                                      Account account)

reset

@Min(value=0L)
public int reset()

findCustomer

public Customer findCustomer(long id)

findCustomer

@ConvertGroup.List(value={@ConvertGroup(from=javax.validation.groups.Default.class,to=CustomerService.BasicChecks.class),@ConvertGroup(from=CustomerService.StrictCustomerServiceChecks.class,to=CustomerService.StrictChecks.class)})
public Customer findCustomer(long id,
                                                                                                                                                                                                                                  int i)

shutDown

public void shutDown(String pk)

getBestCustomer

@NotNull
public Customer getBestCustomer()


Copyright © 2008-2013. All Rights Reserved.