SLIDE 16 ERXEnterpriseObjectCache Usage
ERXEnterpriseObjectCache cache = new ERXEnterpriseObjectCache( entityName, keyPath, restrictingQualifier, timeout, shouldRetainObjects, shouldFetchInitialValues, shouldReturnUnsavedObjects); ERXEnterpriseObjectCache cache = new ERXEnterpriseObjectCache( “BranchOffice”, branchCode, null, 0, true, true, true); public static BranchOffice branchWithCode(EOEditingContext ec, Long id){ return (BranchOffice)officeCache().objectForKey(ec, id); } BranchOffice montrealBranch = BranchOffice.branchWithCode(ec, “MTL”);