com.sleepycat.je
Class DatabaseUtil

java.lang.Object
  extended by com.sleepycat.je.DatabaseUtil

 class DatabaseUtil
extends Object

Utils for use in the db package.


Constructor Summary
DatabaseUtil()
           
 
Method Summary
(package private) static void checkForNullDbt(DatabaseEntry dbt, String name, boolean checkData)
          Throw an exception if the dbt is null or the data field is not set.
(package private) static void checkForNullParam(Object param, String name)
          Throw an exception if the parameter is null.
(package private) static void checkForPartialKey(DatabaseEntry dbt)
          Throw an exception if the key dbt has the partial flag set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseUtil

DatabaseUtil()
Method Detail

checkForNullParam

static void checkForNullParam(Object param,
                              String name)
Throw an exception if the parameter is null.


checkForNullDbt

static void checkForNullDbt(DatabaseEntry dbt,
                            String name,
                            boolean checkData)
Throw an exception if the dbt is null or the data field is not set.


checkForPartialKey

static void checkForPartialKey(DatabaseEntry dbt)
Throw an exception if the key dbt has the partial flag set. This method should be called for all put() operations.



Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.