com.atlassian.jira.project
Class ProjectCache

java.lang.Object
  extended by com.atlassian.jira.project.ProjectCache

public class ProjectCache
extends Object

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 getProjectCategories()
           
 org.ofbiz.core.entity.GenericValue getProjectCategory(Long id)
           
 org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project1)
           
 Collection 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

ProjectCache

public ProjectCache(boolean refresh)
Method Detail

refresh

public void refresh()

refreshProjectDependencies

public 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)


refreshProjectCategories

protected void refreshProjectCategories()

getProject

public org.ofbiz.core.entity.GenericValue getProject(Long id)

getProjectByName

public org.ofbiz.core.entity.GenericValue getProjectByName(String name)

getProjectByKey

public org.ofbiz.core.entity.GenericValue getProjectByKey(String key)

getProjects

public Collection getProjects()

getProjectCategories

public Collection getProjectCategories()

getProjectCategory

public org.ofbiz.core.entity.GenericValue getProjectCategory(Long id)

getProjectsFromProjectCategory

public Collection getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)

getProjectCategoryFromProject

public org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project1)

getProjectsWithNoCategory

public Collection getProjectsWithNoCategory()

refreshProjectsWithNoCategory

protected void refreshProjectsWithNoCategory()


Copyright © 2002-2008 Atlassian. All Rights Reserved.