repquoteenvironment.java

来自「嵌入式数据库Berkeley DB-4.5.20源代码」· Java 代码 · 共 42 行

JAVA
42
字号
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997-2006 *	Oracle Corporation.  All rights reserved. * * $Id: RepQuoteEnvironment.java,v 1.3 2006/08/24 14:46:03 bostic Exp $ */package db.repquote;import com.sleepycat.db.*;/* * A simple wrapper class, that facilitates storing some * custom information with an Environment object. * The information is used by the Replication callback (handleEvent). */public class RepQuoteEnvironment extends Environment{    private boolean isMaster;    public RepQuoteEnvironment(final java.io.File host,        EnvironmentConfig config)        throws DatabaseException, java.io.FileNotFoundException    {        super(host, config);        isMaster = false;    }    boolean getIsMaster()    {        return isMaster;    }    public void setIsMaster(boolean isMaster)    {        this.isMaster = isMaster;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?