|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.mdr.persistence; /** * * @author Pavel Buzek * @version */ public interface MultivaluedIndex extends Index { /** Returns a collection view of the values associated in the index with specified key. * Returned collection is live and modifiable. * If there are no values associated with the key empty collection is returned. * @return * @param key * @throws StorageException */ public java.util.Collection getItems (Object key) throws StorageException; /** Like getItems, but if the index contains keys, this returns the objects * corresponding to the key * @return * @param key * @throws StorageException */ public java.util.Collection getObjects (Object key, SinglevaluedIndex repos) throws StorageException; /** If true, the collection of values is contrained to hold * no more than one of any value. * @throws StorageException * @param key * @param repos where to fetch objects from * @return */ public boolean isUnique() throws StorageException; /** Removes the first occurrence of the specified element in the list * of values associated with the specified key. * @return true if this index changed as a result of this call * @param key * @param value */ public boolean remove (Object key, Object value) throws StorageException; /** Returns a collection of {@link java.util.Map.Entry} key-value pairs in the index, * where key matches the queried prefix. * Values are live and modifiable collection, as in case of {@link #getObjects} method. * @param prefix queried prefix * @param repos primary index * @return * @throws StorageException * @throws UnsupportedOperationException thrown if the index does not support quries on * prefixes (due to unsuitable key entry type, etc.) */ public java.util.Collection queryByKeyPrefix (Object prefix, SinglevaluedIndex repos) throws StorageException; } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.