Skip navigation links


oracle.idm.connection.info
Class CountInfo

java.lang.Object
  extended by oracle.idm.connection.info.CountInfo

All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, XmlPrintable
Direct Known Subclasses:
Connection.CountInfo, Connection.Operation.CountInfo

public abstract class CountInfo
extends java.lang.Object
implements java.lang.Cloneable, java.lang.Comparable, XmlPrintable

This class maintains count information.

Note: this class has a natural ordering that is inconsistent with equals.


Field Summary
protected  int captureCount
           
protected  int closeCount
           
protected  int invalidateCount
           
protected  int openCount
           
protected  int proxyCount
           
protected  int releaseCount
           
protected  int removeCount
           
protected  int returnCount
           
protected  java.lang.String tag
          Tag used to print the object as an XML element.
static int UNKNOWN
          Use for unknown counts.
protected  int validateCount
           

 

Constructor Summary
protected CountInfo(java.lang.String type)
          Constructor for count info.

 

Method Summary
 int compareTo(java.lang.Object that)
           
protected  void count(CountInfo countInfo)
          Counts count info.
protected  void discount(CountInfo countInfo)
          Discounts count info.
 int getCaptureCount()
          Returns the capture count.
 int getCloseCount()
          Returns the close count.
 int getInvalidateCount()
          Returns the invalidate count.
 int getOpenCount()
          Returns the open count.
 int getProxyCount()
          Returns the proxy count.
 int getReleaseCount()
          Returns the release count.
 int getRemoveCount()
          Returns the remove count.
 int getReturnCount()
          Returns the return count.
 java.lang.String getType()
          Returns the connection tye for this count info.
 int getValidateCount()
          Returns the validate count.
 boolean isMatchingType(java.lang.String type)
          Tests if the count info type value matches.
 void xprint(XmlPrintWriter out)
          Prints count info properties to the PrintWriter as an XML element.
protected  void xprintBody(XmlPrintWriter out)
          This method prints the count info XML tag body.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

UNKNOWN

public static final int UNKNOWN
Use for unknown counts.
See Also:
Constant Field Values

openCount

protected int openCount

closeCount

protected int closeCount

proxyCount

protected int proxyCount

captureCount

protected int captureCount

releaseCount

protected int releaseCount

removeCount

protected int removeCount

returnCount

protected int returnCount

validateCount

protected int validateCount

invalidateCount

protected int invalidateCount

tag

protected java.lang.String tag
Tag used to print the object as an XML element.

Constructor Detail

CountInfo

protected CountInfo(java.lang.String type)
Constructor for count info.

Method Detail

getType

public java.lang.String getType()
Returns the connection tye for this count info.
Returns:
String representing the connection type of this count info

isMatchingType

public final boolean isMatchingType(java.lang.String type)
Tests if the count info type value matches.

Every count info matches the Connection.TYPE value.

Returns:
true if the type matches, false otherwise

getOpenCount

public int getOpenCount()
Returns the open count.
Returns:
int representing the open count

getCloseCount

public int getCloseCount()
Returns the close count.
Returns:
int representing the close count

getProxyCount

public int getProxyCount()
Returns the proxy count.
Returns:
int representing the proxy count

getCaptureCount

public int getCaptureCount()
Returns the capture count.
Returns:
int representing the capture count

getReleaseCount

public int getReleaseCount()
Returns the release count.
Returns:
int representing the release count

getRemoveCount

public int getRemoveCount()
Returns the remove count.
Returns:
int representing the remove count

getReturnCount

public int getReturnCount()
Returns the return count.
Returns:
int representing the return count

getValidateCount

public int getValidateCount()
Returns the validate count.
Returns:
int representing the validate count

getInvalidateCount

public int getInvalidateCount()
Returns the invalidate count.
Returns:
int representing the invalidate count

count

protected void count(CountInfo countInfo)
Counts count info.

discount

protected void discount(CountInfo countInfo)
Discounts count info.

compareTo

public int compareTo(java.lang.Object that)
Specified by:
compareTo in interface java.lang.Comparable

xprint

public void xprint(XmlPrintWriter out)
Prints count info properties to the PrintWriter as an XML element.
Specified by:
xprint in interface XmlPrintable
Parameters:
out - PrintWriter for printing count info propeties.

xprintBody

protected void xprintBody(XmlPrintWriter out)
This method prints the count info XML tag body.

Skip navigation links