/** * Example license header for Java files * * http://www.andromda.org/ */ // // Attention: Generated code! Do not modify by hand! // Generated by: SpringServiceBase.vsl in andromda-spring-cartridge. // package org.andromda.test.3; /** *
* Spring Service base class for org.andromda.test.3.RentalService,
* provides access to all services and entities referenced by this service.
*
car's DAO.
*/
public void setCarDao(org.andromda.test.3.CarDao carDao)
{
this.carDao = carDao;
}
/**
* Gets the reference to car's DAO.
*/
protected org.andromda.test.3.CarDao getCarDao()
{
return this.carDao;
}
private org.andromda.test.3.PersonDao personDao;
/**
* Sets the reference to person's DAO.
*/
public void setPersonDao(org.andromda.test.3.PersonDao personDao)
{
this.personDao = personDao;
}
/**
* Gets the reference to person's DAO.
*/
protected org.andromda.test.3.PersonDao getPersonDao()
{
return this.personDao;
}
/**
* @see org.andromda.test.3.RentalService#getAllCars()
*/
public java.util.List getAllCars()
{
try
{
return this.handleGetAllCars();
}
catch (Throwable th)
{
throw new org.andromda.test.3.RentalServiceException(
"Error performing 'org.andromda.test.3.RentalService.getAllCars()' --> " + th,
th);
}
}
/**
* Performs the core logic for {@link #getAllCars()}
*/
protected abstract java.util.List handleGetAllCars()
throws java.lang.Exception;
/**
* @see org.andromda.test.3.RentalService#getCustomersByName(java.lang.String)
*/
public java.util.List getCustomersByName(java.lang.String name)
{
if (name == null || name.trim().length() == 0)
{
throw new IllegalArgumentException(
"org.andromda.test.3.RentalService.getCustomersByName(java.lang.String name) - 'name' can not be null or empty");
}
try
{
return this.handleGetCustomersByName(name);
}
catch (Throwable th)
{
throw new org.andromda.test.3.RentalServiceException(
"Error performing 'org.andromda.test.3.RentalService.getCustomersByName(java.lang.String name)' --> " + th,
th);
}
}
/**
* Performs the core logic for {@link #getCustomersByName(java.lang.String)}
*/
protected abstract java.util.List handleGetCustomersByName(java.lang.String name)
throws java.lang.Exception;
/**
* Gets the current principal if one has been set,
* otherwise returns null.
*
* @return the current principal
*/
protected java.security.Principal getPrincipal()
{
return org.andromda.spring.PrincipalStore.get();
}
}