|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.ofbiz.util.OFBizPropertyUtils
public class OFBizPropertyUtils
This was taken from atlassian-ofbiz and placed into its now rightful home of JIRA.
Constructor Summary | |
---|---|
OFBizPropertyUtils()
|
Method Summary | |
---|---|
static com.opensymphony.module.propertyset.PropertySet |
getCachingPropertySet(org.ofbiz.core.entity.GenericValue gv)
Gets a caching property set that is associated with the specified generic value. |
static com.opensymphony.module.propertyset.PropertySet |
getCachingPropertySet(String entityName,
Long entityId)
Gets a caching property set that is associated with the specified entity. |
static com.opensymphony.module.propertyset.PropertySet |
getPropertySet(org.ofbiz.core.entity.GenericValue gv)
Gets a non-caching property set that is associated with the specified generic value. |
static com.opensymphony.module.propertyset.PropertySet |
getPropertySet(String entityName,
Long entityId)
Gets a non-caching property set that is associated with the specified entity. |
static void |
removePropertySet(org.ofbiz.core.entity.GenericValue gv)
Implementation note: This method assumes that the property set has been accessed in a cached manner and flushes any associated entries. |
static void |
removePropertySet(String entityName,
Long entityId)
Implementation note: This method assumes that the property set has been accessed in a cached manner and flushes any associated entries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OFBizPropertyUtils()
Method Detail |
---|
public static com.opensymphony.module.propertyset.PropertySet getPropertySet(String entityName, Long entityId)
getCachingPropertySet(String,Long)
method should almost always be preferred over
this one because that implementation will be more efficient for most cases. It is also safer
to use the caching property set, because it will notify any other caching property sets if their information
has become stale. The non-caching property set returned by this method does not do this, so any caching
property sets created by other code will not be notified of changes.
entityName
- the entity model name of the property set's owning entityentityId
- the entity ID of the property set's owning entity
public static com.opensymphony.module.propertyset.PropertySet getPropertySet(org.ofbiz.core.entity.GenericValue gv)
getCachingPropertySet(GenericValue)
method should almost always be preferred over
this one because that implementation will be more efficient for most cases. It is also safer
to use the caching property set, because it will notify any other caching property sets if their information
has become stale. The non-caching property set returned by this method does not do this, so any caching
property sets created by other code will not be notified of changes.
gv
- the generic value which owns the property set
public static com.opensymphony.module.propertyset.PropertySet getCachingPropertySet(String entityName, Long entityId)
getPropertySet(String,Long)
,
because this implementation will be more efficient for most cases. It is also safer
to use the caching property set, because it will notify any other caching property sets if their information
has become stale. The non-caching property set returned by the other method does not do this, so any caching
property sets created by other code will not be notified of changes.
entityName
- the entity model name of the property set's owning entityentityId
- the entity ID of the property set's owning entity
public static com.opensymphony.module.propertyset.PropertySet getCachingPropertySet(org.ofbiz.core.entity.GenericValue gv)
getPropertySet(GenericValue)
,
because this implementation will be more efficient for most cases. It is also safer
to use the caching property set, because it will notify any other caching property sets if their information
has become stale. The non-caching property set returned by the other method does not do this, so any caching
property sets created by other code will not be notified of changes.
gv
- the generic value which owns the property set
public static void removePropertySet(String entityName, Long entityId)
remove
directly on the non-cached implementation:
getPropertySet(entityName,entityId)
.remove()
entityName
- the entity model name of the property set's owning entityentityId
- the entity ID of the property set's owning entitypublic static void removePropertySet(org.ofbiz.core.entity.GenericValue gv)
remove
directly on the non-cached implementation:
getPropertySet(gv)
.remove()
gv
- the generic value which owns the property set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |