Examples of ObjectDoesNotExistException


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

Examples of org.mule.api.store.ObjectDoesNotExistException

        }

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

        return doRetrieve(key);
    }
View Full Code Here

Examples of org.mule.api.store.ObjectDoesNotExistException

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

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

        return doRemove(key);
    }
View Full Code Here

Examples of org.mule.api.store.ObjectDoesNotExistException

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

Examples of org.mule.api.store.ObjectDoesNotExistException

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

Examples of org.mule.api.store.ObjectDoesNotExistException

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

Examples of org.mule.api.store.ObjectDoesNotExistException

            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

Examples of org.mule.api.store.ObjectDoesNotExistException

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

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

Examples of org.mule.api.store.ObjectDoesNotExistException

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

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

Examples of org.mule.api.store.ObjectDoesNotExistException

        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
Copyright © 2018 www.massapi.com. 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.