@Component public class CustomerService extends org.apache.click.extras.cayenne.CayenneTemplate
Customer
Constructor and Description |
---|
CustomerService() |
commitChanges, createAndRegisterNewObject, deleteObject, findObject, getConnection, getDataContext, getObjectForPK, getObjectForPK, getPkName, newObject, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, performQuery, registerNewObject, rollbackChanges, toMap
public int getNumberOfCustomers()
public List<Customer> getCustomersSortedBy(String property, boolean ascending, boolean useSharedCache)
public void saveCustomer(Customer customer)
public void deleteCustomer(Integer id)
public List<Customer> getCustomersForPage(int offset, int pageSize, String sortColumn, boolean ascending)