org.apache.jdo.impl.fostore
Class DumpOption

java.lang.Object
  extended byorg.apache.jdo.impl.fostore.DumpOption

class DumpOption
extends java.lang.Object

Diagnostic code to identify a dump request to the store. Currently, there are the following options supported:

Author:
Markus Fuchs

Field Summary
(package private) static DumpOption CLASS_INSTANCES
          List all instances of a particular class.
(package private) static DumpOption CLASS_METADATA
          Provide metadata information about a particular class.
(package private) static DumpOption CLASS_SUBCLASSES
          List all subclasses of a particular class.
(package private) static DumpOption DBINFO
          Provide information about all classes in the store.
private static I18NHelper msg
          I18N support.
private  java.lang.String name
          String name of this option.
private static java.util.HashMap options
          Map from name to DumpOption.
private  int value
          Value of this DumpOption.
 
Constructor Summary
private DumpOption(int value, java.lang.String name)
          Create a DumpOption with the given value and name.
 
Method Summary
 boolean equals(java.lang.Object o)
           
(package private) static DumpOption forName(java.lang.String name)
          Provide a DumpOption given a name.
 int hashCode()
           
(package private) static DumpOption read(java.io.DataInput in)
          Return the instance of a DumpOption that corresponds to the value read from the DataInput.
 java.lang.String toString()
           
(package private)  void write(java.io.DataOutput out)
          Write this DumpOption's value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private final int value
Value of this DumpOption.


name

private final java.lang.String name
String name of this option.


options

private static final java.util.HashMap options
Map from name to DumpOption.


DBINFO

static final DumpOption DBINFO
Provide information about all classes in the store.


CLASS_METADATA

static final DumpOption CLASS_METADATA
Provide metadata information about a particular class.


CLASS_INSTANCES

static final DumpOption CLASS_INSTANCES
List all instances of a particular class.


CLASS_SUBCLASSES

static final DumpOption CLASS_SUBCLASSES
List all subclasses of a particular class.


msg

private static final I18NHelper msg
I18N support.

Constructor Detail

DumpOption

private DumpOption(int value,
                   java.lang.String name)
Create a DumpOption with the given value and name.

Method Detail

forName

static DumpOption forName(java.lang.String name)
Provide a DumpOption given a name.


write

void write(java.io.DataOutput out)
     throws java.io.IOException
Write this DumpOption's value.

Throws:
java.io.IOException

read

static DumpOption read(java.io.DataInput in)
                throws java.io.IOException
Return the instance of a DumpOption that corresponds to the value read from the DataInput.

Throws:
java.io.IOException - if there is an IOException reading the value. or if the value read does not correspond to a DumpOption.

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()