Package org.mule.api.store

Examples of org.mule.api.store.ObjectAlreadyExistsException


    @Override
    public void store(Serializable key, T value) throws ObjectStoreException
    {
        if (store.containsKey(key))
        {
            throw new ObjectAlreadyExistsException(new Exception());
        }
        store.put(key, value);
    }
View Full Code Here


    @Override
    public T remove(Serializable key) throws ObjectStoreException
    {
        if (!store.containsKey(key))
        {
            throw new ObjectAlreadyExistsException(new Exception());
        }
        return store.remove(key);
    }
View Full Code Here

        {
            this.update(this.getInsertQuery(), key, value);
        }
        catch (ObjectStoreException e)
        {
            throw new ObjectAlreadyExistsException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.mule.api.store.ObjectAlreadyExistsException

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.