DataObjectService
@Deprecated public class PersistenceStructureServiceImpl 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 |
---|
PersistenceStructureServiceImpl()
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.
|
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 |
setPersistenceStructureServiceOjb(PersistenceStructureService persistenceStructureServiceOjb)
Deprecated.
|
getPrimaryKeyFieldValues, getPrimaryKeyFieldValues
getBusinessObjectAttributeClass, getClassDescriptor, getDescriptorRepository, isJpaEnabledForKradClass, listPrimaryKeyFieldNames
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBusinessObjectAttributeClass, listPrimaryKeyFieldNames
public static Map<Class,Class> referenceConversionMap
public PersistenceStructureServiceImpl()
public void setPersistenceStructureServiceOjb(PersistenceStructureService persistenceStructureServiceOjb)
public boolean isPersistable(Class clazz)
isPersistable
in interface PersistenceStructureService
org.kuali.rice.krad.service.PersistenceService#isPersistable(java.lang.Class)
public List getPrimaryKeys(Class clazz)
PersistenceStructureService
getPrimaryKeys
in interface PersistenceStructureService
clazz
- - 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 PersistenceStructureService
clazz
- 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 PersistenceStructureService
persistableObject
- 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 PersistenceStructureService
superclazz
- 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 PersistenceStructureService
attributeName
- 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 PersistenceStructureService
public String getForeignKeyFieldName(Class persistableObjectClass, String attributeName, String pkName)
getForeignKeyFieldName
in interface PersistenceStructureService
org.kuali.rice.krad.service.PersistenceService#getForeignKeyFieldName(java.lang.Object,
java.lang.String, java.lang.String)
public Map getReferencesForForeignKey(Class persistableObjectClass, String attributeName)
PersistenceStructureService
getReferencesForForeignKey
in interface PersistenceStructureService
org.kuali.rice.krad.service.PersistenceService#getReferencesForForeignKey(java.lang.Class,
java.lang.String)
public Map getForeignKeysForReference(Class clazz, String attributeName)
PersistenceStructureService
getForeignKeysForReference
in interface PersistenceStructureService
clazz
- - Class that contains the named referenceattributeName
- - Name of the member that is the reference you want foreign keys fororg.kuali.rice.krad.service.PersistenceService#getForeignKeysForReference(java.lang.Class, java.lang.String)
public Map<String,String> getInverseForeignKeysForCollection(Class boClass, String collectionName)
PersistenceStructureService
getInverseForeignKeysForCollection
in interface PersistenceStructureService
public Map getNestedForeignKeyMap(Class persistableObjectClass)
PersistenceStructureService
getNestedForeignKeyMap
in interface PersistenceStructureService
org.kuali.rice.krad.service.PersistenceService#getNestedForeignKeyMap(java.lang.Class)
public boolean hasPrimaryKeyFieldValues(Object persistableObject)
hasPrimaryKeyFieldValues
in interface PersistenceStructureService
org.kuali.rice.krad.service.PersistenceMetadataService#hasPrimaryKeyFieldValues(java.lang.Object)
public ForeignKeyFieldsPopulationState getForeignKeyFieldsPopulationState(PersistableBusinessObject bo, String referenceName)
PersistenceStructureService
getForeignKeyFieldsPopulationState
in interface PersistenceStructureService
bo
- - 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)
PersistenceStructureService
listReferenceObjectFields
in interface PersistenceStructureService
boClass
- 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 PersistenceStructureService
public Map<String,Class> listCollectionObjectTypes(PersistableBusinessObject bo)
listCollectionObjectTypes
in interface PersistenceStructureService
public Map<String,Class> listReferenceObjectFields(PersistableBusinessObject bo)
PersistenceStructureService
listReferenceObjectFields
in interface PersistenceStructureService
bo
- 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 PersistenceStructureService
public boolean isCollectionUpdatable(Class boClass, String collectionName)
isCollectionUpdatable
in interface PersistenceStructureService
public boolean hasCollection(Class boClass, String collectionName)
PersistenceStructureService
hasCollection
in interface PersistenceStructureService
public boolean hasReference(Class boClass, String referenceName)
PersistenceStructureService
hasReference
in interface PersistenceStructureService
public String getTableName(Class<? extends PersistableBusinessObject> boClass)
getTableName
in interface PersistenceStructureService
PersistenceStructureService.getTableName(java.lang.Class)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.