org.kuali.rice.krad.service.impl
Class PersistenceServiceStructureImplBase

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.PersistenceServiceStructureImplBase
Direct Known Subclasses:
PersistenceServiceImplBase

public class PersistenceServiceStructureImplBase
extends Object


Constructor Summary
PersistenceServiceStructureImplBase()
          Constructs a PersistenceServiceImpl instance.
 
Method Summary
 Class<? extends PersistableBusinessObjectExtension> getBusinessObjectAttributeClass(Class<? extends PersistableBusinessObject> clazz, String attributeName)
           
protected  org.apache.ojb.broker.metadata.ClassDescriptor getClassDescriptor(Class persistableClass)
           
protected  org.apache.ojb.broker.metadata.DescriptorRepository getDescriptorRepository()
           
 boolean isJpaEnabledForKradClass(Class clazz)
          Determines if JPA is enabled for the KNS and for the given class
 List listPrimaryKeyFieldNames(Class clazz)
          This method returns a list of primary key field names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceServiceStructureImplBase

public PersistenceServiceStructureImplBase()
Constructs a PersistenceServiceImpl instance.

Method Detail

getDescriptorRepository

protected org.apache.ojb.broker.metadata.DescriptorRepository getDescriptorRepository()
Returns:
DescriptorRepository containing everything OJB knows about persistable classes

listPrimaryKeyFieldNames

public List listPrimaryKeyFieldNames(Class clazz)
This method returns a list of primary key field names. This method uses the CacheNoCopy caching method. "NoCopy" is the faster of the caching annotations, but because it does not make a copy the list that is returned must not be modified. To enforce this the returned list is wrapped in a Collections.unmodifiableList method. This will cause an exception to be thrown if the list is altered.

Parameters:
clazz -
Returns:
unmodifiableList of field names. Any attempt to alter list will result in an UnsupportedOperationException

getClassDescriptor

protected org.apache.ojb.broker.metadata.ClassDescriptor getClassDescriptor(Class persistableClass)
Parameters:
persistableClass -
Returns:
ClassDescriptor for the given Class
Throws:
IllegalArgumentException - if the given Class is null
ClassNotPersistableException - if the given Class is unknown to OJB

isJpaEnabledForKradClass

public boolean isJpaEnabledForKradClass(Class clazz)
Determines if JPA is enabled for the KNS and for the given class

Parameters:
clazz - the class to check for JPA enabling of
Returns:
true if JPA is enabled for the class, false otherwise

getBusinessObjectAttributeClass

public Class<? extends PersistableBusinessObjectExtension> getBusinessObjectAttributeClass(Class<? extends PersistableBusinessObject> clazz,
                                                                                           String attributeName)
See Also:
PersistenceStructureService.getBusinessObjectAttributeClass(java.lang.Class, java.lang.String)


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