|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
com.coyotegulch.jisp.DatabaseException
com.coyotegulch.jisp.DuplicateKeyException
A ObjectIndex throws a DuplicateKeyException when a key being added to the
index is identical to a key already stored there. Each concrete index class
determines the circumstances under which this exception is thrown. For example,
a BTreeIndex will throw DuplicateKeyException
when a call to the insertKey method finds an existing key that
matches the insertion key; however, the BTreeIndex.writeKey method
does not throw an exception for a duplicate key, instead replacing the record
position associated with the extant key.
ObjectIndex,
BTreeIndex,
Serialized Form| Constructor Summary | |
DuplicateKeyException()
Constructs a new DuplicateKeyException with null as its error message string. |
|
DuplicateKeyException(OrderedObject key)
Constructs a new DuplicateKeyException with message as its error message string. |
|
| Method Summary | |
OrderedObject |
getKey()
Returns the key object that was not found. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DuplicateKeyException()
DuplicateKeyException with null as its error message string.
public DuplicateKeyException(OrderedObject key)
DuplicateKeyException with message as its error message string.
key - the key that could not be found| Method Detail |
public OrderedObject getKey()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||