| java.lang.Object org.kuali.core.service.impl.PersistenceServiceStructureImplBase org.kuali.core.service.impl.PersistenceServiceImplBase org.kuali.core.service.impl.PersistenceStructureServiceImpl
Field Summary | |
public 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. |
Method Summary | |
public Object | clearPrimaryKeyFields(Object persistableObject) | public String | getForeignKeyFieldName(Class persistableObjectClass, String attributeName, String pkName) | public ForeignKeyFieldsPopulationState | getForeignKeyFieldsPopulationState(PersistableBusinessObject bo, String referenceName) | public Map | getForeignKeysForReference(Class clazz, String attributeName) See Also: org.kuali.core.service.PersistenceService.getForeignKeysForReference(java.lang.Classjava.lang.String) See Also: The Map See Also: structure is: Key(String fkFieldName) => Value(String pkFieldName) NOTE that this implementation depends on the ordering See Also: of foreign-key elements in the ojb-repository matching the ordering of primary-key declarations of the class on the See Also: other side of the relationship. | public Map<String, String> | getInverseForeignKeysForCollection(Class boClass, String collectionName) | public Map | getNestedForeignKeyMap(Class persistableObjectClass) | public Map | getPrimaryKeyFieldAnonymousMarking(Class clazz) | public List | getPrimaryKeys(Class clazz) | public Map | getReferencesForForeignKey(Class persistableObjectClass, String attributeName) | public Map<String, BusinessObjectRelationship> | getRelationshipMetadata(Class persistableClass, String attributeName, String attributePrefix) | public Map<String, BusinessObjectRelationship> | getRelationshipMetadata(Class persistableClass, String attributeName) | public boolean | hasCollection(Class boClass, String collectionName) | public boolean | hasPrimaryKeyFieldValues(Object persistableObject) | public boolean | hasReference(Class boClass, String referenceName) | public boolean | isCollectionUpdatable(Class boClass, String collectionName) | public boolean | isPersistable(Class clazz) | public boolean | isReferenceUpdatable(Class boClass, String referenceName) | public Map<String, Class> | listCollectionObjectTypes(Class boClass) | public Map<String, Class> | listCollectionObjectTypes(PersistableBusinessObject bo) | public List | listFieldNames(Class clazz) | public List | listPersistableSubclasses(Class superclazz) | public Map<String, Class> | listReferenceObjectFields(Class boClass) | public Map<String, Class> | listReferenceObjectFields(PersistableBusinessObject bo) |
referenceConversionMap | public static Map<Class, Class> referenceConversionMap(Code) | | special case when the attributeClass passed in doesnt match the
class of the reference-descriptor as defined in ojb-repository. Currently
the only case of this happening is ObjectCode vs. ObjectCodeCurrent.
NOTE: This method makes no real sense and is a product of a hack introduced by KFS for
an unknown reason. If you find yourself using this map stop and go do something else.
Parameters: from - the class in the code Parameters: to - the class in the repository |
clearPrimaryKeyFields | public Object clearPrimaryKeyFields(Object persistableObject)(Code) | | See Also: org.kuali.core.service.PersistenceMetadataService.clearPrimaryKeyFields(java.lang.Object) |
getForeignKeysForReference | public Map getForeignKeysForReference(Class clazz, String attributeName)(Code) | | See Also: org.kuali.core.service.PersistenceService.getForeignKeysForReference(java.lang.Classjava.lang.String) See Also: The Map See Also: structure is: Key(String fkFieldName) => Value(String pkFieldName) NOTE that this implementation depends on the ordering See Also: of foreign-key elements in the ojb-repository matching the ordering of primary-key declarations of the class on the See Also: other side of the relationship. This is done because: 1. The current version of OJB requires you to declare all of these See Also: 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 See Also: match a given foreign-key reference to its corresponding primary-key on the opposing side of the relationship. Yes, this See Also: is a crummy way to do it, but OJB doesnt provide explicit matches of foreign-keys to primary keys, and always assumes See Also: that foreign-keys map to primary keys on the other object, and never to a set of candidate keys, or any other column. |
hasCollection | public boolean hasCollection(Class boClass, String collectionName)(Code) | | |
hasPrimaryKeyFieldValues | public boolean hasPrimaryKeyFieldValues(Object persistableObject)(Code) | | See Also: org.kuali.core.service.PersistenceMetadataService.hasPrimaryKeyFieldValues(java.lang.Object) |
isCollectionUpdatable | public boolean isCollectionUpdatable(Class boClass, String collectionName)(Code) | | |
isReferenceUpdatable | public boolean isReferenceUpdatable(Class boClass, String referenceName)(Code) | | |
listFieldNames | public List listFieldNames(Class clazz)(Code) | | See Also: org.kuali.core.service.PersistenceMetadataExplorerService.listFieldNames(java.lang.Class) |
listPersistableSubclasses | public List listPersistableSubclasses(Class superclazz)(Code) | | See Also: org.kuali.core.service.PersistenceMetadataExplorerService.listPersistableSubclasses(java.lang.Class) |
|
|