DataObjectService@Deprecated public interface PersistenceStructureService
| Modifier and Type | Method and Description | 
|---|---|
| Object | clearPrimaryKeyFields(Object persistableObject)Deprecated.  | 
| Class<? extends PersistableBusinessObjectExtension> | getBusinessObjectAttributeClass(Class<? extends PersistableBusinessObject> clazz,
                                                              String attributeName)Deprecated.  This method is a PersistableBusinessObject specifific utility method. | 
| 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. | 
| 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<String,Class> | 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.  Returns the name of the table underlying the business object class | 
| 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.  | 
| List | listPrimaryKeyFieldNames(Class clazz)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. | 
boolean isPersistable(Class clazz)
clazz - List listPrimaryKeyFieldNames(Class clazz)
clazz - Class whose primary key field names you want to listIllegalArgumentException - if the given Class is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryList listFieldNames(Class clazz)
clazz - Class whose field names you want to listIllegalArgumentException - if the given Class is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryList getPrimaryKeys(Class clazz)
clazz - - Class whose primary key field names are requestedIllegalArgumentException - if the given Object is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryboolean hasPrimaryKeyFieldValues(Object persistableObject)
persistableObject - IllegalArgumentException - if the given Object is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryObject clearPrimaryKeyFields(Object persistableObject)
persistableObject - object whose primary key fields need to be clearedIllegalArgumentException - if the given Object is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryList listPersistableSubclasses(Class superclazz)
superclazz - class whose persistable subclasses (or interface whose implementors) will be returnedIllegalArgumentException - if the given class is nullMap<String,DataObjectRelationship> getRelationshipMetadata(Class persistableClass, String attributeName, String attributePrefix)
persistableClass - attributeName - Name of an attribute used in the relationshipIllegalArgumentException - if the given Class is nullIllegalArgumentException - if the given relationshipName is blanksClassNotPersistableException - if the given Class is a type not described in the OJB repositoryMap<String,DataObjectRelationship> getRelationshipMetadata(Class persistableClass, String attributeName)
String getForeignKeyFieldName(Class persistableObjectClass, String attributeName, String pkName)
Map<String,Class> getReferencesForForeignKey(Class persistableObjectClass, String attributeName)
persistableObjectClass - attributeName - Map getForeignKeysForReference(Class clazz, String attributeName)
clazz - - Class that contains the named referenceattributeName - - Name of the member that is the reference you want foreign keys forClass<? extends PersistableBusinessObjectExtension> getBusinessObjectAttributeClass(Class<? extends PersistableBusinessObject> clazz, String attributeName)
clazz - - class to be examined for the attribute's classattributeName - - name of the class' attribute to be examinedMap getNestedForeignKeyMap(Class persistableObjectClass)
persistableObjectClass - ForeignKeyFieldsPopulationState getForeignKeyFieldsPopulationState(PersistableBusinessObject bo, String referenceName)
bo - - A populated BusinessObject descendent. Must contain an attributed named referenceName.referenceName - - The name of the field that is a reference we are analyzing.Map<String,Class> listReferenceObjectFields(Class boClass)
boClass - Class that would like to be analyzed for reference namesMap<String,Class> listReferenceObjectFields(PersistableBusinessObject bo)
bo - BusinessObject (or subclass) instance that would like to be analyzed for reference namesMap<String,Class> listCollectionObjectTypes(Class boClass)
Map<String,Class> listCollectionObjectTypes(PersistableBusinessObject bo)
boolean hasReference(Class boClass, String referenceName)
boClass - referenceName - boolean hasCollection(Class boClass, String collectionName)
boClass - collectionName - boolean isReferenceUpdatable(Class boClass, String referenceName)
boolean isCollectionUpdatable(Class boClass, String collectionName)
Map<String,String> getInverseForeignKeysForCollection(Class boClass, String collectionName)
boClass - collectionName - String getTableName(Class<? extends PersistableBusinessObject> boClass)
boClass - Copyright © 2005–2015 The Kuali Foundation. All rights reserved.