com.sleepycat.je
Class DuplicateDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sleepycat.je.DatabaseException
com.sleepycat.je.OperationFailureException
com.sleepycat.je.DuplicateDataException
- All Implemented Interfaces:
- Serializable
public class DuplicateDataException
- extends OperationFailureException
Thrown by Cursor.putCurrent
if the old and new
data are not equal according to the configured duplicate comparator or
default comparator.
If the old and new data are unequal according to the comparator, this
would change the sort order of the record, which would change the cursor
position, and this is not allowed. To change the sort order of a record,
delete it and then re-insert it.
The Transaction
handle is not invalidated as a result of
this exception.
- Since:
- 4.0
- See Also:
- Serialized Form
DuplicateDataException
public DuplicateDataException(String message)
- For internal use only.
wrapSelf
public OperationFailureException wrapSelf(String msg)
- For internal use only.
- Specified by:
wrapSelf
in class OperationFailureException
Copyright (c) 2004-2012 Oracle. All rights reserved.