Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.rt.extract.common
Class RowVersionMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<RowKey,RowVersion>
          extended by oracle.apps.fnd.applseed.rt.extract.common.RowVersionMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<RowKey,RowVersion>

public class RowVersionMap
extends java.util.HashMap<RowKey,RowVersion>

This class holds the map of RowVersions. RowKey object = RowVersion object

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
RowVersionMap()
          Default constructor.
RowVersionMap(int initialCapacity)
          Constructor to set initial capacity of map.
 
Method Summary
static RowKey buildKey(java.lang.String nodeName, java.lang.String rowKey)
          Build a map key from the given node name and row key.
 RowVersion get(RowKey key)
          Get the RowVersion object value from this map for the specified key value.
 RowVersion get(java.lang.String nodeName, java.lang.String rowKey)
          Get the RowVersion object value from this map for this node and row key.
 int notInUseCount()
          Get a count of RowVersion objects from this map that are not in use, that is, never retrieved from this map.
 RowVersion put(RowVersion value)
          Put the RowVersion object value into the map for this node and row key.
 RowVersion put(java.lang.String mapKey, int version)
          Put the version vaue into the map for the given key.
 RowVersion put(java.lang.String nodename, java.lang.String rowkey, int version)
          Put the version value into the map by building new RowVersion object.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

RowVersionMap

public RowVersionMap()
Default constructor.


RowVersionMap

public RowVersionMap(int initialCapacity)
Constructor to set initial capacity of map.

Parameters:
initialCapacity - map initial capacity value
Method Detail

buildKey

public static RowKey buildKey(java.lang.String nodeName,
                              java.lang.String rowKey)
Build a map key from the given node name and row key.

Parameters:
nodeName - row node name
rowKey - row key value
Returns:
RowKey key value

put

public RowVersion put(java.lang.String mapKey,
                      int version)
Put the version vaue into the map for the given key.

Parameters:
mapKey - fully qualified map key
version - int value
Returns:
previous value associated with this key, or null if no prev

put

public RowVersion put(java.lang.String nodename,
                      java.lang.String rowkey,
                      int version)
Put the version value into the map by building new RowVersion object.

Parameters:
nodename - String view node name
rowkey - String row key value
version - int value
Returns:
previous value associated with this key, or null if no prev

put

public RowVersion put(RowVersion value)
Put the RowVersion object value into the map for this node and row key.

Parameters:
value - RowVersion map value
Returns:
previous value associated with this key, or null if no prev

get

public RowVersion get(java.lang.String nodeName,
                      java.lang.String rowKey)
Get the RowVersion object value from this map for this node and row key. Set the retrieved RowVersion as in use.

Parameters:
nodeName - row node name
rowKey - row key value
Returns:
RowVersion object maped for this specified key, or null if none

get

public RowVersion get(RowKey key)
Get the RowVersion object value from this map for the specified key value. Set the retrieved RowVersion as in use.

Parameters:
key - map key value String
Returns:
RowVersion object, null if not found

notInUseCount

public int notInUseCount()
Get a count of RowVersion objects from this map that are not in use, that is, never retrieved from this map. This should be a count of rows from previous version that are not used in current version, that is, deleted rows in current version.

Returns:
count of RowVersion objects not in use

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.