@Deprecated public class PersistenceStructureServiceOjbImpl extends PersistenceServiceImplBase implements PersistenceStructureService
| Modifier and Type | Field and Description |
|---|---|
static Map<Class,Class> |
referenceConversionMap
Deprecated.
special case when the attributeClass passed in doesnt match the class of
the reference-descriptor as defined in ojb-repository.
|
LOG| Constructor and Description |
|---|
PersistenceStructureServiceOjbImpl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clearPrimaryKeyFields(Object persistableObject)
Deprecated.
|
String |
getForeignKeyFieldName(Class persistableObjectClass,
String attributeName,
String pkName)
Deprecated.
|
ForeignKeyFieldsPopulationState |
getForeignKeyFieldsPopulationState(PersistableBusinessObject bo,
String referenceName)
Deprecated.
This method checks the foreign keys for a reference on a given BO, and tests that all fk fields are populated if any are
populated.
|
Map |
getForeignKeysForReference(Class clazz,
String attributeName)
Deprecated.
This method will return a Map of all the foreign key fields and the corresponding primary key fields for a given reference.
|
Map<String,String> |
getInverseForeignKeysForCollection(Class boClass,
String collectionName)
Deprecated.
Returns a listing of the FK field mappings between a BO and the elements in a collection.
|
Map |
getNestedForeignKeyMap(Class persistableObjectClass)
Deprecated.
Builds a map of reference pk attributes back to the foreign key.
|
PersistenceStructureService |
getPersistenceStructureServiceJpa()
Deprecated.
|
List |
getPrimaryKeys(Class clazz)
Deprecated.
This method returns a List of Strings, each containing the field name of one of the primary keys, as defined in the ORM
layer.
|
Map |
getReferencesForForeignKey(Class persistableObjectClass,
String attributeName)
Deprecated.
Attempts to match the attribute name given for the class as a fk field to a reference class defined in the repository.
|
Map<String,DataObjectRelationship> |
getRelationshipMetadata(Class persistableClass,
String attributeName)
Deprecated.
|
Map<String,DataObjectRelationship> |
getRelationshipMetadata(Class persistableClass,
String attributeName,
String attributePrefix)
Deprecated.
|
String |
getTableName(Class<? extends PersistableBusinessObject> boClass)
Deprecated.
This overridden method ...
|
boolean |
hasCollection(Class boClass,
String collectionName)
Deprecated.
Returns whether BOs of the given class have a collection defined within them with the given collection name.
|
boolean |
hasPrimaryKeyFieldValues(Object persistableObject)
Deprecated.
|
boolean |
hasReference(Class boClass,
String referenceName)
Deprecated.
Returns whether there is a reference defined in the persistence layer with the given name.
|
boolean |
isCollectionUpdatable(Class boClass,
String collectionName)
Deprecated.
|
boolean |
isPersistable(Class clazz)
Deprecated.
|
boolean |
isReferenceUpdatable(Class boClass,
String referenceName)
Deprecated.
|
Map<String,Class> |
listCollectionObjectTypes(Class boClass)
Deprecated.
|
Map<String,Class> |
listCollectionObjectTypes(PersistableBusinessObject bo)
Deprecated.
|
List |
listFieldNames(Class clazz)
Deprecated.
|
List |
listPersistableSubclasses(Class superclazz)
Deprecated.
|
Map<String,Class> |
listReferenceObjectFields(Class boClass)
Deprecated.
This method uses the persistence layer to determine the list of reference objects contained within this parent object.
|
Map<String,Class> |
listReferenceObjectFields(PersistableBusinessObject bo)
Deprecated.
This method uses the persistence layer to determine the list of reference objects contained within this parent object.
|
void |
setPersistenceStructureServiceJpa(PersistenceStructureService persistenceStructureServiceJpa)
Deprecated.
|
getPrimaryKeyFieldValues, getPrimaryKeyFieldValuesgetBusinessObjectAttributeClass, getClassDescriptor, getDescriptorRepository, isJpaEnabledForKradClass, listPrimaryKeyFieldNamesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBusinessObjectAttributeClass, listPrimaryKeyFieldNamespublic static Map<Class,Class> referenceConversionMap
public PersistenceStructureServiceOjbImpl()
public PersistenceStructureService getPersistenceStructureServiceJpa()
public void setPersistenceStructureServiceJpa(PersistenceStructureService persistenceStructureServiceJpa)
public boolean isPersistable(Class clazz)
isPersistable in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceService#isPersistable(java.lang.Class)public List getPrimaryKeys(Class clazz)
PersistenceStructureServicegetPrimaryKeys in interface PersistenceStructureServiceclazz - - Class whose primary key field names are requestedorg.kuali.rice.krad.service.PersistenceService#getPrimaryKeys(java.lang.Class)public List listFieldNames(Class clazz)
listFieldNames in interface PersistenceStructureServiceclazz - Class whose field names you want to listorg.kuali.rice.krad.service.PersistenceMetadataExplorerService#listFieldNames(java.lang.Class)public Object clearPrimaryKeyFields(Object persistableObject)
clearPrimaryKeyFields in interface PersistenceStructureServicepersistableObject - object whose primary key fields need to be clearedorg.kuali.rice.krad.service.PersistenceMetadataService#clearPrimaryKeyFields(java.lang.Object)public List listPersistableSubclasses(Class superclazz)
listPersistableSubclasses in interface PersistenceStructureServicesuperclazz - class whose persistable subclasses (or interface whose implementors) will be returnedorg.kuali.rice.krad.service.PersistenceMetadataExplorerService#listPersistableSubclasses(java.lang.Class)public Map<String,DataObjectRelationship> getRelationshipMetadata(Class persistableClass, String attributeName, String attributePrefix)
getRelationshipMetadata in interface PersistenceStructureServiceattributeName - Name of an attribute used in the relationshiporg.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)
PersistenceStructureServicegetReferencesForForeignKey in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceService#getReferencesForForeignKey(java.lang.Class,
java.lang.String)public Map getForeignKeysForReference(Class clazz, String attributeName)
PersistenceStructureServicegetForeignKeysForReference in interface PersistenceStructureServiceclazz - - Class that contains the named referenceattributeName - - Name of the member that is the reference you want foreign keys forThe 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)
PersistenceStructureServicegetInverseForeignKeysForCollection in interface PersistenceStructureServicepublic Map getNestedForeignKeyMap(Class persistableObjectClass)
PersistenceStructureServicegetNestedForeignKeyMap in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceService#getNestedForeignKeyMap(java.lang.Class)public boolean hasPrimaryKeyFieldValues(Object persistableObject)
hasPrimaryKeyFieldValues in interface PersistenceStructureServiceorg.kuali.rice.krad.service.PersistenceMetadataService#hasPrimaryKeyFieldValues(java.lang.Object)public ForeignKeyFieldsPopulationState getForeignKeyFieldsPopulationState(PersistableBusinessObject bo, String referenceName)
PersistenceStructureServicegetForeignKeyFieldsPopulationState in interface PersistenceStructureServicebo - - A populated BusinessObject descendent. Must contain an attributed named referenceName.referenceName - - The name of the field that is a reference we are analyzing.org.kuali.rice.krad.service.PersistenceService#getForeignKeyFieldsPopulationState(org.kuali.rice.krad.bo.BusinessObject,
java.lang.String)public Map<String,Class> listReferenceObjectFields(Class boClass)
PersistenceStructureServicelistReferenceObjectFields in interface PersistenceStructureServiceboClass - Class that would like to be analyzed for reference namesorg.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)
PersistenceStructureServicelistReferenceObjectFields in interface PersistenceStructureServicebo - BusinessObject (or subclass) instance that would like to be analyzed for reference namesorg.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)
PersistenceStructureServicehasCollection in interface PersistenceStructureServicepublic boolean hasReference(Class boClass, String referenceName)
PersistenceStructureServicehasReference in interface PersistenceStructureServicepublic String getTableName(Class<? extends PersistableBusinessObject> boClass)
getTableName in interface PersistenceStructureServicePersistenceStructureService.getTableName(java.lang.Class)Copyright © 2005–2014 The Kuali Foundation. All rights reserved.