db4o 7.4

com.db4o.config
Class ConfigScope

java.lang.Object
  extended by com.db4o.config.ConfigScope
All Implemented Interfaces:
java.io.Serializable

public final class ConfigScope
extends java.lang.Object
implements java.io.Serializable

Defines a scope of applicability of a config setting.

Some of the configuration settings can be either:

- enabled globally;
- enabled individually for a specified class;
- disabled.

See Also:
Configuration.generateUUIDs(ConfigScope), Configuration.generateVersionNumbers(ConfigScope), Serialized Form

Field Summary
static ConfigScope DISABLED
          Marks a configuration feature as globally disabled.
static int DISABLED_ID
           
static ConfigScope GLOBALLY
          Marks a configuration feature as globally enabled.
static int GLOBALLY_ID
           
static ConfigScope INDIVIDUALLY
          Marks a configuration feature as individually configurable.
static int INDIVIDUALLY_ID
           
 
Method Summary
 boolean applyConfig(boolean defaultValue)
          Checks if the current configuration scope is globally enabled or disabled.
 boolean equals(java.lang.Object obj)
           
static ConfigScope forID(int id)
          Deprecated.  
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DISABLED_ID

public static final int DISABLED_ID
See Also:
Constant Field Values

INDIVIDUALLY_ID

public static final int INDIVIDUALLY_ID
See Also:
Constant Field Values

GLOBALLY_ID

public static final int GLOBALLY_ID
See Also:
Constant Field Values

DISABLED

public static final ConfigScope DISABLED
Marks a configuration feature as globally disabled.


INDIVIDUALLY

public static final ConfigScope INDIVIDUALLY
Marks a configuration feature as individually configurable.


GLOBALLY

public static final ConfigScope GLOBALLY
Marks a configuration feature as globally enabled.

Method Detail

applyConfig

public boolean applyConfig(boolean defaultValue)
Checks if the current configuration scope is globally enabled or disabled.

Parameters:
defaultValue - - default result
Returns:
false if disabled, true if globally enabled, default value otherwise

forID

public static ConfigScope forID(int id)
Deprecated. 


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.