Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adf.share.jndi
Class MergedConnectionReference

java.lang.Object
  extended by oracle.adfnmc.javax.naming.Reference
      extended by oracle.adf.share.jndi.ConnectionReference
          extended by oracle.adf.share.jndi.MergedConnectionReference
All Implemented Interfaces:
Serializable, Cloneable

public class MergedConnectionReference
extends ConnectionReference


Field Summary
static java.lang.Class CLASS_INSTANCE
           
protected  Hashtable m_overrideRefs
           
protected  Hashtable m_refs
           
 
Fields inherited from class oracle.adf.share.jndi.ConnectionReference
adfCredentialStoreKey, adfCredentialStoreMapName, isPartial
 
Fields inherited from class oracle.adfnmc.javax.naming.Reference
addrs, classFactory, classFactoryLocation, className
 
Constructor Summary
MergedConnectionReference(java.lang.String className, ConnectionReference resourceRef, ConnectionReference fileRef)
          Constructs a ConnectionReference instance with an empty list of addresses using the supplied class name.
 
Method Summary
 void add(int index, oracle.adfnmc.javax.naming.RefAddr addr)
          Inserts an address within the list at the specified index.
 void add(oracle.adfnmc.javax.naming.RefAddr addr)
          Appends an address to the list.
 void clear()
          Deletes all the addresses from the address list.
 boolean equals(java.lang.Object o)
          Returns true if this Reference instance is equal to the supplied object o.
 oracle.adfnmc.javax.naming.RefAddr get(int index)
          Gets the address held at the specified index in the address list.
 oracle.adfnmc.javax.naming.RefAddr get(java.lang.String type)
          Gets an address where the address type matches the specified string.
 java.lang.String getAdfCredentialStoreKey()
           
 java.lang.String getAdfCredentialStoreMapName()
           
 java.util.Enumeration getAll()
          Gets all the addresses.
 int hashCode()
          Returns the hashcode for this Reference instance.
 boolean isPartial()
           
 java.lang.Object remove(int index)
          Removes an address from the address list.
 void setPartial(boolean partialValue)
           
 int size()
          Gets the number of addresses in the address list.
 java.lang.String toString()
          Returns the string representation of the class name together with the list of addresses.
 
Methods inherited from class oracle.adf.share.jndi.ConnectionReference
isDeployable, isManageInOracleEnterpriseManager, setAdfCredentialStoreKey, setAdfCredentialStoreMapName, setDeployable, setManageInOracleEnterpriseManager
 
Methods inherited from class oracle.adfnmc.javax.naming.Reference
getClassName, getFactoryClassLocation, getFactoryClassName
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE

m_refs

protected Hashtable m_refs

m_overrideRefs

protected Hashtable m_overrideRefs
Constructor Detail

MergedConnectionReference

public MergedConnectionReference(java.lang.String className,
                                 ConnectionReference resourceRef,
                                 ConnectionReference fileRef)
Constructs a ConnectionReference instance with an empty list of addresses using the supplied class name.

Parameters:
className - the class of the object which is referenced. It cannot be null.
propertyBag - the property bag of the object which is referenced. It cannot be null.
Method Detail

isPartial

public boolean isPartial()
Overrides:
isPartial in class ConnectionReference

setPartial

public void setPartial(boolean partialValue)
Overrides:
setPartial in class ConnectionReference

getAdfCredentialStoreMapName

public java.lang.String getAdfCredentialStoreMapName()
Overrides:
getAdfCredentialStoreMapName in class ConnectionReference

getAdfCredentialStoreKey

public java.lang.String getAdfCredentialStoreKey()
Overrides:
getAdfCredentialStoreKey in class ConnectionReference

getAll

public java.util.Enumeration getAll()
Gets all the addresses.

Overrides:
getAll in class oracle.adfnmc.javax.naming.Reference
Returns:
an enumeration of all the addresses

get

public oracle.adfnmc.javax.naming.RefAddr get(java.lang.String type)
Gets an address where the address type matches the specified string. There may be more than one entry in the list with the same address type but this method returns the first one found in the list.

Overrides:
get in class oracle.adfnmc.javax.naming.Reference
Parameters:
type - the address type to look for
Returns:
the first address whose type matches the string

get

public oracle.adfnmc.javax.naming.RefAddr get(int index)
Gets the address held at the specified index in the address list.

Overrides:
get in class oracle.adfnmc.javax.naming.Reference
Parameters:
index - the index of the required address. It must be greater than or equal to 0 and less than the number of entries in the list.
Returns:
the address held at the specified index
Throws:
java.lang.ArrayIndexOutOfBoundsException - If the index is invalid.

add

public void add(oracle.adfnmc.javax.naming.RefAddr addr)
Appends an address to the list.

Overrides:
add in class oracle.adfnmc.javax.naming.Reference
Parameters:
addr - the address to append. It cannot be null.

add

public void add(int index,
                oracle.adfnmc.javax.naming.RefAddr addr)
Inserts an address within the list at the specified index.

Overrides:
add in class oracle.adfnmc.javax.naming.Reference
Parameters:
addr - the address to insert into the list. It cannot be null.
index - the index where to insert the address. It must be greater than or equal to 0 and less than or equal to the number of entries in the list(size()).
Throws:
java.lang.ArrayIndexOutOfBoundsException - If the index is invalid.

remove

public java.lang.Object remove(int index)
Removes an address from the address list.

Overrides:
remove in class oracle.adfnmc.javax.naming.Reference
Parameters:
index - the index of the address to remove. It must be greater than or equal to 0 and less than size().
Returns:
the removed address
Throws:
java.lang.ArrayIndexOutOfBoundsException - If the index is invalid.

size

public int size()
Gets the number of addresses in the address list.

Overrides:
size in class oracle.adfnmc.javax.naming.Reference
Returns:
the size of the list

clear

public void clear()
Deletes all the addresses from the address list.

Overrides:
clear in class oracle.adfnmc.javax.naming.Reference

equals

public boolean equals(java.lang.Object o)
Returns true if this Reference instance is equal to the supplied object o. They are considered equal if their class name and list of addresses are equivalent (including the order of the addresses in the list). The factory class and location are ignored for the purposes of this comparison.

Overrides:
equals in class oracle.adfnmc.javax.naming.Reference
Parameters:
o - the object to compare with
Returns:
true if this object is equal to o, otherwise false

hashCode

public int hashCode()
Returns the hashcode for this Reference instance. The result is calculated by summing the hashcode of the class name and the hash codes of each of the addresses in the address list.

Overrides:
hashCode in class oracle.adfnmc.javax.naming.Reference
Returns:
the hashcode of this Reference instance

toString

public java.lang.String toString()
Returns the string representation of the class name together with the list of addresses.

Overrides:
toString in class oracle.adfnmc.javax.naming.Reference
Returns:
the string representation of this object

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.