|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.project.ProjectCache
public class ProjectCache
This is a very basic cache that stores projects and components
When constructed, or when you call refresh() - it will find and cache all projects, components
Constructor Summary | |
---|---|
ProjectCache(boolean refresh)
|
Method Summary | |
---|---|
org.ofbiz.core.entity.GenericValue |
getProject(Long id)
|
org.ofbiz.core.entity.GenericValue |
getProjectByKey(String key)
|
org.ofbiz.core.entity.GenericValue |
getProjectByName(String name)
|
Collection<org.ofbiz.core.entity.GenericValue> |
getProjectCategories()
|
org.ofbiz.core.entity.GenericValue |
getProjectCategory(Long id)
|
org.ofbiz.core.entity.GenericValue |
getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project)
|
List<Project> |
getProjectObjects()
Returns a list of all Projects ordered by name. |
Collection<org.ofbiz.core.entity.GenericValue> |
getProjects()
|
Collection |
getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
|
Collection |
getProjectsWithNoCategory()
|
void |
refresh()
|
protected void |
refreshProjectCategories()
|
void |
refreshProjectDependencies(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 |
refreshProjectsWithNoCategory()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectCache(boolean refresh)
Method Detail |
---|
public void refresh()
public void refreshProjectDependencies(org.ofbiz.core.entity.GenericValue project)
IMPACT: 3 SQL statements (1 + 2)
protected void refreshProjectCategories()
public org.ofbiz.core.entity.GenericValue getProject(Long id)
public org.ofbiz.core.entity.GenericValue getProjectByName(String name)
public org.ofbiz.core.entity.GenericValue getProjectByKey(String key)
public Collection<org.ofbiz.core.entity.GenericValue> getProjects()
public List<Project> getProjectObjects()
public Collection<org.ofbiz.core.entity.GenericValue> getProjectCategories()
public org.ofbiz.core.entity.GenericValue getProjectCategory(Long id)
public Collection getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
public org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project)
public Collection getProjectsWithNoCategory()
protected void refreshProjectsWithNoCategory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |