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;
 
class SecondaryTrigger implements DatabaseTrigger {
    private SecondaryDatabase secDb;
        this. = secDb;
    }
    final SecondaryDatabase getDb() {
        return ;
    }
    public void triggerAdded(Database db) {
    }
    public void triggerRemoved(Database db) {
        .clearPrimary();
    }
    public void databaseUpdated(Database db,
                                Locker locker,
                                DatabaseEntry priKey,
                                DatabaseEntry oldData,
                                DatabaseEntry newData)
        throws DatabaseException {
        .updateSecondary(lockernullpriKeyoldDatanewData);
    }
New to GrepCode? Check out our FAQ X