public static void putResult( FinderPath finderPath, Object[] args, Object result, boolean quiet) { _finderCache.putResult(finderPath, args, result, quiet); }
public static void putResult( FinderPath finderPath, Object[] args, Object result) { _finderCache.putResult(finderPath, args, result); }
protected void cacheUniqueFindersCache( DDMStorageLinkModelImpl ddmStorageLinkModelImpl) { Object[] args = new Object[] { ddmStorageLinkModelImpl.getClassPK() }; finderCache.putResult(_finderPathCountByClassPK, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByClassPK, args, ddmStorageLinkModelImpl, false); }
protected void cacheUniqueFindersCache( DDMFormInstanceRecordModelImpl ddmFormInstanceRecordModelImpl) { Object[] args = new Object[] { ddmFormInstanceRecordModelImpl.getUuid(), ddmFormInstanceRecordModelImpl.getGroupId() }; finderCache.putResult(_finderPathCountByUUID_G, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByUUID_G, args, ddmFormInstanceRecordModelImpl, false); }
protected void cacheUniqueFindersCache( DDMStructureVersionModelImpl ddmStructureVersionModelImpl) { Object[] args = new Object[] { ddmStructureVersionModelImpl.getStructureId(), ddmStructureVersionModelImpl.getVersion() }; finderCache.putResult(_finderPathCountByS_V, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByS_V, args, ddmStructureVersionModelImpl, false); }
protected void cacheUniqueFindersCache( DDMFormInstanceModelImpl ddmFormInstanceModelImpl) { Object[] args = new Object[] { ddmFormInstanceModelImpl.getUuid(), ddmFormInstanceModelImpl.getGroupId() }; finderCache.putResult(_finderPathCountByUUID_G, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByUUID_G, args, ddmFormInstanceModelImpl, false); }
protected void cacheUniqueFindersCache( JournalArticleLocalizationModelImpl journalArticleLocalizationModelImpl) { Object[] args = new Object[] { journalArticleLocalizationModelImpl.getArticlePK(), journalArticleLocalizationModelImpl.getLanguageId() }; finderCache.putResult(_finderPathCountByA_L, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByA_L, args, journalArticleLocalizationModelImpl, false); }
protected void cacheUniqueFindersCache( DDMFormInstanceRecordVersionModelImpl ddmFormInstanceRecordVersionModelImpl) { Object[] args = new Object[] { ddmFormInstanceRecordVersionModelImpl.getFormInstanceRecordId(), ddmFormInstanceRecordVersionModelImpl.getVersion() }; finderCache.putResult(_finderPathCountByF_V, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByF_V, args, ddmFormInstanceRecordVersionModelImpl, false); }
protected void cacheUniqueFindersCache( DDMDataProviderInstanceModelImpl ddmDataProviderInstanceModelImpl) { Object[] args = new Object[] { ddmDataProviderInstanceModelImpl.getUuid(), ddmDataProviderInstanceModelImpl.getGroupId() }; finderCache.putResult(_finderPathCountByUUID_G, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByUUID_G, args, ddmDataProviderInstanceModelImpl, false); }
protected void cacheUniqueFindersCache( DDMFormInstanceVersionModelImpl ddmFormInstanceVersionModelImpl) { Object[] args = new Object[] { ddmFormInstanceVersionModelImpl.getFormInstanceId(), ddmFormInstanceVersionModelImpl.getVersion() }; finderCache.putResult(_finderPathCountByF_V, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByF_V, args, ddmFormInstanceVersionModelImpl, false); }
protected void cacheUniqueFindersCache( DDMTemplateLinkModelImpl ddmTemplateLinkModelImpl) { Object[] args = new Object[] { ddmTemplateLinkModelImpl.getClassNameId(), ddmTemplateLinkModelImpl.getClassPK() }; finderCache.putResult(_finderPathCountByC_C, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByC_C, args, ddmTemplateLinkModelImpl, false); }
protected void cacheUniqueFindersCache( DDMTemplateVersionModelImpl ddmTemplateVersionModelImpl) { Object[] args = new Object[] { ddmTemplateVersionModelImpl.getTemplateId(), ddmTemplateVersionModelImpl.getVersion() }; finderCache.putResult(_finderPathCountByT_V, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByT_V, args, ddmTemplateVersionModelImpl, false); }
protected void cacheUniqueFindersCache( DDMDataProviderInstanceLinkModelImpl ddmDataProviderInstanceLinkModelImpl) { Object[] args = new Object[] { ddmDataProviderInstanceLinkModelImpl.getDataProviderInstanceId(), ddmDataProviderInstanceLinkModelImpl.getStructureId() }; finderCache.putResult(_finderPathCountByD_S, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByD_S, args, ddmDataProviderInstanceLinkModelImpl, false); }
protected void cacheUniqueFindersCache( DDMContentModelImpl ddmContentModelImpl) { Object[] args = new Object[] { ddmContentModelImpl.getUuid(), ddmContentModelImpl.getGroupId() }; finderCache.putResult(_finderPathCountByUUID_G, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByUUID_G, args, ddmContentModelImpl, false); }
public static void putResult( FinderPath finderPath, Object[] args, Object result) { getFinderCache().putResult(finderPath, args, result); }
protected void cacheUniqueFindersCache( DDMStructureLinkModelImpl ddmStructureLinkModelImpl) { Object[] args = new Object[] { ddmStructureLinkModelImpl.getClassNameId(), ddmStructureLinkModelImpl.getClassPK(), ddmStructureLinkModelImpl.getStructureId() }; finderCache.putResult(_finderPathCountByC_C_S, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByC_C_S, args, ddmStructureLinkModelImpl, false); }
protected void cacheUniqueFindersCache( JournalContentSearchModelImpl journalContentSearchModelImpl) { Object[] args = new Object[] { journalContentSearchModelImpl.getGroupId(), journalContentSearchModelImpl.isPrivateLayout(), journalContentSearchModelImpl.getLayoutId(), journalContentSearchModelImpl.getPortletId(), journalContentSearchModelImpl.getArticleId() }; finderCache.putResult(_finderPathCountByG_P_L_P_A, args, Long.valueOf(1), false); finderCache.putResult(_finderPathFetchByG_P_L_P_A, args, journalContentSearchModelImpl, false); }
/** * 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 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(); }