public class AccountPersistenceStructureServiceImpl extends org.kuali.rice.krad.service.impl.PersistenceStructureServiceImpl implements AccountPersistenceStructureService, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description | 
|---|---|
| protected List<AccountReferencePersistenceExemption> | accountReferencePersistenceExemptions | 
| protected Map<Class<?>,List<AccountReferencePersistenceExemption>> | accountReferencePersistenceExemptionsMap | 
| Constructor and Description | 
|---|
| AccountPersistenceStructureServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet()Implemented to build the AccountReferencePersistenceExemptionsMap from the AccoutnReferencePersistenceExemptions List after intialization | 
| String | getAccountNumberName(org.kuali.rice.krad.bo.PersistableBusinessObject bo,
                                        String chartOfAccountsCodeName)Gets the name of the accountNumber field as one foreign key, paired with the specified chartOfAccountsCode field 
 as the other, of the reference account (or other account-involved BO) contained within the specified parent object. | 
| String | getChartOfAccountsCodeName(org.kuali.rice.krad.bo.PersistableBusinessObject bo,
                                                    String accountNumberName)Gets the name of the chartOfAccountsCode field as one foreign key, paired with the specified accountNumber field 
 as the other, of the reference account (or other account-involved BO) contained within the specified parent object. | 
| boolean | isAccountRelatedClass(Class clazz)Decides if the specified class is an account related class, i.e. | 
| boolean | isExemptedFromAccountsCannotCrossChartsRules(Class<?> relationshipOwningClass,
                                                                                        String chartOfAccountsCodePropertyName,
                                                                                        String accountNumberPropertyName)Determines if the relationship to an Account or Account-like business object, with keys of chartOfAccountsCodePropertyName and accountNumberPropertyName,
 is exempted from accounts cannot cross charts roles | 
| Map<String,String> | listAccountNumberChartCodePairs(org.kuali.rice.krad.bo.PersistableBusinessObject bo)Determines the list of accountNumber-chartOfAccountsCode pairs as (part of) the foreign keys of the reference accounts 
 (or other account-involved BOs) contained within the specified parent object. | 
| Set<String> | listAccountNumberNames(org.kuali.rice.krad.bo.PersistableBusinessObject bo)Determines the list of accountNumber fields as one of the foreign keys of the reference accounts 
 (or other account-involved BOs) contained within the specified parent object. | 
| Map<String,String> | listChartCodeAccountNumberPairs(org.kuali.rice.krad.bo.PersistableBusinessObject bo)Determines the list of chartOfAccountsCode-accountNumber pairs as (part of) the foreign keys of the reference accounts 
 (or other account-involved BOs) contained within the specified parent object. | 
| Set<String> | listChartOfAccountsCodeNames(org.kuali.rice.krad.bo.PersistableBusinessObject bo)Determines the list of chartOfAccountsCode fields as one of the foreign keys of the reference accounts 
 (or other account-involved BOs) contained within the specified parent object. | 
| Map<String,Class> | listCollectionAccountFields(org.kuali.rice.krad.bo.PersistableBusinessObject bo)Determines the list of collection accounts (or other account-involved BOs) contained within the specified parent object. | 
| Set<String> | listCollectionChartOfAccountsCodeNames(org.kuali.rice.krad.bo.PersistableBusinessObject bo)Determines the list of chartOfAccountsCode fields as one of the primary keys in the collection accounts 
 (or other account-involved BOs) contained within the specified parent object. | 
| Map<String,Class> | listReferenceAccountFields(org.kuali.rice.krad.bo.PersistableBusinessObject bo)Determines the list of reference accounts (or other account-involved BOs) contained within the specified parent object. | 
| Map<String,Class> | listReferenceObjectFields(org.kuali.rice.krad.bo.PersistableBusinessObject bo)Need to stop this method from running for objects which are not bound into the ORM layer (OJB),
 for ex. | 
| void | setAccountReferencePersistenceExemptions(List<AccountReferencePersistenceExemption> accountReferencePersistenceExemptions)Sets the list of classes and relationships which are exempted from the accounts can't cross charts rules | 
| void | setMaintenanceDocumentDictionaryService(org.kuali.rice.kns.service.MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService) | 
clearPrimaryKeyFields, getForeignKeyFieldName, getForeignKeyFieldsPopulationState, getForeignKeysForReference, getInverseForeignKeysForCollection, getNestedForeignKeyMap, getPrimaryKeys, getReferencesForForeignKey, getRelationshipMetadata, getRelationshipMetadata, getTableName, hasCollection, hasPrimaryKeyFieldValues, hasReference, isCollectionUpdatable, isPersistable, isReferenceUpdatable, listCollectionObjectTypes, listCollectionObjectTypes, listFieldNames, listPersistableSubclasses, listReferenceObjectFields, setPersistenceStructureServiceJpa, setPersistenceStructureServiceOjbgetPrimaryKeyFieldValues, getPrimaryKeyFieldValuesgetBusinessObjectAttributeClass, getClassDescriptor, getDescriptorRepository, isJpaEnabledForKradClass, listPrimaryKeyFieldNamesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearPrimaryKeyFields, getBusinessObjectAttributeClass, getForeignKeyFieldName, getForeignKeyFieldsPopulationState, getForeignKeysForReference, getInverseForeignKeysForCollection, getNestedForeignKeyMap, getPrimaryKeys, getReferencesForForeignKey, getRelationshipMetadata, getRelationshipMetadata, getTableName, hasCollection, hasPrimaryKeyFieldValues, hasReference, isCollectionUpdatable, isPersistable, isReferenceUpdatable, listCollectionObjectTypes, listCollectionObjectTypes, listFieldNames, listPersistableSubclasses, listPrimaryKeyFieldNames, listReferenceObjectFieldsprotected List<AccountReferencePersistenceExemption> accountReferencePersistenceExemptions
protected Map<Class<?>,List<AccountReferencePersistenceExemption>> accountReferencePersistenceExemptionsMap
public AccountPersistenceStructureServiceImpl()
public boolean isAccountRelatedClass(Class clazz)
AccountPersistenceStructureServiceisAccountRelatedClass in interface AccountPersistenceStructureServiceclazz - the specified classpublic void setMaintenanceDocumentDictionaryService(org.kuali.rice.kns.service.MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService)
public Map<String,Class> listCollectionAccountFields(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
AccountPersistenceStructureServicelistCollectionAccountFields in interface AccountPersistenceStructureServicebo - BusinessObject (or subclass) instance that would like to be analyzed for collection accounts.public Set<String> listCollectionChartOfAccountsCodeNames(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
AccountPersistenceStructureServicelistCollectionChartOfAccountsCodeNames in interface AccountPersistenceStructureServicebo - BusinessObject (or subclass) instance that would like to be analyzed for collection accounts.public Map<String,Class> listReferenceAccountFields(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
AccountPersistenceStructureServicelistReferenceAccountFields in interface AccountPersistenceStructureServicebo - BusinessObject (or subclass) instance that would like to be analyzed for reference accounts.public Map<String,String> listChartCodeAccountNumberPairs(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
AccountPersistenceStructureServicelistChartCodeAccountNumberPairs in interface AccountPersistenceStructureServicebo - BusinessObject (or subclass) instance that would like to be analyzed for reference accounts.public Map<String,String> listAccountNumberChartCodePairs(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
AccountPersistenceStructureServicelistAccountNumberChartCodePairs in interface AccountPersistenceStructureServicebo - BusinessObject (or subclass) instance that would like to be analyzed for reference accounts.public Set<String> listChartOfAccountsCodeNames(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
AccountPersistenceStructureServicelistChartOfAccountsCodeNames in interface AccountPersistenceStructureServicebo - BusinessObject (or subclass) instance that would like to be analyzed for reference accounts.public Set<String> listAccountNumberNames(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
AccountPersistenceStructureServicelistAccountNumberNames in interface AccountPersistenceStructureServicebo - BusinessObject (or subclass) instance that would like to be analyzed for reference accounts.public String getChartOfAccountsCodeName(org.kuali.rice.krad.bo.PersistableBusinessObject bo, String accountNumberName)
AccountPersistenceStructureServicegetChartOfAccountsCodeName in interface AccountPersistenceStructureServicebo - BusinessObject (or subclass) instance that would like to be analyzed for reference accounts.accountNumberName - the name of the foreign key corresponding to the primary key accountNumber of the reference account.public String getAccountNumberName(org.kuali.rice.krad.bo.PersistableBusinessObject bo, String chartOfAccountsCodeName)
AccountPersistenceStructureServicegetAccountNumberName in interface AccountPersistenceStructureServicebo - BusinessObject (or subclass) instance that would like to be analyzed for reference accounts.chartOfAccountsCodeName - the name of the foreign key corresponding to the primary key chartOfAccountsCode of the reference account.public Map<String,Class> listReferenceObjectFields(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
listReferenceObjectFields in interface org.kuali.rice.krad.service.PersistenceStructureServicelistReferenceObjectFields in class org.kuali.rice.krad.service.impl.PersistenceStructureServiceImplPersistenceStructureServiceImpl.listReferenceObjectFields(org.kuali.rice.krad.bo.PersistableBusinessObject)public boolean isExemptedFromAccountsCannotCrossChartsRules(Class<?> relationshipOwningClass, String chartOfAccountsCodePropertyName, String accountNumberPropertyName)
relationshipOwningClass - the business object which possibly has an exempted relationship to AccountchartOfAccountsCodePropertyName - the property name of the relationshipOwningClass which represents the chart of accounts code part of the foreign keyaccountNumberPropertyName - the property name of the relationshipOwningClass which represents the account number part of the foreign keypublic void setAccountReferencePersistenceExemptions(List<AccountReferencePersistenceExemption> accountReferencePersistenceExemptions)
accountReferencePersistenceExemptions - the list of classes and relationships which are exempted from the accounts can't cross charts rulespublic void afterPropertiesSet() throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException - well, we're not going to throw an exceptionCopyright © 2004–2015 The Kuali Foundation. All rights reserved.