Package org.mule.api.store

Examples of org.mule.api.store.ObjectDoesNotExistException


    public T retrieve(Serializable key) throws ObjectStoreException
    {
        Object[] row = (Object[]) this.query(this.getSelectQuery(), this.arrayHandler, key);
        if (row == null)
        {
            throw new ObjectDoesNotExistException(CoreMessages.objectNotFound(key));
        }
        else
        {
            return (T) row[1];
        }
View Full Code Here


        }

        if (contains(key) == false)
        {
            String message = "Key does not exist: " + key;
            throw new ObjectDoesNotExistException(CoreMessages.createStaticMessage(message));
        }

        return doRetrieve(key);
    }
View Full Code Here

            throw new ObjectStoreException(CoreMessages.objectIsNull("key"));
        }

        if (contains(key) == false)
        {
            throw new ObjectDoesNotExistException();
        }

        return doRemove(key);
    }
View Full Code Here

                throw new ObjectStoreException(message);
            }
        }
        else
        {
            throw new ObjectDoesNotExistException();
        }
    }
View Full Code Here

                StoredObject object = (StoredObject) entry.getValue();
                return (T)object.getItem();
            }
        }
       
        throw new ObjectDoesNotExistException(CoreMessages.objectNotFound(key));
    }
View Full Code Here

                StoredObject removedObject = (StoredObject) store.remove(entry.getKey());
                return (T)removedObject.getItem();
            }
        }
       
        throw new ObjectDoesNotExistException(CoreMessages.objectNotFound(key));
    }
View Full Code Here

            public Serializable answer(InvocationOnMock invocation) throws Throwable
            {
                Serializable value = values.get(invocation.getArguments()[0]);
                if (value == null)
                {
                    throw new ObjectDoesNotExistException();
                }

                return value;
            }
        });
View Full Code Here

                StoredObject<T> object = (StoredObject<T>) entry.getValue();
                return object.getItem();
            }
        }

        throw new ObjectDoesNotExistException(CoreMessages.objectNotFound(key));
    }
View Full Code Here

                StoredObject<T> removedObject = store.remove(entry.getKey());
                return removedObject.getItem();
            }
        }

        throw new ObjectDoesNotExistException(CoreMessages.objectNotFound(key));
    }
View Full Code Here

        assureLoaded();

        if (!realKeyToUUIDIndex.containsKey(key))
        {
            String message = "Key does not exist: " + key;
            throw new ObjectDoesNotExistException(CoreMessages.createStaticMessage(message));
        }
        String filename = (String) realKeyToUUIDIndex.get(key);
        File file = getValueFile(filename);
        return deserialize(file).getValue();
    }
View Full Code Here

TOP

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

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.