com.sap.ip.me.api.persist.meta
Interface ClassDescriptor


public interface ClassDescriptor

This class describes the meta data of a class, which can be persisted.

It contains information like class name and information of all attributes and links.

This information is used by persistence layer to store and restore the data in a proper way and to create the structure of the associated database tables

Version:
Author:
SAP
See Also:
DescriptorRuntime

Method Summary
 AttributeDescriptor getAttributeDescriptor(int no)
          gets attribute with no.
 AttributeDescriptor[] getAttributeDescriptorArray()
          Gets the attributeDescriptors attribute of the ClassDescriptor object
 MeIterator getAttributeDescriptors()
          Gets the attributes attribute of the PersistableClass object
 int getAttributePosition(java.lang.String name)
          gets attribute with no.
 java.lang.String getClasstype()
          Gets the classtype attribute of the PersistableClass object
 AttributeDescriptor getKeyAttributeDescriptor()
           
 LinkDescriptor getLinkDescriptor(int no)
          gets link with no.
 LinkDescriptor[] getLinkDescriptorArray()
          Gets the linkDescriptors attribute of the ClassDescriptor object
 MeIterator getLinkDescriptors()
          Gets the links attribute of the PersistableClass object
 int getLinkPosition(java.lang.String name)
          Gets the position attribute of the PersistableClassDescriptor object
 int getPosition(AttributeDescriptor descriptor)
          Gets the position attribute of the ClassDescriptor object
 int getPosition(LinkDescriptor descriptor)
          Gets the position attribute of the ClassDescriptor object
 int getSecondaryIdxCount()
           
 

Method Detail

getAttributeDescriptors

public MeIterator getAttributeDescriptors()
Gets the attributes attribute of the PersistableClass object

Returns:
The attributes value

getLinkDescriptors

public MeIterator getLinkDescriptors()
Gets the links attribute of the PersistableClass object

Returns:
The links value

getAttributeDescriptor

public AttributeDescriptor getAttributeDescriptor(int no)
gets attribute with no.

Parameters:
no - Description of the Parameter
Returns:
The attribute value

getLinkDescriptor

public LinkDescriptor getLinkDescriptor(int no)
gets link with no.

Parameters:
no - Description of the Parameter
Returns:
The link value

getAttributePosition

public int getAttributePosition(java.lang.String name)
gets attribute with no.

Parameters:
name - Description of the Parameter
Returns:
The attributeIndex value

getLinkPosition

public int getLinkPosition(java.lang.String name)
Gets the position attribute of the PersistableClassDescriptor object

Parameters:
name - Description of the Parameter
Returns:
The position value

getPosition

public int getPosition(AttributeDescriptor descriptor)
Gets the position attribute of the ClassDescriptor object

Parameters:
descriptor - Description of the Parameter
Returns:
The position value

getPosition

public int getPosition(LinkDescriptor descriptor)
Gets the position attribute of the ClassDescriptor object

Parameters:
descriptor - Description of the Parameter
Returns:
The position value

getClasstype

public java.lang.String getClasstype()
Gets the classtype attribute of the PersistableClass object

Returns:
The classtype value

getAttributeDescriptorArray

public AttributeDescriptor[] getAttributeDescriptorArray()
Gets the attributeDescriptors attribute of the ClassDescriptor object

Returns:
The attributeDescriptors value

getLinkDescriptorArray

public LinkDescriptor[] getLinkDescriptorArray()
Gets the linkDescriptors attribute of the ClassDescriptor object

Returns:
The linkDescriptors value

getKeyAttributeDescriptor

public AttributeDescriptor getKeyAttributeDescriptor()

getSecondaryIdxCount

public int getSecondaryIdxCount()


Copyright © 2003 SAP AG. All Rights Reserved.