Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.jdevimpl.audit.util
Class Cache

java.lang.Object
  extended by oracle.jdevimpl.audit.util.Cache

public class Cache
extends java.lang.Object

A convenience wrapper (pun intended, see below) for the DTCache.


Nested Class Summary
static class Cache.Wrapper
          Wrapper for arbitrary objects stored in the cache.
 
Field Summary
static java.lang.String PREFIX
          The prefix for Audit keys in the design-time cache.
 
Constructor Summary
Cache()
           
 
Method Summary
static java.lang.Object get(java.lang.String key)
          Gets a value from the design-time cache, or null if none.
static boolean get(java.lang.String key, boolean defaultValue)
          Gets a boolean value from the design-time cache, or a default value if none.
static float get(java.lang.String key, float defaultValue)
          Gets a float value from the design-time cache, or a default value if none.
static int get(java.lang.String key, int defaultValue)
          Gets an int value from the design-time cache, or a default value if none.
static java.lang.Object get(java.lang.String key, java.lang.Object defaultValue)
          Gets a value from the design-time cache, or a default value if none.
static void put(java.lang.String key, boolean value)
          Puts a boolean value into the design-time cache.
static void put(java.lang.String key, java.lang.Boolean value)
          Puts a Boolean value into the design-time cache.
static void put(java.lang.String key, float value)
          Puts a float value into the design-time cache.
static void put(java.lang.String key, java.lang.Float value)
          Puts a Float value into the design-time cache.
static void put(java.lang.String key, int value)
          Puts an int value into the cache.
static void put(java.lang.String key, java.lang.Integer value)
          Puts an Integer value into the cache.
static void put(java.lang.String key, java.lang.Object value)
          Puts a value into the design-time cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final java.lang.String PREFIX
The prefix for Audit keys in the design-time cache.

See Also:
Constant Field Values
Constructor Detail

Cache

public Cache()
Method Detail

put

public static void put(java.lang.String key,
                       java.lang.Object value)
Puts a value into the design-time cache.

Parameters:
key - The Audit-specific name of the value.
value - The Object2Dom compatible value.

put

public static void put(java.lang.String key,
                       boolean value)
Puts a boolean value into the design-time cache.

Parameters:
key - The Audit-specific name of the value.
value - The boolean value.

put

public static void put(java.lang.String key,
                       java.lang.Boolean value)
Puts a Boolean value into the design-time cache.

Parameters:
key - The Audit-specific name of the value.
value - The boolean value.

put

public static void put(java.lang.String key,
                       int value)
Puts an int value into the cache.

Parameters:
key - The Audit-specific name of the value.
value - The int value.

put

public static void put(java.lang.String key,
                       java.lang.Integer value)
Puts an Integer value into the cache.

Parameters:
key - The Audit-specific name of the value.
value - The int value.

put

public static void put(java.lang.String key,
                       float value)
Puts a float value into the design-time cache.

Parameters:
key - The Audit-specific name of the value.
value - The float value.

put

public static void put(java.lang.String key,
                       java.lang.Float value)
Puts a Float value into the design-time cache.

Parameters:
key - The Audit-specific name of the value.
value - The float value.

get

public static java.lang.Object get(java.lang.String key)
Gets a value from the design-time cache, or null if none.

Parameters:
key - The Audit-specific name of the value.

get

public static java.lang.Object get(java.lang.String key,
                                   java.lang.Object defaultValue)
Gets a value from the design-time cache, or a default value if none.

Parameters:
key - The Audit-specific name of the value.

get

public static boolean get(java.lang.String key,
                          boolean defaultValue)
Gets a boolean value from the design-time cache, or a default value if none.

Parameters:
key - The Audit-specific name of the value.
defaultValue - The default boolean value to return
Throws:
java.lang.ClassCastException - if the value is not null and not Boolean.

get

public static int get(java.lang.String key,
                      int defaultValue)
Gets an int value from the design-time cache, or a default value if none.

Parameters:
key - The Audit-specific name of the value.
defaultValue - The default int value to return
Throws:
java.lang.ClassCastException - if the value is not null and not Number.

get

public static float get(java.lang.String key,
                        float defaultValue)
Gets a float value from the design-time cache, or a default value if none.

Parameters:
key - The Audit-specific name of the value.
defaultValue - The default float value to return
Throws:
java.lang.ClassCastException - if the value is not null and not Number.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.