Java Client API Reference 6.0.2.61

com.baan.b3.boi1.metadata
Class MetadataUtil

java.lang.Object
  |
  +--com.baan.b3.boi1.metadata.MetadataUtil

public final class MetadataUtil
extends java.lang.Object

Provides convenience methods for working with metadata objects.
Generated BusinessObjects and BusinessObjectManagers should declare public static methods named retrieveMetadata that return IBusinessObjectMetadata or IManagerMetadata objects respectively. The methods in this class use this retrieveMetadata method to dynamically retrieve metadata for specified generated types.

Version:
Build Nr 61, file version \\main\\3, 15:09:08 24-07-2006 UTC

Method Summary
static IBusinessObjectMetadata getBusinessObjectMetadata(java.lang.String p_typeName)
          Retrieves the metadata for a business object.
static IManagerMetadata getManagerMetadata(java.lang.String p_typeName)
          Retrieves the metadata for a business object manager.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBusinessObjectMetadata

public static IBusinessObjectMetadata getBusinessObjectMetadata(java.lang.String p_typeName)
                                                         throws java.lang.RuntimeException
Retrieves the metadata for a business object.
Threading policy: MTSafe.
Parameters:
p_typeName - the name of the type of business object for which metadata should be retrieved (should not be null)
Returns:
an object describing the specified type of business object
Throws:
java.lang.RuntimeException - if the specified type is not known, it does not declare the required method with the required characteristics or an exception is thrown while retrieving the metadata structure from the generated code

getManagerMetadata

public static IManagerMetadata getManagerMetadata(java.lang.String p_typeName)
                                           throws java.lang.RuntimeException
Retrieves the metadata for a business object manager.
Threading policy: MTSafe.
Parameters:
p_typeName - the name of the type of business object manager for which metadata should be retrieved (should not be null)
Returns:
an object describing the specified type of business object manager
Throws:
java.lang.RuntimeException - if the specified type is not known, it does not declare the required method with the required characteristics or an exception is thrown while retrieving the metadata structure from the generated code

Java Client API Reference 6.0.2.61

Visit the SSA Global website for more information.