Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

JoinConfig.java

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 2002-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: JoinConfig.java,v 12.1 2005/06/16 20:23:01 bostic Exp $
00008  */
00009 
00010 package com.sleepycat.db;
00011 
00012 import com.sleepycat.db.internal.DbConstants;
00013 
00014 public class JoinConfig implements Cloneable {
00015     public static final JoinConfig DEFAULT = new JoinConfig();
00016 
00017     /* package */
00018     static JoinConfig checkNull(JoinConfig config) {
00019         return (config == null) ? DEFAULT : config;
00020     }
00021 
00022     private boolean noSort;
00023 
00024     public JoinConfig() {
00025     }
00026 
00027     public void setNoSort(final boolean noSort) {
00028         this.noSort = noSort;
00029     }
00030 
00031     public boolean getNoSort() {
00032         return noSort;
00033     }
00034 
00035     /* package */
00036     int getFlags() {
00037         return noSort ? DbConstants.DB_JOIN_NOSORT : 0;
00038     }
00039 }

Generated on Sun Dec 25 12:14:33 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2