Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Business objects are java classes that implement the org.kuali.ricekfs.kns.bo.BusinessObject interface. However, a majority of business objects extend org.kuali.ricekfs.kns.bo.PersistableBusinessObjectBase, which implements org.kuali.ricekfs.kns.bo.PersistableBusinessObject and org.kuali.ricekfs.kns.bo.BusinessObject.

Tip

BOs extending org.kuali.ricekfs.kns.bo.PersistableBusinessObjectBase inherit getters and setters for the object ID  and version number columns, so there is no need to implement them in subclasses.

...

Objects that extend org.kuali.ricekfs.kns.bo.BusinessObjectBase must also implement the toStringMapper method, which returns a map of the BO's fields to be used in toString.

Tip

The reader should consult the org.kuali.ricekfs.kns.bo.PersistableBusinessObjectinterface to determine whether there are additional methods that should be implemented/overridden. The interface defines numerous methods that customize the behavior of the business object upon persistence and retrieval of the business object, and how reference objects of the business object are refreshed, as well as other methods.

...

Code Block
typejava
package org.kuali.kfs.coa.dataaccess.jdbc;

import org.kuali.kfs.coa.dataaccess.AccountDao;
import org.kuali.ricekfs.kns.dao.jdbc.PlatformAwareDaoBaseJdbc;

public class AccountDaoJdbc extends PlatformAwareDaoBaseJdbc implements AccountDao{

    public void updateAllAccountFiscalOfficers(String userId} {
        getSimpleJdbcTemplate().update("update CA_ACCOUNT_T set ACCT_FSC_OFC_UID = ?", userId);
    }
}

...