|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sap.ip.me.api.persist.meta.DescriptorRuntime
Factory for AttributeDescriptor, ClassDescriptor, LinkDescriptor. Once created, ClassDescriptor are held internally and may be read again.
AttributeDescriptor
,
ClassDescriptor
,
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)
Creates an instance of AttributeDescriptor. |
abstract ClassDescriptor |
createClassDescriptor(java.lang.String classtype,
AttributeDescriptor[] attributes)
Creates an instance of ClassDescriptor without links. |
abstract ClassDescriptor |
createClassDescriptor(java.lang.String classtype,
AttributeDescriptor[] attributes,
LinkDescriptor[] links)
Creates an instance of ClassDescriptor. |
abstract ClassDescriptor |
createClassDescriptor(java.lang.String classtype,
AttributeDescriptor[] atts,
LinkDescriptor[] links,
int keyLen)
Creates an instance of ClassDescriptor. |
abstract ClassDescriptor |
createClassDescriptor(java.lang.String classtype,
LinkDescriptor[] links)
Deprecated. no usecase for this type |
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)
Returns a ClassDescriptor instance for a defined classtype, if it is registered. |
static DescriptorRuntime |
getInstance()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MAX_ATTRIB_MULTIPLICITY
Constructor Detail |
public DescriptorRuntime()
Method Detail |
public static final DescriptorRuntime getInstance()
public abstract AttributeDescriptor createAttributeDescriptor(java.lang.String name, AttributeType type, int mult, int length) throws DescriptorException
name
- unique nametype
- type of the Attributemult
- multiplicitylength
- maximum length
DescriptorException
public abstract AttributeDescriptor createAttributeDescriptor(java.lang.String name, AttributeType type, int mult, int length, int dec, boolean isIndex) throws DescriptorException
name
- unique nametype
- type of the Attributemult
- multiplicitylength
- maximum lengthdec
- decimals for this attribute (only allowed for some types)isIndex
- mark Attribute as secondary index for query optimization
DescriptorException
public abstract AttributeDescriptor createAttributeDescriptor(java.lang.String name, AttributeType type, int mult, int length, boolean isIndex) throws DescriptorException
name
- unique nametype
- type of the Attributemult
- multiplicitylength
- maximum lengthisIndex
- mark Attribute as secondary index for query optimization
DescriptorException
public abstract LinkDescriptor createLinkDescriptor(java.lang.String name, java.lang.String classtype, MultiplicityType multiplicity, boolean isDependent) throws DescriptorException
name
- unique identifierclasstype
- type of the referenced classmultiplicity
- SINGLE or MULTIPLE_VECTOR.isDependent
- mark as dependent for deep operations
DescriptorException
public abstract ClassDescriptor createClassDescriptor(java.lang.String classtype, AttributeDescriptor[] attributes) throws DescriptorException
classtype
- unique type keyattributes
- all attributes contained in this class
DescriptorException
public abstract ClassDescriptor createClassDescriptor(java.lang.String classtype, LinkDescriptor[] links) throws DescriptorException
classtype
- unique type keylinks
- all links contained in this class
DescriptorException
public abstract ClassDescriptor createClassDescriptor(java.lang.String classtype, AttributeDescriptor[] atts, LinkDescriptor[] links, int keyLen) throws DescriptorException
The AttributeDescriptor[] must not contain a Descriptor for the persistence key Attribute, as this will be generated by the framework (of AttributeType.STRING with the specified length).
classtype
- unique type keyatts
- all attributes contained in this classlinks
- all links contained in this class
DescriptorException
public abstract ClassDescriptor createClassDescriptor(java.lang.String classtype, AttributeDescriptor[] attributes, LinkDescriptor[] links) throws DescriptorException
The AttributeDescriptor[] must not contain a Descriptor for the persistence key Attribute, as this will be generated by the framework (of AttributeType.STRING with a default length).
classtype
- unique type keylinks
- all links contained in this class
DescriptorException
public abstract ClassDescriptor getClassDescriptor(java.lang.String classtype)
classtype
- unique type key
public abstract boolean containsClassDescriptor(java.lang.String classtype)
classtype
- unique type key
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |