com.sleepycat.je.utilint
Class DatabaseUtil

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

public class DatabaseUtil
extends java.lang.Object

Utils for use in the db package.


Constructor Summary
DatabaseUtil()
           
 
Method Summary
static void checkForNullDbt(DatabaseEntry dbt, java.lang.String name, boolean checkData)
          Throw an exception if the dbt is null or the data field is not set.
static void checkForNullParam(java.lang.Object param, java.lang.String name)
          Throw an exception if the parameter is null.
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

public DatabaseUtil()
Method Detail

checkForNullParam

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


checkForNullDbt

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


checkForPartialKey

public 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.