Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

oracle.apps.fnd.applcore.dt.patterns.utils
Class JSFUniqueIdGenerator

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.patterns.utils.JSFUniqueIdGenerator

public final class JSFUniqueIdGenerator
extends java.lang.Object

This class decorates the ADFDesignTimeContext.generateUniqueIdForView(baseId) method for the case where we are generating complex trees containing similar elements that require unique ids. The ADF method does not recognise the in-memory (already generated but not yet written to target) ids, and will re-generate them.

Author:
David Groves <david.groves@oracle.com>

Method Summary
static java.lang.String generateUniqueIdForView(oracle.adfdt.ADFDesignTimeContext dtContext, java.lang.String baseId)
          Generate the unique id.
static void reset()
          Reset the cache, useful to call at the start/and of a commit().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reset

public static void reset()
Reset the cache, useful to call at the start/and of a commit().


generateUniqueIdForView

public static java.lang.String generateUniqueIdForView(oracle.adfdt.ADFDesignTimeContext dtContext,
                                                       java.lang.String baseId)
Generate the unique id. This method will generate a new id if one does not exist in the internal cache (keyed on baseId), otherwise it will add 1 to the last id and return that. This relies on the underlying mechanism returning ids of the form baseId1, baseId2 etc.

Parameters:
dtContext - context.
baseId - base identifier to use in construction of unique id.
Returns:
unique id.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.