public static void putResult( boolean entityCacheEnabled, Class<?> clazz, Serializable primaryKey, Serializable result, boolean quiet) { _entityCache.putResult( entityCacheEnabled, clazz, primaryKey, result, quiet); }
public static void putResult( boolean entityCacheEnabled, Class<?> classObj, Serializable primaryKeyObj, Object result) { getEntityCache().putResult( entityCacheEnabled, classObj, primaryKeyObj, result); }
/** * Caches the club in the entity cache if it is enabled. * * @param club the club */ @Override public void cacheResult(Club club) { entityCache.putResult(ClubModelImpl.ENTITY_CACHE_ENABLED, ClubImpl.class, club.getPrimaryKey(), club); club.resetOriginalValues(); }
/** * Caches the roster in the entity cache if it is enabled. * * @param roster the roster */ @Override public void cacheResult(Roster roster) { entityCache.putResult(RosterModelImpl.ENTITY_CACHE_ENABLED, RosterImpl.class, roster.getPrimaryKey(), roster); roster.resetOriginalValues(); }
/** * Caches the roster member in the entity cache if it is enabled. * * @param rosterMember the roster member */ @Override public void cacheResult(RosterMember rosterMember) { entityCache.putResult(RosterMemberModelImpl.ENTITY_CACHE_ENABLED, RosterMemberImpl.class, rosterMember.getPrimaryKey(), rosterMember); rosterMember.resetOriginalValues(); }
/** * Caches the ddm storage link in the entity cache if it is enabled. * * @param ddmStorageLink the ddm storage link */ @Override public void cacheResult(DDMStorageLink ddmStorageLink) { entityCache.putResult(DDMStorageLinkModelImpl.ENTITY_CACHE_ENABLED, DDMStorageLinkImpl.class, ddmStorageLink.getPrimaryKey(), ddmStorageLink); finderCache.putResult(_finderPathFetchByClassPK, new Object[] { ddmStorageLink.getClassPK() }, ddmStorageLink); ddmStorageLink.resetOriginalValues(); }
/** * Caches the ddm content in the entity cache if it is enabled. * * @param ddmContent the ddm content */ @Override public void cacheResult(DDMContent ddmContent) { entityCache.putResult(DDMContentModelImpl.ENTITY_CACHE_ENABLED, DDMContentImpl.class, ddmContent.getPrimaryKey(), ddmContent); finderCache.putResult(_finderPathFetchByUUID_G, new Object[] { ddmContent.getUuid(), ddmContent.getGroupId() }, ddmContent); ddmContent.resetOriginalValues(); }
/** * Caches the ddm form instance in the entity cache if it is enabled. * * @param ddmFormInstance the ddm form instance */ @Override public void cacheResult(DDMFormInstance ddmFormInstance) { entityCache.putResult(DDMFormInstanceModelImpl.ENTITY_CACHE_ENABLED, DDMFormInstanceImpl.class, ddmFormInstance.getPrimaryKey(), ddmFormInstance); finderCache.putResult(_finderPathFetchByUUID_G, new Object[] { ddmFormInstance.getUuid(), ddmFormInstance.getGroupId() }, ddmFormInstance); ddmFormInstance.resetOriginalValues(); }
/** * Caches the ddm data provider instance in the entity cache if it is enabled. * * @param ddmDataProviderInstance the ddm data provider instance */ @Override public void cacheResult(DDMDataProviderInstance ddmDataProviderInstance) { entityCache.putResult(DDMDataProviderInstanceModelImpl.ENTITY_CACHE_ENABLED, DDMDataProviderInstanceImpl.class, ddmDataProviderInstance.getPrimaryKey(), ddmDataProviderInstance); finderCache.putResult(_finderPathFetchByUUID_G, new Object[] { ddmDataProviderInstance.getUuid(), ddmDataProviderInstance.getGroupId() }, ddmDataProviderInstance); ddmDataProviderInstance.resetOriginalValues(); }
/** * Caches the ddm form instance version in the entity cache if it is enabled. * * @param ddmFormInstanceVersion the ddm form instance version */ @Override public void cacheResult(DDMFormInstanceVersion ddmFormInstanceVersion) { entityCache.putResult(DDMFormInstanceVersionModelImpl.ENTITY_CACHE_ENABLED, DDMFormInstanceVersionImpl.class, ddmFormInstanceVersion.getPrimaryKey(), ddmFormInstanceVersion); finderCache.putResult(_finderPathFetchByF_V, new Object[] { ddmFormInstanceVersion.getFormInstanceId(), ddmFormInstanceVersion.getVersion() }, ddmFormInstanceVersion); ddmFormInstanceVersion.resetOriginalValues(); }
/** * Caches the ddm template version in the entity cache if it is enabled. * * @param ddmTemplateVersion the ddm template version */ @Override public void cacheResult(DDMTemplateVersion ddmTemplateVersion) { entityCache.putResult(DDMTemplateVersionModelImpl.ENTITY_CACHE_ENABLED, DDMTemplateVersionImpl.class, ddmTemplateVersion.getPrimaryKey(), ddmTemplateVersion); finderCache.putResult(_finderPathFetchByT_V, new Object[] { ddmTemplateVersion.getTemplateId(), ddmTemplateVersion.getVersion() }, ddmTemplateVersion); ddmTemplateVersion.resetOriginalValues(); }
/** * Caches the ddm template link in the entity cache if it is enabled. * * @param ddmTemplateLink the ddm template link */ @Override public void cacheResult(DDMTemplateLink ddmTemplateLink) { entityCache.putResult(DDMTemplateLinkModelImpl.ENTITY_CACHE_ENABLED, DDMTemplateLinkImpl.class, ddmTemplateLink.getPrimaryKey(), ddmTemplateLink); finderCache.putResult(_finderPathFetchByC_C, new Object[] { ddmTemplateLink.getClassNameId(), ddmTemplateLink.getClassPK() }, ddmTemplateLink); ddmTemplateLink.resetOriginalValues(); }
/** * Caches the ddm structure version in the entity cache if it is enabled. * * @param ddmStructureVersion the ddm structure version */ @Override public void cacheResult(DDMStructureVersion ddmStructureVersion) { entityCache.putResult(DDMStructureVersionModelImpl.ENTITY_CACHE_ENABLED, DDMStructureVersionImpl.class, ddmStructureVersion.getPrimaryKey(), ddmStructureVersion); finderCache.putResult(_finderPathFetchByS_V, new Object[] { ddmStructureVersion.getStructureId(), ddmStructureVersion.getVersion() }, ddmStructureVersion); ddmStructureVersion.resetOriginalValues(); }
/** * Caches the ddm form instance record in the entity cache if it is enabled. * * @param ddmFormInstanceRecord the ddm form instance record */ @Override public void cacheResult(DDMFormInstanceRecord ddmFormInstanceRecord) { entityCache.putResult(DDMFormInstanceRecordModelImpl.ENTITY_CACHE_ENABLED, DDMFormInstanceRecordImpl.class, ddmFormInstanceRecord.getPrimaryKey(), ddmFormInstanceRecord); finderCache.putResult(_finderPathFetchByUUID_G, new Object[] { ddmFormInstanceRecord.getUuid(), ddmFormInstanceRecord.getGroupId() }, ddmFormInstanceRecord); ddmFormInstanceRecord.resetOriginalValues(); }
/** * Caches the journal article localization in the entity cache if it is enabled. * * @param journalArticleLocalization the journal article localization */ @Override public void cacheResult( JournalArticleLocalization journalArticleLocalization) { entityCache.putResult(JournalArticleLocalizationModelImpl.ENTITY_CACHE_ENABLED, JournalArticleLocalizationImpl.class, journalArticleLocalization.getPrimaryKey(), journalArticleLocalization); finderCache.putResult(_finderPathFetchByA_L, new Object[] { journalArticleLocalization.getArticlePK(), journalArticleLocalization.getLanguageId() }, journalArticleLocalization); journalArticleLocalization.resetOriginalValues(); }
/** * Caches the ddm data provider instance link in the entity cache if it is enabled. * * @param ddmDataProviderInstanceLink the ddm data provider instance link */ @Override public void cacheResult( DDMDataProviderInstanceLink ddmDataProviderInstanceLink) { entityCache.putResult(DDMDataProviderInstanceLinkModelImpl.ENTITY_CACHE_ENABLED, DDMDataProviderInstanceLinkImpl.class, ddmDataProviderInstanceLink.getPrimaryKey(), ddmDataProviderInstanceLink); finderCache.putResult(_finderPathFetchByD_S, new Object[] { ddmDataProviderInstanceLink.getDataProviderInstanceId(), ddmDataProviderInstanceLink.getStructureId() }, ddmDataProviderInstanceLink); ddmDataProviderInstanceLink.resetOriginalValues(); }
/** * Caches the ddm form instance record version in the entity cache if it is enabled. * * @param ddmFormInstanceRecordVersion the ddm form instance record version */ @Override public void cacheResult( DDMFormInstanceRecordVersion ddmFormInstanceRecordVersion) { entityCache.putResult(DDMFormInstanceRecordVersionModelImpl.ENTITY_CACHE_ENABLED, DDMFormInstanceRecordVersionImpl.class, ddmFormInstanceRecordVersion.getPrimaryKey(), ddmFormInstanceRecordVersion); finderCache.putResult(_finderPathFetchByF_V, new Object[] { ddmFormInstanceRecordVersion.getFormInstanceRecordId(), ddmFormInstanceRecordVersion.getVersion() }, ddmFormInstanceRecordVersion); ddmFormInstanceRecordVersion.resetOriginalValues(); }
/** * Caches the ddm structure link in the entity cache if it is enabled. * * @param ddmStructureLink the ddm structure link */ @Override public void cacheResult(DDMStructureLink ddmStructureLink) { entityCache.putResult(DDMStructureLinkModelImpl.ENTITY_CACHE_ENABLED, DDMStructureLinkImpl.class, ddmStructureLink.getPrimaryKey(), ddmStructureLink); finderCache.putResult(_finderPathFetchByC_C_S, new Object[] { ddmStructureLink.getClassNameId(), ddmStructureLink.getClassPK(), ddmStructureLink.getStructureId() }, ddmStructureLink); ddmStructureLink.resetOriginalValues(); }
/** * Caches the journal feed in the entity cache if it is enabled. * * @param journalFeed the journal feed */ @Override public void cacheResult(JournalFeed journalFeed) { entityCache.putResult(JournalFeedModelImpl.ENTITY_CACHE_ENABLED, JournalFeedImpl.class, journalFeed.getPrimaryKey(), journalFeed); finderCache.putResult(_finderPathFetchByUUID_G, new Object[] { journalFeed.getUuid(), journalFeed.getGroupId() }, journalFeed); finderCache.putResult(_finderPathFetchByG_F, new Object[] { journalFeed.getGroupId(), journalFeed.getFeedId() }, journalFeed); journalFeed.resetOriginalValues(); }
/** * Caches the journal content search in the entity cache if it is enabled. * * @param journalContentSearch the journal content search */ @Override public void cacheResult(JournalContentSearch journalContentSearch) { entityCache.putResult(JournalContentSearchModelImpl.ENTITY_CACHE_ENABLED, JournalContentSearchImpl.class, journalContentSearch.getPrimaryKey(), journalContentSearch); finderCache.putResult(_finderPathFetchByG_P_L_P_A, new Object[] { journalContentSearch.getGroupId(), journalContentSearch.isPrivateLayout(), journalContentSearch.getLayoutId(), journalContentSearch.getPortletId(), journalContentSearch.getArticleId() }, journalContentSearch); journalContentSearch.resetOriginalValues(); }