com.sap.ip.me.api.persist.meta
Class DescriptorRuntime

java.lang.Object
  extended bycom.sap.ip.me.api.persist.meta.DescriptorRuntime

public abstract class DescriptorRuntime
extends java.lang.Object

Factory for AttributeDescriptor, ClassDescriptor, LinkDescriptor. Once created, ClassDescriptor are held internally and may be read again.

Version:
Author:
SAP
See Also:
AttributeDescriptor, ClasDescriptor, LinkDescriptor

Field Summary
static int MAX_ATTRIB_MULTIPLICITY
          Description of the Field
 
Constructor Summary
DescriptorRuntime()
           
 
Method Summary
abstract  boolean containsClassDescriptor(java.lang.String classtype)
          Checks if a ClassDescriptor instance has already been created for a classtype
abstract  AttributeDescriptor createAttributeDescriptor(java.lang.String name, AttributeType type, int mult, int length)
          Creates an instance of AttributeDescriptor
abstract  AttributeDescriptor createAttributeDescriptor(java.lang.String name, AttributeType type, int mult, int length, boolean isIndex)
          Creates an instance of AttributeDescriptor
abstract  AttributeDescriptor createAttributeDescriptor(java.lang.String name, AttributeType type, int mult, int length, int dec, boolean isIndex)
           
abstract  ClassDescriptor createClassDescriptor(java.lang.String classtype, AttributeDescriptor[] attributes)
          Creates an instance of ClassDescriptor.
abstract  ClassDescriptor createClassDescriptor(java.lang.String classtype, AttributeDescriptor[] attributes, LinkDescriptor[] links)
          Creates an instance of ClassDescriptor.
abstract  ClassDescriptor createClassDescriptor(java.lang.String classtype, AttributeDescriptor[] a, LinkDescriptor[] l, int keyLen)
           
abstract  ClassDescriptor createClassDescriptor(java.lang.String classtype, LinkDescriptor[] links)
          Creates an instance of ClassDescriptor.
abstract  LinkDescriptor createLinkDescriptor(java.lang.String name, java.lang.String classtype, MultiplicityType multiplicity, boolean isDependent)
          Creates an instance of LinkDescriptor
abstract  ClassDescriptor getClassDescriptor(java.lang.String classtype)
          Gets a ClassDescriptor instance for a defined classtype
static DescriptorRuntime getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_ATTRIB_MULTIPLICITY

public static final int MAX_ATTRIB_MULTIPLICITY
Description of the Field

See Also:
Constant Field Values
Constructor Detail

DescriptorRuntime

public DescriptorRuntime()
Method Detail

getInstance

public static final DescriptorRuntime getInstance()

createAttributeDescriptor

public abstract AttributeDescriptor createAttributeDescriptor(java.lang.String name,
                                                              AttributeType type,
                                                              int mult,
                                                              int length)
                                                       throws DescriptorException
Creates an instance of AttributeDescriptor

Parameters:
name - Description of the Parameter
type - Description of the Parameter
mult - Description of the Parameter
length - Description of the Parameter
Returns:
Description of the Return Value
Throws:
DescriptorException

createAttributeDescriptor

public abstract AttributeDescriptor createAttributeDescriptor(java.lang.String name,
                                                              AttributeType type,
                                                              int mult,
                                                              int length,
                                                              int dec,
                                                              boolean isIndex)
                                                       throws DescriptorException
Throws:
DescriptorException

createAttributeDescriptor

public abstract AttributeDescriptor createAttributeDescriptor(java.lang.String name,
                                                              AttributeType type,
                                                              int mult,
                                                              int length,
                                                              boolean isIndex)
                                                       throws DescriptorException
Creates an instance of AttributeDescriptor

Parameters:
name - Description of the Parameter
type - Description of the Parameter
mult - Description of the Parameter
length - Description of the Parameter
Returns:
Description of the Return Value
Throws:
DescriptorException

createLinkDescriptor

public abstract LinkDescriptor createLinkDescriptor(java.lang.String name,
                                                    java.lang.String classtype,
                                                    MultiplicityType multiplicity,
                                                    boolean isDependent)
                                             throws DescriptorException
Creates an instance of LinkDescriptor

Parameters:
name - Description of the Parameter
classtype - Description of the Parameter
multiplicity - Description of the Parameter
isDependent - Description of the Parameter
Returns:
Description of the Return Value
Throws:
DescriptorException

createClassDescriptor

public abstract ClassDescriptor createClassDescriptor(java.lang.String classtype,
                                                      AttributeDescriptor[] attributes)
                                               throws DescriptorException
Creates an instance of ClassDescriptor. The classtype must be unique. An exception is thrown if a ClassDescriptor instance has already been created for an equal classtype.

Parameters:
classtype - Description of the Parameter
attributes - Description of the Parameter
Returns:
Description of the Return Value
Throws:
DescriptorException

createClassDescriptor

public abstract ClassDescriptor createClassDescriptor(java.lang.String classtype,
                                                      LinkDescriptor[] links)
                                               throws DescriptorException
Creates an instance of ClassDescriptor. The classtype must be unique. An exception is thrown if a ClassDescriptor instance has already been created for an equal classtype.

Parameters:
classtype - Description of the Parameter
links - Description of the Parameter
Returns:
Description of the Return Value
Throws:
DescriptorException

createClassDescriptor

public abstract ClassDescriptor createClassDescriptor(java.lang.String classtype,
                                                      AttributeDescriptor[] a,
                                                      LinkDescriptor[] l,
                                                      int keyLen)
                                               throws DescriptorException
Throws:
DescriptorException

createClassDescriptor

public abstract ClassDescriptor createClassDescriptor(java.lang.String classtype,
                                                      AttributeDescriptor[] attributes,
                                                      LinkDescriptor[] links)
                                               throws DescriptorException
Creates an instance of ClassDescriptor. The classtype must be unique. An exception is thrown if a ClassDescriptor instance has already been created for an equal classtype.

Parameters:
classtype - Description of the Parameter
attributes - Description of the Parameter
links - Description of the Parameter
Returns:
Description of the Return Value
Throws:
DescriptorException

getClassDescriptor

public abstract ClassDescriptor getClassDescriptor(java.lang.String classtype)
Gets a ClassDescriptor instance for a defined classtype

Parameters:
classtype - Description of the Parameter
Returns:
The classDescriptor value

containsClassDescriptor

public abstract boolean containsClassDescriptor(java.lang.String classtype)
Checks if a ClassDescriptor instance has already been created for a classtype

Parameters:
classtype - Description of the Parameter
Returns:
Description of the Return Value


Copyright © 2003 SAP AG. All Rights Reserved.