|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.propertyset.DefaultJiraPropertySetFactory
public class DefaultJiraPropertySetFactory
Default implementation of the JiraPropertySetFactory. It relies heavily on the
com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet and
JiraCachingPropertySet.
| Constructor Summary | |
|---|---|
DefaultJiraPropertySetFactory()
|
|
| Method Summary | |
|---|---|
com.opensymphony.module.propertyset.PropertySet |
buildCachingDefaultPropertySet(String entityName,
boolean bulkLoad)
Returns a PropertySet for a particular entity. |
com.opensymphony.module.propertyset.PropertySet |
buildCachingPropertySet(com.opensymphony.module.propertyset.PropertySet propertySet,
boolean bulkLoad)
Returns a caching PropertySet that wraps the provided propertyset. |
com.opensymphony.module.propertyset.PropertySet |
buildCachingPropertySet(String entityName,
Long entityId,
boolean bulkLoad)
Returns a PropertySet. |
com.opensymphony.module.propertyset.PropertySet |
buildMemoryPropertySet(String entityName,
Long entityId)
Returns an in memory copy of a property set from the database. |
com.opensymphony.module.propertyset.PropertySet |
buildNoncachingPropertySet(String entityName)
Returns a PropertySet for a particular entity. |
com.opensymphony.module.propertyset.PropertySet |
buildNoncachingPropertySet(String entityName,
Long entityId)
Returns a PropertySet based on a ofbiz delegator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJiraPropertySetFactory()
| Method Detail |
|---|
public com.opensymphony.module.propertyset.PropertySet buildNoncachingPropertySet(String entityName)
JiraPropertySetFactoryPropertySet for a particular entity.
Specifies a default entity id of 1. Any access (read and write) to this PropertySet will result in a DB call.
buildNoncachingPropertySet in interface JiraPropertySetFactoryentityName - The entity name to lookup your properties. E.g. jira.svn.plugin
PropertySet backed by a com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.
public com.opensymphony.module.propertyset.PropertySet buildNoncachingPropertySet(String entityName,
Long entityId)
JiraPropertySetFactoryPropertySet based on a ofbiz delegator.
Any access (read and write) to this PropertySet will result in a DB call.
buildNoncachingPropertySet in interface JiraPropertySetFactoryentityName - The entity name to lookup your properties. E.g. jira.svn.pluginentityId - The entity id if you multiple properties per entity name. (E.g. OSUser properties per user id)
PropertySet backed by a com.opensymphony.module.propertyset.ofbiz.OFBizPropertySet.
public com.opensymphony.module.propertyset.PropertySet buildCachingDefaultPropertySet(String entityName,
boolean bulkLoad)
JiraPropertySetFactoryPropertySet for a particular entity. Entries in this set are
cached in memory for better performance.Specifies a default entity id of 1. Please note that this is a
write-through-cache, meaning that reads will be cached up, however any write will call through to the database
and invalidate the relevant cache entry.
buildCachingDefaultPropertySet in interface JiraPropertySetFactoryentityName - The entity name to lookup your properties. E.g. jira.svn.pluginbulkLoad - If true, all properties will be loaded during initialisation of the propertyset and cached
PropertySet backed by a caching property set
public com.opensymphony.module.propertyset.PropertySet buildCachingPropertySet(String entityName,
Long entityId,
boolean bulkLoad)
JiraPropertySetFactoryPropertySet. Entries in this set are
cached in memory for better performance. Please note that this is a
write-through-cache, meaning that reads will be cached up, however any write will call through to the database
and invalidate the relevant cache entry.
buildCachingPropertySet in interface JiraPropertySetFactoryentityName - The entity name to lookup your properties. E.g. jira.svn.pluginentityId - The entity id if you multiple properties per entity name. (E.g. OSUser properties per user id)bulkLoad - If true, all properties will be loaded during initialisation of the propertyset and cached
PropertySet backed by a caching property set
public com.opensymphony.module.propertyset.PropertySet buildCachingPropertySet(com.opensymphony.module.propertyset.PropertySet propertySet,
boolean bulkLoad)
JiraPropertySetFactoryPropertySet that wraps the provided propertyset.
Entries in this set are cached in memory for better performance. Please note that this is a
write-through-cache, meaning that reads will be cached up, however any write will call through to the database
and invalidate the relevant cache entry.
buildCachingPropertySet in interface JiraPropertySetFactorypropertySet - A PropertySet to wrap by a caching property setbulkLoad - If true, all properties will be loaded during initialisation of the propertyset and cached
PropertySet backed by a caching property set
public com.opensymphony.module.propertyset.PropertySet buildMemoryPropertySet(String entityName,
Long entityId)
JiraPropertySetFactory
buildMemoryPropertySet in interface JiraPropertySetFactoryentityName - The entity name to lookup your properties. E.g. jira.svn.pluginentityId - The entity id if you multiple properties per entity name. (E.g. OSUser properties per user id)
PropertySet held completely in memory. Changes will not
be written to the database.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||