EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.services
Class ClassSummaryDetailBase

java.lang.Object
  extended by org.eclipse.persistence.services.ClassSummaryDetailBase
Direct Known Subclasses:
ClassSummaryDetail, ClassSummaryDetail, ClassSummaryDetail, ClassSummaryDetail

public abstract class ClassSummaryDetailBase
extends java.lang.Object

The class is used internally by the Portable JMX Framework to convert model specific classes into Open Types so that the attributes of model class can be exposed by MBeans.

Since:
EclipseLink 2.1.1

Field Summary
protected static java.lang.String COMPOSITE_TYPE_DESCRIPTION
          Must override in subclass
protected static java.lang.String COMPOSITE_TYPE_TYPENAME
          Must override in subclass
protected static javax.management.openmbean.CompositeType cType_
           
protected static java.lang.String[] itemNames_
           
 
Constructor Summary
ClassSummaryDetailBase(java.lang.String className, java.lang.String cacheType, java.lang.String configuredSize, java.lang.String currentSize, java.lang.String parentClassName)
          Construct a ClassSummaryDetail instance.
 
Method Summary
static ClassSummaryDetail from(javax.management.openmbean.CompositeData cd)
          Create an instance of the model specific class out of an associated CompositeData instance
 java.lang.String getCacheType()
           
 java.lang.String getClassName()
           
 java.lang.String getConfiguredSize()
           
 java.lang.String getCurrentSize()
           
 java.lang.String getParentClassName()
           
 void setCacheType(java.lang.String cacheType)
           
 void setClassName(java.lang.String className)
           
 void setConfiguredSize(java.lang.String configuredSize)
           
 void setCurrentSize(java.lang.String currentSize)
           
 void setParentClassName(java.lang.String parentClassName)
           
 javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
          Convert an instance of this model specific type to a CompositeData.
static javax.management.openmbean.CompositeType toCompositeType()
          Returns the CompositeType that describes this model specific class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPOSITE_TYPE_TYPENAME

protected static java.lang.String COMPOSITE_TYPE_TYPENAME
Must override in subclass


COMPOSITE_TYPE_DESCRIPTION

protected static java.lang.String COMPOSITE_TYPE_DESCRIPTION
Must override in subclass


cType_

protected static javax.management.openmbean.CompositeType cType_

itemNames_

protected static final java.lang.String[] itemNames_
Constructor Detail

ClassSummaryDetailBase

public ClassSummaryDetailBase(java.lang.String className,
                              java.lang.String cacheType,
                              java.lang.String configuredSize,
                              java.lang.String currentSize,
                              java.lang.String parentClassName)
Construct a ClassSummaryDetail instance. The PropertyNames annotation is used to be able to construct a ClassSummaryDetail instance out of a CompositeData instance. See MXBeans documentation for more details.

Method Detail

toCompositeType

public static javax.management.openmbean.CompositeType toCompositeType()
Returns the CompositeType that describes this model specific class


from

public static ClassSummaryDetail from(javax.management.openmbean.CompositeData cd)
Create an instance of the model specific class out of an associated CompositeData instance


toCompositeData

public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
Convert an instance of this model specific type to a CompositeData. This ensure that clients that do not have access to the model specific class can still use the MBean. The MXBean framework can perform this conversion automatically.

Parameters:
ct - - This parameter is for JDK 1.6 compatibility reasons

getClassName

public java.lang.String getClassName()

getCacheType

public java.lang.String getCacheType()

getConfiguredSize

public java.lang.String getConfiguredSize()

getCurrentSize

public java.lang.String getCurrentSize()

getParentClassName

public java.lang.String getParentClassName()

setClassName

public void setClassName(java.lang.String className)

setCacheType

public void setCacheType(java.lang.String cacheType)

setConfiguredSize

public void setConfiguredSize(java.lang.String configuredSize)

setCurrentSize

public void setCurrentSize(java.lang.String currentSize)

setParentClassName

public void setParentClassName(java.lang.String parentClassName)

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference