|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.atlassian.jira.project.ProjectCache
This is a very basic cache that stores projects, versions and components When constructed, or when you call refresh() - it will find and cache all projects, components and versions
Constructor Summary | |
protected |
ProjectCache()
Create a new project cache. |
protected |
ProjectCache(boolean refresh)
For testing purposes, we may not want to load the cache at the start. |
Method Summary | |
static ProjectCache |
getCache()
|
org.ofbiz.core.entity.GenericValue |
getComponent(java.lang.Long id)
|
java.util.Collection |
getComponents(org.ofbiz.core.entity.GenericValue project)
|
org.ofbiz.core.entity.GenericValue |
getProject(java.lang.Long id)
|
org.ofbiz.core.entity.GenericValue |
getProjectByKey(java.lang.String key)
|
org.ofbiz.core.entity.GenericValue |
getProjectByName(java.lang.String name)
|
java.util.Collection |
getProjectCategories()
|
org.ofbiz.core.entity.GenericValue |
getProjectCategory(java.lang.Long id)
|
org.ofbiz.core.entity.GenericValue |
getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project1)
|
java.util.Collection |
getProjects()
|
java.util.Collection |
getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
|
org.ofbiz.core.entity.GenericValue |
getVersion(java.lang.Long id)
|
java.util.Collection |
getVersions(org.ofbiz.core.entity.GenericValue project)
|
java.util.Collection |
getVersionsArchived(org.ofbiz.core.entity.GenericValue project)
|
java.util.Collection |
getVersionsReleased(org.ofbiz.core.entity.GenericValue project,
boolean includeArchived)
|
java.util.Collection |
getVersionsUnarchived(org.ofbiz.core.entity.GenericValue project)
|
java.util.Collection |
getVersionsUnreleased(org.ofbiz.core.entity.GenericValue project,
boolean includeArchived)
|
void |
refresh()
|
void |
refresh(org.ofbiz.core.entity.GenericValue project)
Refresh a single project - called when a single project has been updated (ie counter incremented) but you don't want to refresh the whole cache IMPACT: 3 SQL statements (1 + 2) |
protected void |
refreshProject(org.ofbiz.core.entity.GenericValue project)
Get all the components and versions for a project - only called internally IMPACT: Should perform only 2 SQL select statements |
protected void |
refreshProjectCategories()
|
protected void |
refreshProjectCategoriesToProjects()
|
protected void |
refreshProjectToProjectCategories()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ProjectCache()
protected ProjectCache(boolean refresh)
It is recommended that you use ProjectCache()
instead.
refresh
- Method Detail |
public static ProjectCache getCache()
public void refresh()
public void refresh(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
protected void refreshProjectCategories() throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
protected void refreshProject(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue getProject(java.lang.Long id)
public org.ofbiz.core.entity.GenericValue getComponent(java.lang.Long id)
public org.ofbiz.core.entity.GenericValue getVersion(java.lang.Long id)
public org.ofbiz.core.entity.GenericValue getProjectByName(java.lang.String name)
public org.ofbiz.core.entity.GenericValue getProjectByKey(java.lang.String key)
public java.util.Collection getComponents(org.ofbiz.core.entity.GenericValue project)
public java.util.Collection getVersions(org.ofbiz.core.entity.GenericValue project)
public java.util.Collection getVersionsReleased(org.ofbiz.core.entity.GenericValue project, boolean includeArchived)
public java.util.Collection getVersionsUnreleased(org.ofbiz.core.entity.GenericValue project, boolean includeArchived)
public java.util.Collection getVersionsArchived(org.ofbiz.core.entity.GenericValue project)
public java.util.Collection getVersionsUnarchived(org.ofbiz.core.entity.GenericValue project)
public java.util.Collection getProjects()
public java.util.Collection getProjectCategories()
public org.ofbiz.core.entity.GenericValue getProjectCategory(java.lang.Long id)
protected void refreshProjectCategoriesToProjects()
public java.util.Collection getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
protected void refreshProjectToProjectCategories()
public org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project1)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |