Package com.sun.ebank.ejb.exception

Examples of com.sun.ebank.ejb.exception.InvalidParameterException


        InvalidParameterException {

        Debug.print("AccountControllerBean setType");

        if (type == null)
            throw new InvalidParameterException("null type");

        if (accountId == null)
            throw new InvalidParameterException("null accountId" );

        DomainUtil.checkAccountType(type);
        if (accountExists(accountId) == false)
            throw new AccountNotFoundException(accountId);
View Full Code Here


       // removes customer from db

        Debug.print("CustomerControllerBean removeCustomer");

        if (customerId == null)
            throw new InvalidParameterException("null customerId" );

        if (customerExists(customerId) == false)
            throw new CustomerNotFoundException(customerId);

        try {
View Full Code Here

        Debug.print("CustomerControllerBean getCustomersOfAccount");

        Collection customerIds;

        if (accountId == null)
            throw new InvalidParameterException("null accountId");

        try {
            customerIds = customerHome.findByAccountId(accountId);
            if (customerIds.isEmpty())
                throw new CustomerNotFoundException();
View Full Code Here

        throws AccountNotFoundException,InvalidParameterException {

        Debug.print("AccountControllerBean setDescription");

        if (description == null)
            throw new InvalidParameterException("null description");

        if (accountId == null)
            throw new InvalidParameterException("null accountId" );

        if (accountExists(accountId) == false)
            throw new AccountNotFoundException(accountId);

    } // setDescription
View Full Code Here

        Debug.print("CustomerControllerBean getDetails");

        CustomerDetails result;

        if (customerId == null)
            throw new InvalidParameterException("null customerId" );

        if (customerExists(customerId) == false)
            throw new CustomerNotFoundException(customerId);

        result = customer.getDetails();
View Full Code Here

        throws AccountNotFoundException, InvalidParameterException {

        Debug.print("AccountControllerBean setBalance");

        if (accountId == null)
            throw new InvalidParameterException("null accountId" );

        if (accountExists(accountId) == false)
            throw new AccountNotFoundException(accountId);

        account.setBalance(balance);
View Full Code Here

        Collection customerIds;
        ArrayList customerList = new ArrayList();

        if (lastName == null)
            throw new InvalidParameterException("null lastName");

        try {
            customerIds = customerHome.findByLastName(lastName);
        } catch (Exception ex) {
             return customerList;
View Full Code Here

        InvalidParameterException {

        Debug.print("AccountControllerBean setCreditLine");

        if (accountId == null)
            throw new InvalidParameterException("null accountId" );

        if (accountExists(accountId) == false)
            throw new AccountNotFoundException(accountId);

        account.setCreditLine(creditLine);
View Full Code Here

        throws CustomerNotFoundException, InvalidParameterException {

        Debug.print("CustomerControllerBean setName");

        if (lastName == null)
            throw new InvalidParameterException("null lastName");
        if (firstName == null)
            throw new InvalidParameterException("null firstName");

        if (customerId == null)
            throw new InvalidParameterException("null customerId" );

        if (customerExists(customerId) == false)
            throw new CustomerNotFoundException(customerId);

        try {
View Full Code Here

        throws AccountNotFoundException, InvalidParameterException {

        Debug.print("AccountControllerBean setBeginBalance");

        if (accountId == null)
            throw new InvalidParameterException("null accountId" );

        if (accountExists(accountId) == false)
            throw new AccountNotFoundException(accountId);

        account.setBeginBalance(beginBalance);
View Full Code Here

TOP

Related Classes of com.sun.ebank.ejb.exception.InvalidParameterException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.