public class PersistenceStructureServiceJpaImpl extends PersistenceServiceImplBase implements PersistenceStructureService
| Modifier and Type | Field and Description |
|---|---|
static Map<Class,Class> |
referenceConversionMap
special case when the attributeClass passed in doesnt match the class of
the reference-descriptor as defined in ojb-repository.
|
LOG| Constructor and Description |
|---|
PersistenceStructureServiceJpaImpl() |
getPrimaryKeyFieldValues, getPrimaryKeyFieldValuesgetBusinessObjectAttributeClass, getClassDescriptor, getDescriptorRepository, isJpaEnabledForKradClass, listPrimaryKeyFieldNamesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBusinessObjectAttributeClass, listPrimaryKeyFieldNamespublic static Map<Class,Class> referenceConversionMap
public PersistenceStructureServiceJpaImpl()
public boolean isPersistable(Class clazz)
isPersistable in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceService#isPersistable(java.lang.Class)public List getPrimaryKeys(Class clazz)
getPrimaryKeys in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceService#getPrimaryKeys(java.lang.Class)public List listFieldNames(Class clazz)
listFieldNames in interface PersistenceStructureServicePersistenceMetadataExplorerServicepublic Object clearPrimaryKeyFields(Object persistableObject)
clearPrimaryKeyFields in interface PersistenceStructureServicePersistenceMetadataServicepublic List listPersistableSubclasses(Class superclazz)
listPersistableSubclasses in interface PersistenceStructureServicePersistenceMetadataExplorerServicepublic Map<String,DataObjectRelationship> getRelationshipMetadata(Class persistableClass, String attributeName, String attributePrefix)
getRelationshipMetadata in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceService#getRelationshipMetadata(java.lang.Class,
java.lang.String)public Map<String,DataObjectRelationship> getRelationshipMetadata(Class persistableClass, String attributeName)
getRelationshipMetadata in interface PersistenceStructureServicepublic String getForeignKeyFieldName(Class persistableObjectClass, String attributeName, String pkName)
getForeignKeyFieldName in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceService#getForeignKeyFieldName(java.lang.Object,
java.lang.String, java.lang.String)public Map getReferencesForForeignKey(Class persistableObjectClass, String attributeName)
getReferencesForForeignKey in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceService#getReferencesForForeignKey(java.lang.Class,
java.lang.String)public Map getForeignKeysForReference(Class clazz, String attributeName)
getForeignKeysForReference in interface PersistenceStructureServiceThe Map structure is: Key(String fkFieldName) =>
Value(String pkFieldName) NOTE that this implementation depends on
the ordering of foreign-key elements in the ojb-repository matching
the ordering of primary-key declarations of the class on the other
side of the relationship. This is done because: 1. The current
version of OJB requires you to declare all of these things in the
correct (and matching) order in the ojb-repository file for it to
work at all. 2. There is no other way to match a given foreign-key
reference to its corresponding primary-key on the opposing side of
the relationship. Yes, this is a crummy way to do it, but OJB doesnt
provide explicit matches of foreign-keys to primary keys, and always
assumes that foreign-keys map to primary keys on the other object,
and never to a set of candidate keys, or any other column.public Map<String,String> getInverseForeignKeysForCollection(Class boClass, String collectionName)
getInverseForeignKeysForCollection in interface PersistenceStructureServicepublic Map getNestedForeignKeyMap(Class persistableObjectClass)
getNestedForeignKeyMap in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceService#getNestedForeignKeyMap(java.lang.Class)public boolean hasPrimaryKeyFieldValues(Object persistableObject)
hasPrimaryKeyFieldValues in interface PersistenceStructureServicePersistenceMetadataServicepublic ForeignKeyFieldsPopulationState getForeignKeyFieldsPopulationState(PersistableBusinessObject bo, String referenceName)
getForeignKeyFieldsPopulationState in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceService#getForeignKeyFieldsPopulationState(org.kuali.rice.krad.bo.BusinessObject,
java.lang.String)public Map<String,Class> listReferenceObjectFields(Class boClass)
listReferenceObjectFields in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceStructureService#listReferenceObjectFieldNames(java.lang.Class)public Map<String,Class> listCollectionObjectTypes(Class boClass)
listCollectionObjectTypes in interface PersistenceStructureServicepublic Map<String,Class> listCollectionObjectTypes(PersistableBusinessObject bo)
listCollectionObjectTypes in interface PersistenceStructureServicepublic Map<String,Class> listReferenceObjectFields(PersistableBusinessObject bo)
listReferenceObjectFields in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceStructureService#listReferenceObjectFieldNames(org.kuali.rice.krad.bo.BusinessObject)public boolean isReferenceUpdatable(Class boClass, String referenceName)
isReferenceUpdatable in interface PersistenceStructureServicepublic boolean isCollectionUpdatable(Class boClass, String collectionName)
isCollectionUpdatable in interface PersistenceStructureServicepublic boolean hasCollection(Class boClass, String collectionName)
hasCollection in interface PersistenceStructureServicepublic boolean hasReference(Class boClass, String referenceName)
hasReference in interface PersistenceStructureServicepublic String getTableName(Class<? extends PersistableBusinessObject> boClass)
getTableName in interface PersistenceStructureServicePersistenceStructureService.getTableName(java.lang.Class)Copyright © 2005–2016 The Kuali Foundation. All rights reserved.