org.kuali.rice.krad.metadata
Class MetadataManager

java.lang.Object
  extended by org.kuali.rice.krad.metadata.MetadataManager

Deprecated.

@Deprecated
public class MetadataManager
extends Object

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
static Object convertPrimaryKeyMapToObject(Class entityClazz, Map<String,Object> pkMap)
          Deprecated. This converts a map of primary keys into an object: in the case of a single key, just the value object iself; in the case of a composite key, the correct composite key object populated with the values from the map
static EntityDescriptor getEntityDescriptor(Class clazz)
          Deprecated.  
static Object getEntityPrimaryKeyObject(Object object)
          Deprecated. Retrieves the primary key as an object for the given Object (which is assumed to be a JPA entity).
static Map<String,Object> getEntityPrimaryKeyValuePairs(Object object)
          Deprecated.  
static Object getPersistableBusinessObjectPrimaryKeyObjectWithValuesForExtension(Object owner, Object extension)
          Deprecated. Retrieves the primary key as an object for the given Object (which is assumed to be a JPA entity), filling it with values from the extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEntityDescriptor

public static EntityDescriptor getEntityDescriptor(Class clazz)
Deprecated. 

getEntityPrimaryKeyValuePairs

public static Map<String,Object> getEntityPrimaryKeyValuePairs(Object object)
Deprecated. 

getEntityPrimaryKeyObject

public static Object getEntityPrimaryKeyObject(Object object)
Deprecated. 
Retrieves the primary key as an object for the given Object (which is assumed to be a JPA entity). If the entity has a single field primary key, the value of that field is returned. If a composite key is needed, it will be constructed and populated with the correct values. If a problem occurs, a null will be returned

Parameters:
object - the object to get a primary key value from
Returns:
a primary key value

getPersistableBusinessObjectPrimaryKeyObjectWithValuesForExtension

public static Object getPersistableBusinessObjectPrimaryKeyObjectWithValuesForExtension(Object owner,
                                                                                        Object extension)
Deprecated. 
Retrieves the primary key as an object for the given Object (which is assumed to be a JPA entity), filling it with values from the extension. If the entity has a single field primary key, the value of that field from the extension is returned. If a composite key is needed, it will be constructed (based on the id class for the extension object) and populated with the correct values from the extension. If a problem occurs, a null will be returned.

Parameters:
owner - the object to get values from
extension - the object to build a key for
Returns:
a primary key value

convertPrimaryKeyMapToObject

public static Object convertPrimaryKeyMapToObject(Class entityClazz,
                                                  Map<String,Object> pkMap)
Deprecated. 
This converts a map of primary keys into an object: in the case of a single key, just the value object iself; in the case of a composite key, the correct composite key object populated with the values from the map

Parameters:
entityClazz - the class of the entity the pkMap was for
pkMap - the map of primary key fields and values
Returns:
the correct primary key object


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.