Code example for ObjectRetrievalFailureException

0
            getSqlMapClientTemplate().update(iBatisDaoUtils.getUpdateQuery(className), object); 
        } 
 
        // check for null id 
        if (iBatisDaoUtils.getPrimaryKeyValue(object) == null) { 
            throw new ObjectRetrievalFailureException(className, object); 
        } else { 
            return object; 
        } 
    } 
 
    /** 
     * {@inheritDoc} 
     */ 
    public void remove(PK id) { 
        getSqlMapClientTemplate().update( 
                iBatisDaoUtils.getDeleteQuery(ClassUtils.getShortName(this.persistentClass)), id); 
    } 
}