Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * See the file LICENSE for redistribution information.
  *
  * Copyright (c) 2002, 2013 Oracle and/or its affiliates.  All rights reserved.
  *
  */
 
 package com.sleepycat.je;
 
Base class for exceptions thrown when a read or write operation fails because of a secondary constraint or integrity problem. Provides accessors for getting further information about the database and keys involved in the failure. See subclasses for more information.

The Transaction handle is invalidated as a result of this exception.

Since:
4.0
See also:
Special considerations for using Secondary Databases with and without Transactions
public abstract class SecondaryReferenceException
    extends OperationFailureException {
    private static final long serialVersionUID = 1;
    private final String secDbName;
    private final DatabaseEntry secKey;
    private final DatabaseEntry priKey;

    
For internal use only.

Hidden:
    public SecondaryReferenceException(Locker locker,
                                       String message,
                                       String secDbName,
                                       DatabaseEntry secKey,
                                       DatabaseEntry priKey) {
        super(lockertrue /*abortOnly*/messagenull /*cause*/);
        this. = secDbName;
        this. = secKey;
        this. = priKey;
    }

    
For internal use only.

Hidden:
                                SecondaryReferenceException cause) {
        super(messagecause);
        this. = cause.secDbName;
        this. = cause.secKey;
        this. = cause.priKey;
    }

    
Returns the name of the secondary database being access during the failure.
    public String getSecondaryDatabaseName() {
        return ;
    }

    
Returns the secondary key being access during the failure.
    public DatabaseEntry getSecondaryKey() {
        return ;
    }

    
Returns the primary key being access during the failure.
    public DatabaseEntry getPrimaryKey() {
        return ;
    }
New to GrepCode? Check out our FAQ X