Logo Search packages:      
Sourcecode: db version File versions

void com::sleepycat::collections::DataCursor::checkWriteAllowed ( boolean  allowSecondary  )  [inline, private]

Throws an exception if write is not allowed or if a join cursor is in use.

Definition at line 879 of file DataCursor.java.

References checkNoJoinCursor(), and com::sleepycat::collections::DataView::isSecondary().

Referenced by delete(), initForPut(), putAfter(), putBefore(), and putCurrent().



        if (!writeAllowed || (!allowSecondary && view.isSecondary())) {
            throw new UnsupportedOperationException
                ("Writing is not allowed");

Generated by  Doxygen 1.6.0   Back to index