public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.store(entity); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.store(entity); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.store(entity); return null; } });
/** * @see org.kuali.kfs.module.ld.dataaccess.LaborDao#insert(org.kuali.rice.kns.bo.BusinessObject) */ public void insert(BusinessObject businessObject) { getPersistenceBroker(true).store(businessObject, ObjectModification.INSERT); } }
public void save(BusinessObject businessObject, boolean isUpdate) { getPersistenceBroker(true).store(businessObject, isUpdate ? ObjectModification.UPDATE : ObjectModification.INSERT); }
broker.store(tmpObj); } else { logger.error("Attempt to store non-Persistable object instance from RDBMS!");
if (objectToPersist instanceof Persistable) { beginTransaction(); broker.store(objectToPersist); commitTransaction(); } else {
getPersistenceBroker(true).store(objectToCopy, ObjectModification.INSERT); rowsWritten = rowsWritten + 1;
sfr.setAccountNumberFinancialObjectCode(originalObjLevel.getFinancialConsolidationObjectCode()); if (boService.retrieve(sfr) == null) { persistenceBroker.store(sfr); sfr.setAccountNumberFinancialObjectCode(getFinancialConsolidationObjectCode()); if (boService.retrieve(sfr) == null) { persistenceBroker.store(sfr);
sfr.setAccountNumberFinancialObjectCode(originalObjectCode.getFinancialObjectLevelCode()); if (boService.retrieve(sfr) == null) { persistenceBroker.store(sfr); sfr.setAccountNumberFinancialObjectCode(getFinancialObjectLevelCode()); if (boService.retrieve(sfr) == null) { persistenceBroker.store(sfr);
@Override public void beforeUpdate(PersistenceBroker persistenceBroker) throws PersistenceBrokerException { super.beforeUpdate(persistenceBroker); try { // KULCOA-549: update the sufficient funds table // get the current data from the database BusinessObjectService boService = SpringContext.getBean(BusinessObjectService.class); Account originalAcct = (Account) boService.retrieve(this); if (originalAcct != null) { if (!originalAcct.getSufficientFundsCode().equals(getSufficientFundsCode()) || originalAcct.isExtrnlFinEncumSufficntFndIndicator() != isExtrnlFinEncumSufficntFndIndicator() || originalAcct.isIntrnlFinEncumSufficntFndIndicator() != isIntrnlFinEncumSufficntFndIndicator() || originalAcct.isPendingAcctSufficientFundsIndicator() != isPendingAcctSufficientFundsIndicator() || originalAcct.isFinPreencumSufficientFundIndicator() != isFinPreencumSufficientFundIndicator()) { SufficientFundRebuild sfr = new SufficientFundRebuild(); sfr.setAccountFinancialObjectTypeCode(SufficientFundRebuild.REBUILD_ACCOUNT); sfr.setChartOfAccountsCode(getChartOfAccountsCode()); sfr.setAccountNumberFinancialObjectCode(getAccountNumber()); if (boService.retrieve(sfr) == null) { persistenceBroker.store(sfr); } } } } catch (Exception ex) { LOG.error("Problem updating sufficient funds rebuild table: ", ex); } }