|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.propertyset.BootstrapOfBizPropertyEntryStore
public class BootstrapOfBizPropertyEntryStore
Used during bootstrap, only. This simply delegates to "ofbiz" + "cached" PropertySet combinations instead of implementing the low-level database access that "ofbiz-cached" PropertySet would normally get.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.propertyset.OfBizPropertyEntryStore |
---|
OfBizPropertyEntryStore.PropertyEntry |
Constructor Summary | |
---|---|
BootstrapOfBizPropertyEntryStore()
|
Method Summary | |
---|---|
OfBizPropertyEntryStore.PropertyEntry |
getEntry(String entityName,
long entityId,
String propertyKey)
Retrieve the type and value of the specified property. |
Collection<String> |
getKeys(String entityName,
long entityId)
Retrieve all keys that are stored in the given property set. |
Collection<String> |
getKeys(String entityName,
long entityId,
int type)
Retrieve all keys that are stored in the given property set and have the specified value type. |
void |
removeEntry(String entityName,
long entityId,
String propertyKey)
Remove a specific property from a property set. |
void |
removePropertySet(String entityName,
long entityId)
Remove all properties that belong to a property set. |
void |
setEntry(String entityName,
long entityId,
String propertyKey,
int type,
Object value)
Stores a new value for the specified property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BootstrapOfBizPropertyEntryStore()
Method Detail |
---|
public Collection<String> getKeys(String entityName, long entityId)
OfBizPropertyEntryStore
getKeys
in interface OfBizPropertyEntryStore
entityName
- the entity name of the property set's ownerentityId
- the entity ID of the property set's owner
public Collection<String> getKeys(String entityName, long entityId, int type)
OfBizPropertyEntryStore
getKeys
in interface OfBizPropertyEntryStore
entityName
- the entity name of the property set's ownerentityId
- the entity ID of the property set's ownertype
- the value type, as defined by the value constants in the PropertySet
interface,
that the keys must have to be returned
@Nullable public OfBizPropertyEntryStore.PropertyEntry getEntry(String entityName, long entityId, String propertyKey)
OfBizPropertyEntryStore
getEntry
in interface OfBizPropertyEntryStore
entityName
- the entity name of the property set's ownerentityId
- the entity ID of the property set's ownerpropertyKey
- the name of the property to load
null
if the property does not exist. Note that even if it does "exist",
the value
can itself be null
.public void setEntry(String entityName, long entityId, String propertyKey, int type, Object value)
OfBizPropertyEntryStore
setEntry
in interface OfBizPropertyEntryStore
entityName
- the entity name of the property set's ownerentityId
- the entity ID of the property set's ownerpropertyKey
- the name of the property to storetype
- the value type that is to be stored, as defined by the value constants in the
PropertySet
interface.value
- the value to be storedpublic void removeEntry(String entityName, long entityId, String propertyKey)
OfBizPropertyEntryStore
removeEntry
in interface OfBizPropertyEntryStore
entityName
- the entity name of the property set's ownerentityId
- the entity ID of the property set's ownerpropertyKey
- the name of the property to removepublic void removePropertySet(String entityName, long entityId)
OfBizPropertyEntryStore
removePropertySet
in interface OfBizPropertyEntryStore
entityName
- the entity name of the property set's ownerentityId
- the entity ID of the property set's owner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |