| org.kuali.core.service.PersistenceService
All known Subclasses: org.kuali.core.service.impl.PersistenceServiceImpl,
PersistenceService | public interface PersistenceService (Code) | | |
allForeignKeyValuesPopulatedForReference | public boolean allForeignKeyValuesPopulatedForReference(PersistableBusinessObject bo, String referenceName)(Code) | | This method examines whether all the foreign key fields for the specified reference contain values.
Parameters: bo - Parameters: referenceName - true if they all are accessible and have values, false otherwise |
clearCache | public void clearCache()(Code) | | |
getFieldValue | public Object getFieldValue(Object persistableObject, String fieldName)(Code) | | Gets the value for the given field name from the object, works for anonymous fields as well as simple fields
Parameters: persistableObject - object to get value from Parameters: fieldName - name of the field to get from the object Object value of field in object, or null |
getFlattenedPrimaryKeyFieldValues | public String getFlattenedPrimaryKeyFieldValues(Object persistableObject)(Code) | | Parameters: persistableObject - object whose primary key field name,value pairs you want Parameters: bounded - - whether to restrict the number of rows returned a String representation of the primary key fields and values for the given persistableObject throws: IllegalArgumentException - if the given Object is null throws: ClassNotPersistableException - if the given object is of a type not described in the OJB repository |
getPrimaryKeyFieldValues | public Map getPrimaryKeyFieldValues(Object persistableObject)(Code) | | Parameters: persistableObject - object whose primary key field name,value pairs you want a Map containing the names and values of fields specified the given class which are designated as key fields in theOJB repository file throws: IllegalArgumentException - if the given Object is null throws: ClassNotPersistableException - if the given object is of a type not described in the OJB repository |
getPrimaryKeyFieldValues | public Map getPrimaryKeyFieldValues(Object persistableObject, boolean sortFieldNames)(Code) | | Parameters: persistableObject - object whose primary key field name,value pairs you want Parameters: sortFieldNames - if true, the returned Map will iterate through its entries sorted by fieldName a Map containing the names and values of fields specified the given class which are designated as key fields in theOJB repository file throws: IllegalArgumentException - if the given Object is null throws: ClassNotPersistableException - if the given object is of a type not described in the OJB repository |
linkObjects | public void linkObjects(Object persistableObject)(Code) | | Parameters: persistableObject - object whose objects need to have keys filled the object whose key fields have just been filled throws: IllegalArgumentException - if the given Object is null throws: ClassNotPersistableException - if the given object is of a type not described in the OJB repository |
loadRepositoryDescriptor | public void loadRepositoryDescriptor(String ojbRepositoryFilePath)(Code) | | |
refreshAllNonUpdatingReferences | public void refreshAllNonUpdatingReferences(PersistableBusinessObject bo)(Code) | | This method refreshes all reference objects to this main object that are 'non-updateable'. In general, this means that if a
reference object is configured to not be updated when the parent document is saved, then they are non-updated.
This will not refresh updateable objects, which can cause problems when you're creating new objects.
See PersistenceServiceImpl.isUpdateableReference() for the full logic.
Parameters: bo - - the businessObject to be refreshed |
retrieveNonKeyFields | public void retrieveNonKeyFields(Object persistableObject)(Code) | | Parameters: persistableObject - object whose objects need to be filled in based on primary keys the object whose key fields have just been retrieved throws: IllegalArgumentException - if the given Object is null throws: ClassNotPersistableException - if the given object is of a type not described in the OJB repository |
retrieveReferenceObject | public void retrieveReferenceObject(Object persistableObject, String referenceObjectName)(Code) | | Parameters: persistableObject - object whose specified reference object needs to be filled in based on primary keys Parameters: referenceObjectName - the name of the reference object that will be filled in based on primary key values throws: IllegalArgumentException - if the given Object is null throws: ClassNotPersistableException - if the given object is of a type not described in the OJB repository |
retrieveReferenceObjects | public void retrieveReferenceObjects(Object persistableObject, List referenceObjectNames)(Code) | | Parameters: persistableObject - object whose specified reference objects need to be filled in based on primary keys Parameters: referenceObjectNames - the names of the reference objects that will be filled in based on primary key values throws: IllegalArgumentException - if either of the given lists is null or empty, or if any of the referenceObjectNames isblank throws: ClassNotPersistableException - if the given object is of a type not described in the OJB repository |
retrieveReferenceObjects | public void retrieveReferenceObjects(List persistableObjects, List referenceObjectNames)(Code) | | Parameters: persistableObjects - objects whose specified reference objects need to be filled in based on primary keys Parameters: referenceObjectNames - the names of the reference objects that will be filled in based on primary key values throws: IllegalArgumentException - if either of the given lists is null or empty, or if any of the referenceObjectNames isblank throws: ClassNotPersistableException - if the given object is of a type not described in the OJB repository |
|
|